Commit Graph

1537 Commits

Author SHA1 Message Date
Nick Sweeting 112162cd3f prevent parent session from being garbage collected 2025-06-26 22:35:07 -07:00
Nick Sweeting c3bd596961 manually copy over browser_context instance when forking BrowserSession 2025-06-26 20:00:56 -07:00
Mert Unsal 785e14fed8 Merge branch 'main' into mert/fix_done_callback 2025-06-26 17:32:24 +02:00
mertunsall 7b1630b443 fix MAJOR bug with done callback being caleld twice 2025-06-26 17:31:57 +02:00
Magnus Müller 4844bd048f Set default parameter - no memory, actions per step 10, and extraction input size 2025-06-26 17:08:15 +02:00
Nick Sweeting 327f458353 set up a unique CloudSync for each agent 2025-06-26 09:07:56 +02:00
Mert Unsal 3493e6a684 Merge branch 'main' into mert/fixfs 2025-06-26 00:45:11 +02:00
mertunsall 6b4953e922 rewrite file system 2025-06-26 00:41:56 +02:00
Gregor Žunič 35bb5e8039 Add token caching for claude (#2108)
<!-- This is an auto-generated description by cubic. -->

## Summary by cubic
Added token caching support for Claude models, including accurate
tracking and cost calculation for cached, cache creation, and uncached
tokens.

- **New Features**
- Added `cache` flag to messages and updated Anthropic message
serialization to support Claude's token caching.
- Updated token usage and cost tracking to handle cached tokens, cache
creation tokens, and their costs.
- Improved token usage logs to show detailed breakdowns for cached and
uncached tokens.
  - Added tests for Anthropic cache serialization and cost calculation.

<!-- End of auto-generated description by cubic. -->
2025-06-25 21:28:42 +02:00
Gregor Žunič 2ee526d903 updated pricing for cached tokens support 2025-06-25 15:33:47 +02:00
mertunsall 6f8c8bbcbf quick update to system prompt 2025-06-25 13:57:22 +02:00
Mert Unsal e8b0755aff Merge branch 'main' into mert/cloudrunner 2025-06-25 11:49:59 +02:00
Magnus Müller 6f2b2cac1a Save last state in message manager 2025-06-25 11:49:01 +02:00
Mert Unsal 39f7b0608c Update browser_use/agent/message_manager/service.py 2025-06-25 11:22:01 +02:00
Magnus Müller 3c5fbe9eb5 Save last state in message manager 2025-06-25 10:14:37 +02:00
mertunsall b2b95b086a tell allowed extensions to the model 2025-06-25 09:33:42 +02:00
mertunsall fa60e747d9 mr cloudrunner 2025-06-24 23:02:08 +02:00
mertunsall 763d3f13ef fix format? 2025-06-24 18:20:46 +02:00
mertunsall d6af0ef7b4 format? 2025-06-24 18:17:26 +02:00
Cursor Agent 3cf06db28e Remove inheritance from SystemPrompt in PlannerPrompt class 2025-06-24 16:12:53 +00:00
mertunsall f6c89bb14d fix 2025-06-24 18:09:00 +02:00
mertunsall 06e092f9d1 fix 2025-06-24 18:06:46 +02:00
mertunsall e6dfee739d fix bugs 2025-06-24 17:08:07 +02:00
Cursor Agent 7f369df0c8 Fix type hints and improve type safety in AgentOutput and service module 2025-06-24 14:48:16 +00:00
mertunsall b3e83d6d05 Fix 2025-06-24 16:39:14 +02:00
Cursor Agent 411af73f20 Refactor message manager example generation and update system prompt tag 2025-06-24 14:32:43 +00:00
Cursor Agent bf63d1843c Add optional thinking field with flexible system prompt configuration 2025-06-24 14:17:24 +00:00
Cursor Agent d57850639b Make thinking field optional in browser-use agent 2025-06-24 12:40:07 +00:00
Mert Unsal 1d47b15bfe Merge branch 'main' into feature/squashed-langchain-to-native 2025-06-24 13:09:18 +02:00
mertunsall e6d32b0017 fix format 2025-06-24 12:55:59 +02:00
Mert Unsal 89988e5b64 Merge branch 'main' into mert/sensitive_data_fix 2025-06-24 12:51:16 +02:00
mertunsall 27ac2354e1 fix sensitive data 2025-06-24 12:49:52 +02:00
mertunsall 53d277a2e3 - file system is initialized based on agent id
- available file paths are updated when something is downloaded
2025-06-24 12:36:44 +02:00
Gregor Žunič 7a10ae0c96 Squashed commit langchain to native 2025-06-24 12:26:55 +02:00
Mert Unsal 2113604c16 Merge branch 'main' into mert/hotfix 2025-06-24 00:21:58 +02:00
mertunsall 73d5a2ff60 hotfix 2025-06-24 00:21:10 +02:00
mertunsall 9edffbdd10 move filesystem controllers 2025-06-23 23:56:51 +02:00
mertunsall 4febeeada0 make available_file_paths more reliable 2025-06-23 21:46:17 +02:00
Mert Unsal ad3df79350 Update browser_use/agent/prompts.py
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2025-06-23 16:05:45 +02:00
mertunsall c40b5c89f4 Fix <available_file_paths> 2025-06-23 16:00:56 +02:00
mertunsall 1aa1b79a72 adapt system prompt accordingly 2025-06-23 14:02:58 +02:00
mertunsall 8c4dc394ee Improve history 2025-06-23 13:53:25 +02:00
mertunsall c6642afbab More explicit memory in read_file 2025-06-23 13:51:38 +02:00
mingzhong.li dbae589623 fix: fixing open file encoding error in windows 2025-06-22 17:52:14 +08:00
mertunsall 95ca883894 Update system prompt 2025-06-21 23:36:48 +02:00
mertunsall b4783745b9 Revert "Enhance system prompt reasoning (#2022)"
This reverts commit 25a2eecbfd, reversing
changes made to 8194ecbc3e.
2025-06-21 23:27:19 +02:00
Nick Sweeting 6bc1f7985f more type hint fixes 2025-06-21 04:56:27 -07:00
Nick Sweeting 340bafdd29 move old tests to old folder 2025-06-21 04:47:46 -07:00
Nick Sweeting b67be37490 fix type hint errors 2025-06-21 04:35:24 -07:00
Nick Sweeting 3cf9f3410c fix config issues 2025-06-21 04:03:58 -07:00