Commit Graph

12 Commits

Author SHA1 Message Date
Magnus Müller
cd239317d0 Update 2FA example to reflect new sensitive data key
- Changed the key in sensitive_data from '2fa_code' to 'bu_2fa_code' for improved clarity.
- Updated user instructions to align with the new key terminology.

These modifications enhance the consistency and clarity of the 2FA implementation.
2025-09-06 08:38:54 -07:00
Magnus Müller
bf385a3f34 Update 2FA implementation to standardize sensitive data references
- Changed the key in sensitive_data from 'otp_secret' to '2fa_code' for consistency across files.
- Updated instructions in the 2FA example to reflect the new key and improve clarity on user input.

These changes enhance the clarity and maintainability of the 2FA implementation.
2025-09-06 08:38:14 -07:00
Magnus Müller
fce87aa7b7 Refactor 2FA example to enhance clarity and maintainability
- Removed unnecessary logging setup to streamline the code.
- Simplified the definition of sensitive_data by eliminating type annotations.
- Updated comments for better guidance on using the 2FA example.

These changes improve the readability and maintainability of the 2FA implementation.
2025-09-06 07:57:25 -07:00
Magnus Müller
719761313c Refactor sensitive data handling across examples
- Updated sensitive_data definitions to remove type annotations for clarity.
- Simplified the structure of sensitive_data in multiple files, ensuring consistency in credential representation.
- Enhanced comments to guide users on the proper use of sensitive data in the context of 2FA and domain-specific credentials.

These changes improve the readability and maintainability of the code while ensuring secure handling of sensitive information.
2025-09-06 07:51:52 -07:00
Magnus Müller
caa0e7ef1b Rename controller to tools instances 2025-08-26 11:30:39 -07:00
Magnus Müller
2a83442f17 Rename Controller to Tools 2025-08-26 11:04:16 -07:00
Magnus Müller
1c8e78ac77 simlify ChatOpenAI import 2025-08-18 19:45:02 -07:00
Magnus Müller
1d34d2ed22 custom-functions examples 2025-08-18 18:51:58 -07:00
mertunsall
220f0bc994 update models to gpt-4.1 2025-07-05 10:32:49 +02:00
Gregor Žunič
7a10ae0c96 Squashed commit langchain to native 2025-06-24 12:26:55 +02:00
Nick Sweeting
6c695d0a42 more lint and hint fixes 2025-06-21 05:39:17 -07:00
Magnus Müller
6a5c0b61f2 Add 2FA functionality using pyotp in a new script
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.
2025-05-25 18:10:00 +02:00