138 Commits

Author SHA1 Message Date
mertunsall bc8fd10ea8 whatever 2025-11-11 15:31:58 -08:00
mertunsall 1e3a36dbce revert extract changes 2025-11-11 15:01:25 -08:00
mertunsall 3259c54ef6 Revert 2025-11-11 14:43:15 -08:00
mertunsall 07d9e4a252 fix comment 2025-11-10 21:30:09 -08:00
mertunsall e5df80a0d6 flatten the extract action and some small things 2025-11-08 10:02:15 -08:00
mertunsall d06d8fa8a2 image resizing the make sonnet 4.5 work 2025-11-07 22:20:14 -08:00
Mert Unsal 38fb9faaa4 Merge branch 'main' into mert/click_by_coordinate 2025-11-06 16:54:11 -08:00
mertunsall 03c9e94dc6 allow reading images such as jpg/png, as well as docx, fixes to the flash system prompt 2025-11-03 16:41:27 -08:00
Mert Unsal d8f41efb75 Merge branch 'main' into mert/click_by_coordinate 2025-11-03 14:28:22 -08:00
Alezander9 f1b0473645 Merge remote-tracking branch 'upstream/main' into library-judge 2025-11-01 15:25:55 -07:00
Mert Unsal bc7b353316 Merge branch 'main' into mert/click_by_coordinate 2025-11-01 14:00:09 -07:00
mertunsall 4dca53282c add clicking by coordinate 2025-11-01 13:58:15 -07:00
Cursor Agent 596ada0540 Log full file path when writing to file
Co-authored-by: mamagnus00 <mamagnus00@gmail.com>
2025-11-01 18:25:33 +00:00
Alezander9 0f1946cb54 implement simple judge directly into the library on done action 2025-10-31 20:01:07 -07:00
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 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