Commit Graph

93 Commits

Author SHA1 Message Date
Magnus Müller
14229cd6e3 Enhance example scripts and improve test handling
- 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.
2025-08-27 01:04:14 -07:00
Magnus Müller
caa0e7ef1b Rename controller to tools instances 2025-08-26 11:30:39 -07:00
Magnus Müller
e89e78842c Rename controller file to tools 2025-08-26 11:06:28 -07:00
Magnus Müller
2a83442f17 Rename Controller to Tools 2025-08-26 11:04:16 -07:00
Magnus Müller
fa977bccb6 Fix type checker 2025-08-19 01:36:23 -07:00
Magnus Müller
1c8e78ac77 simlify ChatOpenAI import 2025-08-18 19:45:02 -07:00
Magnus Müller
7ba8ba5958 replace gpt-4.1 with mini 2025-08-18 18:59:56 -07:00
Magnus Müller
1d34d2ed22 custom-functions examples 2025-08-18 18:51:58 -07:00
Nick Sweeting
a1f1330aa6 linter fixes 2025-08-14 14:32:32 -07:00
Magnus Müller
9f398dab4f examples/file-upload-task-change 2025-08-12 21:34:08 -07:00
Nick Sweeting
7a0889cf20 formatting 2025-08-12 04:14:53 -07:00
Nick Sweeting
d1e569eb31 raise BrowserError exceptions instead of returning success=False 2025-08-12 04:14:53 -07:00
Nick Sweeting
20b4b2a684 feature flags for iframes and recent_events, split security and nav actions 2025-08-08 19:13:10 -07:00
Nick Sweeting
557067b8e9 remove expect_download param from click action 2025-08-08 17:42:46 -07:00
Nick Sweeting
3bb8fb0fee improve focus tracking 2025-08-08 07:15:04 -07:00
Nick Sweeting
032f314a41 Merge branch 'main' into local-remote-split 2025-08-04 19:44:05 -07:00
mertunsall
9bd0036223 separate agent history and state 2025-08-02 15:48:49 +01:00
Nick Sweeting
659c5145f6 more event-driven refactoring 2025-08-01 02:42:01 -07:00
Cursor Agent
fcfd80bbca Update import paths for Playwright types in custom functions
Co-authored-by: mailmertunsal <mailmertunsal@gmail.com>
2025-07-18 09:42:52 +00:00
Mert Unsal
a06e04cabe Merge branch 'main' into mert/cua_fallback_example 2025-07-13 22:27:44 +02:00
Nick Sweeting
d958260c42 tweak test fixture scope 2025-07-11 00:44:10 -07:00
mertunsall
82d7052aa4 add openai cua fallback as exmaple 2025-07-08 23:29:41 +02:00
mertunsall
220f0bc994 update models to gpt-4.1 2025-07-05 10:32:49 +02:00
mertunsall
74dffc96dc fix 2025-06-29 21:58:33 +02:00
mertunsall
e9b8cfb9f7 remove the default save_pdf option 2025-06-29 21:51:56 +02:00
Gregor Žunič
ea00a9ebee removed drag and drop from default controller, moved to example 2025-06-27 23:20:34 +02:00
Gregor Žunič
7a10ae0c96 Squashed commit langchain to native 2025-06-24 12:26:55 +02:00
mertunsall
15d25f4b61 fix click element upload_index problem
update file upload example
2025-06-23 21:46:17 +02:00
Nick Sweeting
aad78d93ab more type hint fixes 2025-06-21 05:44:49 -07:00
Nick Sweeting
6c695d0a42 more lint and hint fixes 2025-06-21 05:39:17 -07:00
Nick Sweeting
f878b8f07c type hint fixes 2025-06-21 05:16:02 -07:00
Nick Sweeting
80298332db Merge branch 'main' into mistral_example 2025-06-21 02:19:58 -07:00
Magnus Müller
90ae26316e Refactor ActionResult to standardize the inclusion of extracted content, replacing update_only_read_state with include_extracted_content_only_once across multiple services. This change enhances clarity in memory management and ensures consistent handling of extracted content. 2025-06-19 23:18:30 +02:00
Magnus Müller
ce880e5e35 Refactor ActionResult handling across multiple services to standardize the use of long_term_memory, replacing memory references. Update related logic to ensure extracted content is consistently managed for improved clarity and error handling. 2025-06-19 23:11:55 +02:00
Magnus Müller
0b6ebea431 Merge branch 'main' into mert/new_everything 2025-06-19 09:49:43 +02:00
mertunsall
0c34c399db Merge branch 'main' into mert/new_everything 2025-06-17 11:19:06 +02:00
yasithdev
8ea4b4c71a centralize playwright/patchwright imports, and update typing/checks to reduce lint errors 2025-06-16 22:57:20 -04:00
Magnus Müller
c48d83f54d Refactor web search functionality to improve SERP API integration. Updated action description for clarity, streamlined data handling by excluding unnecessary fields, and enhanced logging for debugging. Returns only relevant organic search results. 2025-06-09 15:38:19 +02:00
Magnus Müller
a63752b504 Update task description in file_upload.py: Revert task string to previous URL for file upload instructions, ensuring clarity in the upload process. 2025-06-06 23:40:37 +02:00
Magnus Müller
ba7ac0c9d2 Refactor file upload process in file_upload.py: Removed BrowserProfile initialization, streamlined BrowserSession usage, and updated task description for clarity. 2025-06-06 23:19:54 +02:00
derekmeegan
7e141a9058 add mistral example with shebang 2025-06-03 12:36:40 -04:00
BroskyBrowser
000ee0d262 chore: linting + ignore .venv folders 2025-05-27 12:23:19 +02:00
BroskyBrowser
0997c0d46c chore: linting + ignore .venv folders 2025-05-27 12:18:26 +02:00
Nick Sweeting
f19adf9bb3 remove dead code, cleanup examples and tests 2025-05-26 18:37:52 -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
Magnus Müller
8a5f7a5ead Refactor perplexity search to use httpx for asynchronous requests
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.
2025-05-25 16:46:08 +02:00
Magnus Müller
18d1c0d895 Add perplexity search functionality with API integration
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.
2025-05-25 16:17:38 +02:00
BroskyBrowser
7db5794bbe fix: fixed wildcard subdomain in action definition 2025-05-25 15:18:22 +02:00
BroskyBrowser
3db45ebd20 fix: improved amazon captcha solver solution check 2025-05-25 15:08:38 +02:00
Nick Sweeting
addeb56f8c add new param optimization test 2025-05-25 03:50:02 -07:00