Skip to content

Commit 7691e49

Browse files
committed
add gaia agent conf
1 parent 27bcdc5 commit 7691e49

File tree

1 file changed

+69
-0
lines changed

1 file changed

+69
-0
lines changed

conf/gaia_agent.yaml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
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 information processing tasks.
9+
Your role is to understand user queries 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+
allowed_steps: |
19+
You have access to the following tools:
20+
{tools_description}
21+
You are allowed to produce ONLY steps with the following JSON schemas:
22+
{allowed_steps}
23+
Do not reproduce the schema when producing steps; use it as a reference.
24+
format: >
25+
Output only a single JSON dict.
26+
Do not repeat the last thought again.
27+
If the last action does not change the observation, do not repeat it!
28+
DO NOT OUTPUT ANYTHING BESIDES THE JSON! DO NOT PLACE ANY COMMENTS INSIDE THE JSON.
29+
It will break the system that processes the output.
30+
31+
nodes:
32+
- _target_: tapeagents.nodes.StandardNode
33+
name: plan
34+
system_prompt: ${agent.templates.system_prompt}
35+
guidance: |
36+
Write a concise multi-step plan explaining which steps should be performed to find the answer for the given task.
37+
Remember that you can use web search, browser, python code execution and access the youtube videos to reach your goals.
38+
Be specific about how each step should be performed. Only describe the intended actions here, do not perform them yet.
39+
Consider that next steps may depend on results of previous steps, so include conditional branching using "if" statements where needed.
40+
${agent.templates.thought_format}
41+
steps_prompt: ${agent.templates.allowed_tools}
42+
43+
- _target_: tapeagents.nodes.StandardNode
44+
name: facts_survey
45+
system_prompt: ${agent.templates.system_prompt}
46+
guidance: |
47+
Before we begin executing the plan, please answer the following pre-survey.
48+
Here is the pre-survey:
49+
1. Please list any specific facts or figures that are GIVEN in the request itself. It is possible that there are none.
50+
2. Please list any facts that may need to be looked up, and WHERE SPECIFICALLY they might be found. In some cases, authoritative sources are mentioned in the request itself.
51+
3. Please list any facts that may need to be derived (e.g., via logical deduction, simulation, or computation)
52+
4. Please list any facts that are recalled from memory, hunches, well-reasoned guesses, etc.
53+
When answering this survey, keep in mind that "facts" will typically be specific names, dates, statistics, etc.
54+
${agent.templates.thought_format}
55+
steps_prompt: ${agent.templates.allowed_tools}
56+
57+
- _target_: tapeagents.nodes.StandardNode
58+
name: act
59+
system_prompt: ${agent.templates.system_prompt}
60+
guidance: |
61+
Produce single next step. If the answer is ready, produce gaia_answer_action.
62+
${agent.templates.format}
63+
steps_prompt: ${agent.templates.allowed_steps}
64+
steps:
65+
- tapeagents.steps.ReasoningThought
66+
- examples.gaia_agent.steps.ExtractedFacts
67+
- examples.gaia_agent.steps.GaiaAnswer
68+
use_known_actions: true
69+
next_node: act

0 commit comments

Comments
 (0)