167 Commits

Author SHA1 Message Date
Saurav Panda 9be28bcea1 feat(llm): default ChatBrowserUse to bu-2-0-mini-preview
Adds bu-2-0-mini-preview as an accepted model id and makes it the
constructor default, so a bare ChatBrowserUse() now routes there.

bu-2-0 is unchanged: still accepted, still documented as the premium
option, and bu-latest still resolves to it. Keeping 'latest' on the
stable line means existing callers pinned to that alias do not silently
move onto a preview model; only the bare-constructor default moves.

Pricing is registered alongside the model so cost tracking does not
silently report $0 for what is now the default. This model has no cache
discount, so cached reads bill at the input rate.

Examples, README and the model reference are updated to the new default.
The model reference also claimed bu-latest resolved to bu-1-0, which has
not been true since bu-2-0 shipped; corrected here.
2026-08-13 11:05:57 -07:00
Saurav Panda ad8f3a4dd7 feat(tools): print page metadata in save_as_pdf header/footer
The save_as_pdf action now renders page metadata into the PDF margins by
default, matching Chrome's Print dialog: the date in the header and the page
URL plus page numbers in the footer.

- Add display_header_footer (default True), header_template, and
  footer_template params to SaveAsPdfAction.
- Pass displayHeaderFooter + header/footer templates and explicit margins to
  CDP Page.printToPDF so the metadata has room to render (Chrome clips it
  otherwise, and defaults header/footer font-size to 0px).
- Default templates show the date / URL + page numbers; callers can override
  with custom HTML or disable entirely for a clean PDF.
2026-06-11 08:29:41 +05:30
Saurav Panda b00c41b66b chore(llm): recommend gemini-3-flash-preview in examples and tests
- add gemini-3-flash-preview-lite to VerifiedGeminiModels and token mappings
- list both gemini-3-flash-preview[-lite] alongside existing -latest aliases in CLOUD.md and api-v2.md SupportedLLMs
- swap example code and recommendations (examples/, AGENTS.md, quickstart.md, bug report placeholder) to gemini-3-flash-preview / -lite
- update Google CI test + evaluate_tasks judge LLM to gemini-3-flash-preview / -lite
2026-05-22 10:47:58 -07:00
Saurav Panda 8270346ccf improved csv file generation 2026-02-25 11:45:05 -08:00
Saurav Panda 95215d6211 Add save_as_pdf agent action for CDP-based page-to-PDF export 2026-02-24 18:35:34 -08:00
Saurav Panda 20f4f2a984 switched to bu-2-0 in all the examples 2026-01-29 18:04:44 -08:00
Saurav Panda 2c06eabf5f Added ax-name fallback for history rerun. 2026-01-06 12:07:10 -08:00
Saurav Panda a4e77e2070 Merge branch 'main' into add-ai-step-for-extraction 2025-12-03 09:14:26 -08:00
Saurav Panda d0e181216e feat: added fallback llm support 2025-12-03 18:53:29 +05:30
mertunsall 3ffd26fbe0 fix example 2025-12-02 00:10:54 -08:00
Saurav Panda 7d2c6dc79e AI: add ai_step to replace extract_content on rerun 2025-12-01 21:34:09 +05:30
Saurav Panda 7811c62377 fixed rerun_history 2025-11-20 22:22:31 +05:30
Saurav Panda 5e356108f9 feat: added AI summary for rerun task 2025-11-20 21:40:30 +05:30
Saurav Panda 8948c47416 add-variable-substitution-in-rerun 2025-11-20 17:54:32 +05:30
Saurav Panda e57f7ac14f added variable detection from agent history 2025-11-20 14:39:32 +05:30
Saurav Panda 8f8713b001 feat: added step_interval calculation for history 2025-11-20 10:28:28 +05:30
Alezander9 e62129ba93 add the captcha and impossible flag in AgentEvent 2025-11-18 21:29:52 -08:00
mertunsall 85e0bddb6a improve the example 2025-11-12 11:31:31 -08:00
mertunsall dfbba0e062 add ground truth to judge 2025-11-12 11:16:40 -08:00
Alezander9 bf15d159da address cubic comments and clean up new example 2025-11-01 15:37:38 -07:00
Alezander9 4396b416da pass along a new param request_type when using ChatBrowserUse to flag special handling for judge 2025-11-01 15:25:24 -07:00
Alezander9 10ec99dd26 have library judge show up in logs 2025-10-31 20:30:03 -07:00
Alezander9 15911c8c72 fix bugs in library judge and make it off by default 2025-10-31 20:20:36 -07:00
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