This commit introduces a new script, `2fa.py`, which implements a custom action to retrieve 2FA/MFA codes using the `pyotp` library. The action extracts the OTP secret key from an environment variable and generates a time-based one-time password. Additionally, the script includes an example task demonstrating how to use the 2FA action within an agent-based workflow.
### Key Changes:
- New file `examples/custom-functions/2fa.py` added.
- Custom action `get_otp_2fa` to generate 2FA codes.
- Example usage of the action in an asynchronous context.
This addition enhances the functionality of the agent system by providing secure 2FA code retrieval capabilities.
This update replaces the synchronous requests library with httpx for making asynchronous API calls in the perplexity search function. The change improves performance and error handling by utilizing async capabilities, ensuring better integration with the overall asynchronous architecture.
This commit introduces a new script for searching the web using the Perplexity API. It includes the definition of data models for handling person information, an asynchronous search function, and a main execution flow that retrieves and displays email addresses for specified individuals. The script also incorporates error handling for missing API keys.
### Example Task Update:
*
[`examples/simple.py`](diffhunk://#diff-7fc9f71ba0fe3a9a223587549462f41d40b57cb9d9097a0349eb7abeb9d04e39L20-R20):
Modified the example task description to specify finding the cheapest
one-way flight in 3 weeks, making it more realistic and time-relative.
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Updated the example task to search for the cheapest one-way flight in 3
weeks, added a default browser profile fallback, and ignored temp
directories in git.
<!-- End of auto-generated description by cubic. -->