Skip to content

Commit f7992f8

Browse files
committed
fix 03
1 parent eb45f9f commit f7992f8

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

examples/03_browser_agent_loop.py

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,10 @@ async def main():
5656
5757
Make strategic moves to maximize your score and reach the target.""",
5858
"mcp_config": mcp_config,
59-
"setup_tool": {
60-
"name": "setup",
61-
"arguments": [
62-
{"name": "launch_app", "arguments": {"app_name": "2048"}},
63-
{"name": "game_2048_board", "arguments": {"board_size": 4, "target_tile": 512}},
64-
],
65-
},
59+
"setup_tool": [
60+
{"name": "launch_app", "arguments": {"app_name": "2048"}},
61+
{"name": "setup", "arguments": {"name": "game_2048_board", "arguments": {"board_size": 4, "target_tile": 512}}},
62+
],
6663
"evaluate_tool": {
6764
"name": "evaluate",
6865
"arguments": {"name": "game_2048_max_number", "arguments": {"target": 512}},
@@ -78,13 +75,10 @@ async def main():
7875
7976
Be systematic and interact with the app's features.""",
8077
"mcp_config": mcp_config,
81-
"setup_tool": {
82-
"name": "setup",
83-
"arguments": [
84-
{"name": "launch_app", "arguments": {"app_name": "todo"}},
85-
{"name": "todo_seed", "arguments": {"num_items": 5}},
86-
],
87-
},
78+
"setup_tool": [
79+
{"name": "launch_app", "arguments": {"app_name": "todo"}},
80+
{"name": "setup", "arguments": {"name": "todo_seed", "arguments": {"num_items": 5}}},
81+
],
8882
"evaluate_tool": {
8983
"name": "evaluate",
9084
"arguments": {"name": "todo_completed", "arguments": {"expected_count": 4}},

0 commit comments

Comments
 (0)