Martin Bär
commited on
Commit
·
d9145d8
1
Parent(s):
20816f3
Update prompts
Browse files- basic_agent.py +6 -5
basic_agent.py
CHANGED
@@ -97,7 +97,7 @@ class BasicAgent:
|
|
97 |
|
98 |
audio_agent = FunctionAgent(
|
99 |
name="AudioAgent",
|
100 |
-
description="Uses transcription tools to analyze audio files.",
|
101 |
system_prompt=(
|
102 |
"You are an audio agent that can transcribe an audio file identified by its id and answer questions about the transcript. "
|
103 |
"You only give concise answers and if you cannot answer the given query using your tool, "
|
@@ -110,11 +110,12 @@ class BasicAgent:
|
|
110 |
|
111 |
image_agent = FunctionAgent(
|
112 |
name="ImageAgent",
|
113 |
-
description="
|
114 |
system_prompt=(
|
115 |
"You are an agent that can read images from a file identified by its id and answer questions about it. "
|
116 |
-
"
|
117 |
-
"you
|
|
|
118 |
),
|
119 |
llm=llm,
|
120 |
tools=[get_image_qa_tool()],
|
@@ -123,7 +124,7 @@ class BasicAgent:
|
|
123 |
|
124 |
stats_agent = FunctionAgent(
|
125 |
name="StatsAgent",
|
126 |
-
description="Uses statistical tools to read and analyse excel and csv files.",
|
127 |
system_prompt=(
|
128 |
"You are an agent that can read excel and csv files and run simple statistical analysis on them. "
|
129 |
"You can use this information or the loaded file to answer questions about it. "
|
|
|
97 |
|
98 |
audio_agent = FunctionAgent(
|
99 |
name="AudioAgent",
|
100 |
+
description="Uses transcription tools to analyze audio files. This agent needs a file id and an optional question as input",
|
101 |
system_prompt=(
|
102 |
"You are an audio agent that can transcribe an audio file identified by its id and answer questions about the transcript. "
|
103 |
"You only give concise answers and if you cannot answer the given query using your tool, "
|
|
|
110 |
|
111 |
image_agent = FunctionAgent(
|
112 |
name="ImageAgent",
|
113 |
+
description="Can respond to questions involving image understanding. This agent needs a file id and a question as an input.",
|
114 |
system_prompt=(
|
115 |
"You are an agent that can read images from a file identified by its id and answer questions about it. "
|
116 |
+
"Give concise answers and only include the relevant information in you response."
|
117 |
+
"If you cannot answer the given query using your tool, you communicate this clearly. "
|
118 |
+
"Always hand off your answer to MainAgent."
|
119 |
),
|
120 |
llm=llm,
|
121 |
tools=[get_image_qa_tool()],
|
|
|
124 |
|
125 |
stats_agent = FunctionAgent(
|
126 |
name="StatsAgent",
|
127 |
+
description="Uses statistical tools to read and analyse excel and csv files. This agent needs a file id and an optional question as an input",
|
128 |
system_prompt=(
|
129 |
"You are an agent that can read excel and csv files and run simple statistical analysis on them. "
|
130 |
"You can use this information or the loaded file to answer questions about it. "
|