- Updated `simple.py` to initialize `Browser` and `Tools` instances, improving agent configuration.
- Fixed action decorator in `notification.py` by removing trailing space for consistency.
- Adjusted test behavior in `test_browser_session_tab_management.py` to skip tests on initial tab count issues, improving test reliability.
- Stopped server in `test_browser_watchdog_downloads_upload_full_circle.py` to ensure proper cleanup before skipping tests.
These changes aim to enhance clarity and maintainability across examples and tests.
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.