Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

fix format

mertunsall734d9d0e9e26
diff --git a/browser_use/agent/message_manager/service.py b/browser_use/agent/message_manager/service.py
index 382fdeccd..b48dbdb62 100644
--- a/browser_use/agent/message_manager/service.py
+++ b/browser_use/agent/message_manager/service.py
@@ -189,27 +189,25 @@ The file system actions do not change the browser state, so I can also click on
example_content['next_goal'] = (
'Create todo.md checklist to track progress, initialize github.md for collecting information, and click on bytedance/UI-TARS-desktop.'
)
- example_content['action'] = (
- [
- {
- 'write_file': {
- 'path': 'todo.md',
- 'content': '# Interesting Github Repositories in Explore Section\n\n## Tasks\n- [ ] Initialize a tracking file for GitHub repositories called github.md\n- [ ] Visit each Github repository and find their description\n- [ ] Visit bytedance/UI-TARS-desktop\n- [ ] Visit ray-project/kuberay\n- [ ] Check for additional Github repositories by scrolling down\n- [ ] Compile all results in the requested format\n- [ ] Validate that I have not missed anything in the page\n- [ ] Report final results to user',
- }
- },
- {
- 'write_file': {
- 'path': 'github.md',
- 'content': '# Github Repositories:\n',
- }
- },
- {
- 'click_element_by_index': {
- 'index': 4,
- }
- },
- ],
- )
+ example_content['action'] = [
+ {
+ 'write_file': {
+ 'path': 'todo.md',
+ 'content': '# Interesting Github Repositories in Explore Section\n\n## Tasks\n- [ ] Initialize a tracking file for GitHub repositories called github.md\n- [ ] Visit each Github repository and find their description\n- [ ] Visit bytedance/UI-TARS-desktop\n- [ ] Visit ray-project/kuberay\n- [ ] Check for additional Github repositories by scrolling down\n- [ ] Compile all results in the requested format\n- [ ] Validate that I have not missed anything in the page\n- [ ] Report final results to user',
+ }
+ },
+ {
+ 'write_file': {
+ 'path': 'github.md',
+ 'content': '# Github Repositories:\n',
+ }
+ },
+ {
+ 'click_element_by_index': {
+ 'index': 4,
+ }
+ },
+ ]
example_tool_call_1 = AssistantMessage(content=json.dumps(example_content), cache=True)
self._add_message_with_type(example_tool_call_1)