Spaces:
Paused
Paused
Update config/agents.yaml
Browse files- config/agents.yaml +72 -118
config/agents.yaml
CHANGED
|
@@ -1,125 +1,79 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
tools=[web_search_tool],
|
| 9 |
-
verbose=True
|
| 10 |
-
)
|
| 11 |
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
# role="Web Browser Agent",
|
| 20 |
-
# goal="Given a question and URL, load the URL and act, extract, navigate, observe, and answer the question: {question}",
|
| 21 |
-
# backstory="As an expert browser assistant, you load the URL and act, extract, navigate, observe to answer the question.",
|
| 22 |
-
# allow_delegation=False,
|
| 23 |
-
# llm=AGENT_MODEL,
|
| 24 |
-
# max_iter=2,
|
| 25 |
-
# tools=[web_browser_tool],
|
| 26 |
-
# verbose=True
|
| 27 |
-
# )
|
| 28 |
-
|
| 29 |
-
image_analysis_agent = Agent(
|
| 30 |
-
role="Image Analysis Agent",
|
| 31 |
-
goal="Given a question and image file, analyze the image and answer the question: {question}",
|
| 32 |
-
backstory="As an expert image analysis assistant, you analyze the image to answer the question.",
|
| 33 |
-
allow_delegation=False,
|
| 34 |
-
llm=AGENT_MODEL,
|
| 35 |
-
max_iter=2,
|
| 36 |
-
tools=[image_analysis_tool],
|
| 37 |
-
verbose=True
|
| 38 |
-
)
|
| 39 |
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
tools=[audio_analysis_tool],
|
| 48 |
-
verbose=True
|
| 49 |
-
)
|
| 50 |
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
tools=[video_analysis_tool],
|
| 59 |
-
verbose=True
|
| 60 |
-
)
|
| 61 |
-
|
| 62 |
-
youtube_analysis_agent = Agent(
|
| 63 |
-
role="YouTube Analysis Agent",
|
| 64 |
-
goal="Given a question and YouTube URL, analyze the video and answer the question: {question}",
|
| 65 |
-
backstory="As an expert YouTube analysis assistant, you analyze the video to answer the question.",
|
| 66 |
-
allow_delegation=False,
|
| 67 |
-
llm=AGENT_MODEL,
|
| 68 |
-
max_iter=2,
|
| 69 |
-
tools=[youtube_analysis_tool],
|
| 70 |
-
verbose=True
|
| 71 |
-
)
|
| 72 |
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
tools=[document_analysis_tool],
|
| 81 |
-
verbose=True
|
| 82 |
-
)
|
| 83 |
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
|
|
|
|
|
|
| 105 |
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
tools=[code_generation_tool],
|
| 114 |
-
verbose=True
|
| 115 |
-
)
|
| 116 |
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
verbose=True
|
| 125 |
-
)
|
|
|
|
| 1 |
+
web_search_agent:
|
| 2 |
+
role: >
|
| 3 |
+
Web Search Agent
|
| 4 |
+
goal: >
|
| 5 |
+
Given a question only, search the web and answer the question: {question}
|
| 6 |
+
backstory: >
|
| 7 |
+
As an expert web search assistant, you search the web to answer the question.
|
|
|
|
|
|
|
|
|
|
| 8 |
|
| 9 |
+
image_analysis_agent:
|
| 10 |
+
role: >
|
| 11 |
+
Image Analysis Agent
|
| 12 |
+
goal: >
|
| 13 |
+
Given a question and image file, analyze the image and answer the question: {question}
|
| 14 |
+
backstory: >
|
| 15 |
+
As an expert image analysis assistant, you analyze the image to answer the question.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
|
| 17 |
+
audio_analysis_agent:
|
| 18 |
+
role: >
|
| 19 |
+
Audio Analysis Agent
|
| 20 |
+
goal: >
|
| 21 |
+
Given a question and audio file, analyze the audio and answer the question: {question}
|
| 22 |
+
backstory: >
|
| 23 |
+
As an expert audio analysis assistant, you analyze the audio to answer the question.
|
|
|
|
|
|
|
|
|
|
| 24 |
|
| 25 |
+
video_analysis_agent:
|
| 26 |
+
role: >
|
| 27 |
+
Video Analysis Agent
|
| 28 |
+
goal: >
|
| 29 |
+
Given a question and video file, analyze the video and answer the question: {question}
|
| 30 |
+
backstory: >
|
| 31 |
+
As an expert video analysis assistant, you analyze the video file to answer the question.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
|
| 33 |
+
youtube_analysis_agent:
|
| 34 |
+
role: >
|
| 35 |
+
YouTube Analysis Agent
|
| 36 |
+
goal: >
|
| 37 |
+
Given a question and YouTube URL, analyze the video and answer the question: {question}
|
| 38 |
+
backstory: >
|
| 39 |
+
As an expert YouTube analysis assistant, you analyze the video to answer the question.
|
|
|
|
|
|
|
|
|
|
| 40 |
|
| 41 |
+
document_analysis_agent:
|
| 42 |
+
role: >
|
| 43 |
+
Document Analysis Agent
|
| 44 |
+
goal: >
|
| 45 |
+
Given a question and document file, analyze the document and answer the question: {question}
|
| 46 |
+
backstory: >
|
| 47 |
+
As an expert document analysis assistant, you analyze the document to answer the question.
|
| 48 |
+
|
| 49 |
+
arithmetic_agent:
|
| 50 |
+
role: >
|
| 51 |
+
Arithmetic Agent
|
| 52 |
+
goal: >
|
| 53 |
+
Given a question and two numbers, perform the calculation and answer the question: {question}
|
| 54 |
+
backstory: >
|
| 55 |
+
As an expert arithmetic assistant, you perform the calculation to answer the question.
|
| 56 |
+
|
| 57 |
+
code_execution_agent:
|
| 58 |
+
role: >
|
| 59 |
+
Code Execution Agent
|
| 60 |
+
goal: >
|
| 61 |
+
Given a question and Python file, execute the file to answer the question: {question}
|
| 62 |
+
backstory: >
|
| 63 |
+
As an expert Python code execution assistant, you execute code to answer the question.
|
| 64 |
|
| 65 |
+
code_generation_agent:
|
| 66 |
+
role: >
|
| 67 |
+
Code Generation Agent
|
| 68 |
+
goal: >
|
| 69 |
+
Given a question and JSON data, generate and execute code to answer the question: {question}
|
| 70 |
+
backstory: >
|
| 71 |
+
As an expert Python code generation assistant, you generate and execute code to answer the question.
|
|
|
|
|
|
|
|
|
|
| 72 |
|
| 73 |
+
manager_agent:
|
| 74 |
+
role: >
|
| 75 |
+
Manager Agent
|
| 76 |
+
goal: >
|
| 77 |
+
Answer the following question. If needed, delegate to one of your coworkers. Question: {question}
|
| 78 |
+
backstory: >
|
| 79 |
+
As an expert manager assistant, you answer the question.
|
|
|
|
|
|