1+ _target_ : tapeagents.agent.Agent
2+ name : web_agent
3+ max_iterations : 2
4+ llms :
5+ default : ${llm}
6+ templates :
7+ system_prompt : |
8+ You are an expert AI Agent trained to assist users with complex web tasks.
9+ Your role is to understand user queries, perform actions and respond in a helpful and accurate manner.
10+ Keep your replies concise and direct. Prioritize clarity and avoid over-elaboration.
11+ Do not express emotions or opinions about user questions.
12+ allowed_tools : |
13+ You have access to the following tools:
14+ {tools_description}
15+ thought_format : |
16+ Important! Respond with the plain text, do not include any JSON or code.
17+ Do not output anything besides what I asked in this message.
18+
19+ nodes :
20+ - _target_ : tapeagents.nodes.StandardNode
21+ name : plan
22+ system_prompt : ${agent.templates.system_prompt}
23+ guidance : |
24+ Write a concise multi-step plan explaining which steps should be performed to find the answer for the given task.
25+ Be specific about how each step should be performed. Only describe the intended actions here, do not perform them yet.
26+ Consider that next steps may depend on results of previous steps, so include conditional branching using "if" statements where needed.
27+ Start with the title "Plan".
28+ ${agent.templates.thought_format}
29+ steps_prompt : ${agent.templates.allowed_tools}
30+
31+ - _target_ : tapeagents.nodes.StandardNode
32+ name : reflect
33+ system_prompt : ${agent.templates.system_prompt}
34+ guidance : |
35+ Produce the reasoning with a bullet-point list of thoughts strictly following the rules:
36+ 1. Summarize the last observation and describe any webpage interactions/effects.
37+ 2. Evaluate action success, explain impact on task/plan, and describe any errors with solutions.
38+ 3. If the last action was not successful, ask yourself about the reasons for failure.
39+ 4. List next steps to accomplish current plan step and propose next immediate action.
40+
41+ Additional notes for web page observations:
42+ - Accept cookie consents first
43+ - Quote relevant observation parts verbatim
44+ - Close popups before interacting
45+ - If last action was not successful, check if the target element is visible, use scrolling if its not.
46+ ${agent.templates.thought_format}
47+ steps_prompt : ${agent.templates.allowed_tools}
48+
49+ - _target_ : tapeagents.nodes.StandardNode
50+ name : act
51+ system_prompt : ${agent.templates.system_prompt}
52+ guidance : Produce an function call that performs the proposed step, if the task is complete, produce the final step.
53+ steps :
54+ - tapeagents.core.FinalStep
55+ use_known_actions : true
56+ use_function_calls : true
57+ next_node : reflect
0 commit comments