144 Commits

Author SHA1 Message Date
Magnus Müller f0acb6b338 Replace tool names like go_to_url wtih navigate 2025-10-05 13:31:38 -07:00
Magnus Müller a8e6af254e Switch all to jpeg 2025-10-03 21:32:47 -07:00
mertunsall 4709ab9afd Functionality to stop the agent externally 2025-10-03 17:32:54 +02:00
mertunsall a4207a6ff9 fixes and large list example 2025-10-01 19:57:04 +02:00
mertunsall 16457c2a5e Blocked domains are optimized!!! 2025-10-01 19:25:30 +02:00
Magnus Müller 6f1c6c510d Linter 2025-09-26 15:56:56 -07:00
Chris Schnabl 63d9b57744 Add exmamples on how to prohibit domain 2025-09-24 11:07:40 -07:00
Magnus Müller 3e9f891a67 Different example 2025-09-17 10:10:28 -07:00
Magnus Müller a51bc0ab54 Include exmaple 2025-09-17 09:52:47 -07:00
Magnus Müller 9618835c97 fix element hash 2025-09-17 09:48:17 -07:00
Magnus Müller dbff7a08da Merge branch 'main' into fix-rerunning 2025-09-16 22:22:32 -07:00
Magnus Müller cfc85044c3 Rerun example 2025-09-16 21:46:51 -07:00
Saurav Panda 126d800df4 remove sensitive data from agent history and logging 2025-09-16 14:41:24 -07:00
Magnus Müller fad088048e Update docs 2025-09-07 18:27:30 -07:00
Magnus Müller 495804389c Refactor download_file example to use updated Browser class
This commit modifies the `download_file.py` example to replace the `BrowserSession` and `BrowserProfile` with the new `Browser` class. The changes streamline the code and enhance clarity by directly utilizing the `Browser` for managing downloads. The download path remains set to a temporary directory for testing purposes.
2025-09-06 15:56:09 -07:00
Magnus Müller a694501294 Enhance DownloadsWatchdog to expand and resolve download paths
This commit updates the DownloadsWatchdog class to ensure that the downloads directory path is properly expanded and resolved to an absolute path. The changes include:

- Expanding the downloads path using `expanduser()` and `resolve()` methods to handle user home directories correctly.
- Updating the download behavior settings to use the expanded path.
- Ensuring that the downloads directory is created with the resolved path.

Additionally, the example feature for downloading files has been modified to use a temporary downloads path for testing purposes.
2025-09-06 15:53:16 -07:00
Magnus Müller be6fd1a92e Add video recording configuration options to BrowserSession
- Introduced `record_video_framerate` and `record_video_size` parameters to the BrowserSession class for enhanced video recording capabilities.
- Updated example in video_recording.py to reflect changes, switching from BrowserSession to Browser for video recording setup.

This update allows users to customize video recording settings more effectively.
2025-09-06 12:29:19 -07:00
Enzo Biondo 1da79ca982 Merge branch 'main' into feat/video-recording 2025-09-06 14:43:33 -03:00
Magnus Müller c3d2f18742 Update agent initialization to suppress type checking warnings
- Added a type ignore comment to the agent initialization line to prevent type checking errors related to the sensitive_data parameter.

This change improves compatibility with type checkers while maintaining code clarity.
2025-09-06 08:41:45 -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 55b0af568d Update sensitive_data.py to refine credential entries
- Changed the wildcard entry for Google credentials to a specific domain.
- Added a new entry for a universal email credential that works across all domains.

These updates improve the clarity and specificity of sensitive data handling.
2025-09-06 07:34:40 -07:00
zhcn 5c883062ae Update add_image_context.py code style 2025-09-04 14:54:54 +08:00
zhcn 81cd351670 add image context example 2025-09-04 14:29:04 +08:00
EnzoFanAccount ebe2b3b0a3 example type fix 2025-09-01 10:49:50 -03:00
Enzo Biondo d6d5fd0fb6 Merge branch 'main' into feat/video-recording 2025-08-27 14:47:05 -03:00
Magnus Müller ce33625262 Rename browser_context to _cdp_client_root and remove test_concurrent 2025-08-26 18:46:37 -07:00
Enzo Biondo 8cf26fcb0d Merge branch 'main' into feat/video-recording 2025-08-26 12:26:58 -03:00
EnzoFanAccount a41bd90f05 Merge remote-tracking branch 'upstream/main' into feat/video-recording 2025-08-26 03:25:56 -03:00
Magnus Müller fd5482d9cc Enhance documentation and examples for browser customization
- Rearranged pages in the documentation for better organization.
- Updated icons and descriptions in `browser-basic` and `chain-agents` sections for clarity.
- Added new sections for "Secure Setup" and "More Examples" to provide comprehensive guidance on advanced use cases.
- Improved the `fast-agent` example with clearer speed optimization instructions.
- Refined the `browser-real-browser` documentation to simplify the connection description.
2025-08-25 23:24:47 -07:00
Magnus Müller 4150f02396 Dropdown for agent 2025-08-25 10:48:38 -07:00
Magnus Müller 6ca9b5d225 simplify follow up 2025-08-24 16:15:06 -07:00
Magnus Müller 1e400c3da1 fix add_new_task for eventbus 2025-08-24 16:09:04 -07:00
Nick Sweeting 1173e2c3ab bump pre-commit check versions 2025-08-22 18:29:56 -07:00
EnzoFanAccount e629eec480 add frame resizing 2025-08-22 16:41:08 -03:00
EnzoFanAccount 49ee1a7a7b add video recording 2025-08-22 12:13:46 -03:00
Magnus Müller db442220e6 Update task description in secure example to specify sensitive company name 2025-08-19 22:33:34 -07:00
Magnus Müller c1442d7ee8 update secure example 2025-08-19 22:31:56 -07:00
Magnus Müller 69d45683e3 example-secure 2025-08-19 22:21:31 -07:00
Magnus Müller 3048375a16 Use-cases examples 2025-08-18 19:54:56 -07:00
Magnus Müller 1c8e78ac77 simlify ChatOpenAI import 2025-08-18 19:45:02 -07:00
Magnus Müller 55b433d740 Feature examples 2025-08-18 19:17:02 -07:00
Magnus Müller 8051638835 Remove lmnr init in random examples 2025-08-18 19:00:55 -07:00
Magnus Müller 7ba8ba5958 replace gpt-4.1 with mini 2025-08-18 18:59:56 -07:00
Magnus Müller 968c33b616 Remove cross origin iframe example 2025-08-18 18:58:47 -07:00
Magnus Müller 90757686fc Simplify ChatOpenAI import to 1 line 2025-08-18 18:57:13 -07:00
Nick Sweeting a1f1330aa6 linter fixes 2025-08-14 14:32:32 -07:00
Nick Sweeting d1e569eb31 raise BrowserError exceptions instead of returning success=False 2025-08-12 04:14:53 -07:00
Nick Sweeting 3bb8fb0fee improve focus tracking 2025-08-08 07:15:04 -07:00
mertunsall 9bd0036223 separate agent history and state 2025-08-02 15:48:49 +01:00
Alezander9 faf06f8edb remove broken example file 2025-07-05 20:55:12 -07:00