Commit Graph

137 Commits

Author SHA1 Message Date
Magnus Müller
bece4707d2 alphanumeric file names 2025-10-30 11:51:13 -07:00
Magnus Müller
0604bda9cf Write file desc 2025-10-30 10:37:31 -07:00
Magnus Müller
cc89c37669 Include index desc for click 2025-10-30 10:13:49 -07:00
Magnus Müller
356183b4c5 Dropdown mesage 2025-10-30 10:11:32 -07:00
Magnus Müller
d93106fef6 Fix dropdown error 2025-10-30 00:29:43 -07:00
Magnus Müller
59c32a2585 File desc 2025-10-30 00:18:40 -07:00
Magnus Müller
79bdbb2e35 Logs 2025-10-30 00:10:45 -07:00
Magnus Müller
07b41da192 Scroll to text 2025-10-29 22:43:34 -07:00
Magnus Müller
f3bca4c936 Screenshot fix 2025-10-29 21:24:48 -07:00
Magnus Müller
219224af69 Screenshot msg 2025-10-29 21:07:40 -07:00
Magnus Müller
fce23ff75a NoParamsAction in screenshot 2025-10-29 19:52:05 -07:00
Magnus Müller
6ac98ae3d8 Update image placeholder in result text extraction to a single generic placeholder
- Changed the image placeholder format from a numbered format (e.g., '[Image #1]') to a single generic placeholder ('[Image]') for consistency and simplicity in the result text processing.
2025-10-29 18:33:09 -07:00
Magnus Müller
0c27b7a9c9 Refactor parameter handling in Tools class to support both dictionary and object formats
- Updated the extraction of `query`, `extract_links`, and `start_from_char` parameters to handle cases where `params` can be either a dictionary or an object, improving flexibility and robustness in the Tools class.
2025-10-29 18:31:38 -07:00
Magnus Müller
ad505378df Refactor dropdown option logging and error messages in DefaultActionWatchdog and Tools classes
- Updated the logging messages for dropdown options to be more concise and clear.
- Adjusted error messages in the Tools class to reflect the action of typing text instead of inputting it, enhancing clarity in debugging logs.
2025-10-29 18:28:04 -07:00
Magnus Müller
0ba68dd84a fix-evaluate screenshot 2025-10-29 18:26:52 -07:00
Magnus Müller
e33393afcf fix-enter 2025-10-29 18:09:59 -07:00
Magnus Müller
1383604961 better descripiton for extract 2025-10-29 17:21:15 -07:00
Magnus Müller
0ba26ae9fb Enhance error messages for unavailable file paths in Tools class. Updated messages to provide clear instructions for users on how to add file paths to the available_file_paths parameter when creating an Agent. This improves user guidance and error handling for file uploads. 2025-10-29 15:37:40 -07:00
Magnus Müller
1947eab03e Element text after click 2025-10-28 20:53:03 -07:00
Magnus Müller
191e0a91ed Message update 2025-10-27 21:48:17 -07:00
Magnus Müller
6098685bca Enhance documentation for file writing action and improve field descriptions
- Updated the `write_file` action to include detailed documentation on supported file formats (.txt, .md, .json, .jsonl, .csv, .pdf) and conversion process for PDF files.
- Refined the `text` field description in `DoneAction` to clarify the expected format for user summaries.
- Improved the `success` field description in `StructuredOutputAction` to specify its meaning more clearly.

These changes aim to enhance clarity and usability for developers interacting with the API.
2025-10-27 21:46:47 -07:00
Magnus Müller
8410a3b9bc Rename action logs to click 2025-10-26 21:50:28 -07:00
Magnus Müller
e1e8003c24 Fix: Ensure direct action calls go through act() for consistent error handling
The action_wrapper now delegates to act() instead of calling registry.execute_action() directly.
This ensures:
- Consistent error handling (returns ActionResult with error, not raw exceptions)
- Consistent result normalization (always returns ActionResult)
- Full observability (Laminar spans, logging)
- Proper handling of BrowserError and TimeoutError

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-24 19:34:18 -07:00
Magnus Müller
56a301ed7d Linter 2025-10-24 19:26:14 -07:00
Magnus Müller
c9137fe029 Add direct action call API to Tools via __getattr__
Enable simpler, more ergonomic action calls in tests and direct usage:
- Old API: tools.act(NavigateActionModel(navigate=GoToUrlAction(...)), browser_session)
- New API: tools.navigate(url=..., browser_session=browser_session)

Implementation:
- Added __getattr__ method to Tools class that dynamically creates action wrappers
- Delegates to existing registry.execute_action() to avoid code duplication
- Works with all Tools subclasses (Tools, CodeAgentTools, custom subclasses)
- Works with custom registered actions
- Maintains full backward compatibility with existing act() API

Benefits:
- Significantly reduces boilerplate in tests
- More intuitive and Pythonic API
- All existing code continues to work unchanged
- No code duplication (delegates to registry)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-24 19:25:00 -07:00
Magnus Müller
1f58f60c2e Fix evaluate 2025-10-21 21:50:41 -07:00
Magnus Müller
4d5261418e 2 upload function 2025-10-21 21:44:27 -07:00
Magnus Müller
9caa248316 Merge code7 branch changes 2025-10-21 18:55:54 -07:00
Magnus Müller
c13c44be5f Fix js include matches 2025-10-14 16:40:43 -07:00
Magnus Müller
8736825e39 No comments 2025-10-14 16:05:56 -07:00
Magnus Müller
4440c187af evaluate js 2025-10-14 16:03:13 -07:00
Magnus Müller
b5afe2fece Linter 2025-10-14 15:41:13 -07:00
Magnus Müller
c9b99797fb Better parsing 2025-10-14 15:35:41 -07:00
Magnus Müller
2f43b5cfbe Parse js 2025-10-14 15:25:48 -07:00
Magnus Müller
20f8ef81e1 Unify extract in actor and tools 2025-10-13 21:11:26 -07:00
Magnus Müller
84395f1641 Filter out json and metadata from markdown 2025-10-13 20:31:21 -07:00
Magnus Müller
cf09b81af3 Update to markdownify 2025-10-13 20:07:38 -07:00
Magnus Müller
6316ae693b First version 2025-10-13 18:58:21 -07:00
Magnus Müller
74f0c25b8e Fix memory 2025-10-12 16:20:10 -07:00
Magnus Müller
4078b6e265 Remove while_holding_ctrl logic in click 2025-10-12 16:11:09 -07:00
Magnus Müller
e69ba30db6 Fix double space 2025-10-12 13:20:27 -07:00
Magnus Müller
301fab0726 Reduce tokens for extract 2025-10-12 13:08:44 -07:00
Magnus Müller
1ac613ca0e Scroll return reduction 2025-10-12 13:08:22 -07:00
Magnus Müller
40a591e4d2 Default function to get coords by backendnode id 2025-10-11 15:48:32 -07:00
Magnus Müller
a4e8eebdd1 Wait log 2025-10-11 12:53:43 -07:00
Magnus Müller
f09004ebd5 include todo in files 2025-10-11 10:52:44 -07:00
Magnus Müller
1086a5634c Init 2025-10-09 11:44:07 -07:00
Magnus Müller
78b53a34b7 update tools 2025-10-08 22:16:41 -07:00
Magnus Müller
de0488031d Squashed commit of the following:
commit 92d1732a40
Merge: fa4ff47a efcd2b33
Author: Magnus Müller <67061560+MagMueller@users.noreply.github.com>
Date:   Wed Oct 8 08:18:35 2025 -0700

    Merge main

commit fa4ff47ae4
Author: Magnus Müller <67061560+MagMueller@users.noreply.github.com>
Date:   Wed Oct 8 08:03:04 2025 -0700

    Laminar info mode

commit 8625aa9ba9
Author: Magnus Müller <67061560+MagMueller@users.noreply.github.com>
Date:   Wed Oct 8 08:02:54 2025 -0700

    Default to flash for browser use llm

commit 69a517ad7c
Author: Magnus Müller <67061560+MagMueller@users.noreply.github.com>
Date:   Wed Oct 8 08:02:44 2025 -0700

    Update example

commit c91467c51d
Author: Magnus Müller <67061560+MagMueller@users.noreply.github.com>
Date:   Wed Oct 8 08:02:15 2025 -0700

    Update example

commit 4e2b3f1306
Author: Magnus Müller <67061560+MagMueller@users.noreply.github.com>
Date:   Wed Oct 8 07:54:05 2025 -0700

    Linter

commit e8d6936a47
Author: Magnus Müller <67061560+MagMueller@users.noreply.github.com>
Date:   Wed Oct 8 07:53:43 2025 -0700

    Example

commit 961d6fc451
Author: Magnus Müller <67061560+MagMueller@users.noreply.github.com>
Date:   Wed Oct 8 07:52:23 2025 -0700

    Update default links

commit 0b2853859b
Author: Magnus Müller <67061560+MagMueller@users.noreply.github.com>
Date:   Wed Oct 8 07:44:59 2025 -0700

    Default fast fasle

commit 9d67594b63
Author: Magnus Müller <67061560+MagMueller@users.noreply.github.com>
Date:   Tue Oct 7 22:01:24 2025 -0700

    Simplify

commit f5712bdec0
Author: Magnus Müller <67061560+MagMueller@users.noreply.github.com>
Date:   Tue Oct 7 21:45:00 2025 -0700

    Parsing json

commit 503af624dd
Merge: ef7fa1e4 0d2522b1
Author: Magnus Müller <67061560+MagMueller@users.noreply.github.com>
Date:   Tue Oct 7 21:04:31 2025 -0700

    Merge branch 'flat-output' of https://github.com/browser-use/browser-use into flat-output

commit ef7fa1e401
Author: Magnus Müller <67061560+MagMueller@users.noreply.github.com>
Date:   Tue Oct 7 21:04:28 2025 -0700

    Add prompt description handling for browser-use cloud service

    - Enhanced the Agent class to generate and pass prompt descriptions to the LLM when using the browser-use provider.
    - Updated the ChatBrowserUse class to accept an optional prompt_description parameter in the ainvoke method.
    - Modified the tracked_ainvoke function in TokenCost to forward additional keyword arguments.
    - Adjusted example model to initialize Laminar for tracing.

commit 0d2522b1f9
Author: Gregor Žunič <36313686+gregpr07@users.noreply.github.com>
Date:   Tue Oct 7 20:23:39 2025 -0700

    updated default base url

commit 0a2e6d6520
Author: Magnus Müller <67061560+MagMueller@users.noreply.github.com>
Date:   Tue Oct 7 18:50:56 2025 -0700

    Hide api key

commit 96bba9692b
Author: Magnus Müller <67061560+MagMueller@users.noreply.github.com>
Date:   Tue Oct 7 18:49:05 2025 -0700

    Add env var loading and validation to ChatBrowserUse, update example

commit c2e57a3bab
Author: Magnus Müller <67061560+MagMueller@users.noreply.github.com>
Date:   Tue Oct 7 18:36:31 2025 -0700

    Linter

commit 3d4cc1dbec
Author: Magnus Müller <67061560+MagMueller@users.noreply.github.com>
Date:   Tue Oct 7 16:28:10 2025 -0700

    Rename

commit 14ab0b75fe
Author: Magnus Müller <67061560+MagMueller@users.noreply.github.com>
Date:   Tue Oct 7 16:21:52 2025 -0700

    Rename super_fast to fast parameter in ChatBrowserUse

commit 7fab3c47d3
Author: Magnus Müller <67061560+MagMueller@users.noreply.github.com>
Date:   Tue Oct 7 16:08:10 2025 -0700

    Update system prompt

commit 2066e77b98
Author: Magnus Müller <67061560+MagMueller@users.noreply.github.com>
Date:   Tue Oct 7 16:07:51 2025 -0700

    Del claude file

commit 297b767e91
Author: Magnus Müller <67061560+MagMueller@users.noreply.github.com>
Date:   Tue Oct 7 16:01:50 2025 -0700

    Revert flash system prompt to JSON format

    - Reverted system_prompt_flash.md to main (JSON format)
    - Added examples/models/browser_use_cloud.py for llm-use cloud service
    - llm-use service will inject unstructured format on the server side

commit 99af55f8e9
Author: Magnus Müller <67061560+MagMueller@users.noreply.github.com>
Date:   Tue Oct 7 15:58:40 2025 -0700

    Example

commit 657ff0d352
Author: Magnus Müller <67061560+MagMueller@users.noreply.github.com>
Date:   Tue Oct 7 15:54:23 2025 -0700

    Remove unused

commit a42123d8e5
Author: Magnus Müller <67061560+MagMueller@users.noreply.github.com>
Date:   Tue Oct 7 15:49:54 2025 -0700

    ignore

commit de4fe19020
Author: Magnus Müller <67061560+MagMueller@users.noreply.github.com>
Date:   Tue Oct 7 15:48:01 2025 -0700

    Example

commit 27e5ab9947
Author: Magnus Müller <67061560+MagMueller@users.noreply.github.com>
Date:   Tue Oct 7 14:29:01 2025 -0700

    Add llm-use cloud client example

    - ChatLLMUseCloud: Browser-use compatible client for llm-use service
    - Implements BaseChatModel protocol with proper typing
    - Includes credit checking before/after tasks
    - Error handling for 401/402/500 responses
    - Converts messages between browser-use and HTTP API formats
    - Returns ChatInvokeCompletion with usage stats

    Usage:
      export LLM_USE_URL='https://your-app.railway.app'
      export LLM_USE_API_KEY='your-key'
      python examples/llm_use_cloud_client.py

commit a47a448005
Author: Magnus Müller <67061560+MagMueller@users.noreply.github.com>
Date:   Tue Oct 7 13:03:59 2025 -0700

    Enhance response parsing in ChatBrowserUse to handle structured data from the API, including debug logging for received data keys.

commit e79c7dc633
Author: Magnus Müller <67061560+MagMueller@users.noreply.github.com>
Date:   Mon Oct 6 19:39:29 2025 -0700

    Include browser-use llm

commit 584d977154
Author: Magnus Müller <67061560+MagMueller@users.noreply.github.com>
Date:   Mon Oct 6 17:55:31 2025 -0700

    Linter

commit b0ac87076a
Merge: 1183b8fe 0076775f
Author: Magnus Müller <67061560+MagMueller@users.noreply.github.com>
Date:   Mon Oct 6 15:01:37 2025 -0700

    merge main

commit 1183b8fe6b
Author: Magnus Müller <67061560+MagMueller@users.noreply.github.com>
Date:   Sun Oct 5 16:26:34 2025 -0700

    Fix done output action model

commit 852449b1bc
Author: Magnus Müller <67061560+MagMueller@users.noreply.github.com>
Date:   Sun Oct 5 16:23:31 2025 -0700

    More debug info

commit a57ba25d36
Author: Magnus Müller <67061560+MagMueller@users.noreply.github.com>
Date:   Sun Oct 5 16:07:15 2025 -0700

    Multiline parser

commit 2153dbe6aa
Author: Magnus Müller <67061560+MagMueller@users.noreply.github.com>
Date:   Sun Oct 5 15:50:14 2025 -0700

    Fix custom output

commit ec5c08ba0f
Author: Magnus Müller <67061560+MagMueller@users.noreply.github.com>
Date:   Sun Oct 5 15:36:54 2025 -0700

    Fix files in output

commit 7444048e8f
Author: Magnus Müller <67061560+MagMueller@users.noreply.github.com>
Date:   Sun Oct 5 15:28:09 2025 -0700

    Update codebase with unstructured output

commit a8f05b4611
Author: Magnus Müller <67061560+MagMueller@users.noreply.github.com>
Date:   Sun Oct 5 14:55:20 2025 -0700

    Save systemprompt

commit d7d112c569
Author: Magnus Müller <67061560+MagMueller@users.noreply.github.com>
Date:   Sun Oct 5 14:51:24 2025 -0700

    new parser
2025-10-08 08:39:24 -07:00
Magnus Müller
0fb1c73abc Remove ge=1 2025-10-05 21:47:57 -07:00