jjjulllesss commited on
Commit
c1c95d1
·
verified ·
1 Parent(s): b055cc5

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +8 -2
agent.py CHANGED
@@ -167,8 +167,14 @@ def final_answer_formatting(answer, question):
167
  )
168
 
169
  prompt = f"""
170
- You are an AI assistant specialized in the GAIA benchmark. For the question provided, generate the answer in the exact format requested by the question. Do not include any other text or creative additions.
171
 
 
 
 
 
 
 
172
  Question: {question}
173
  Answer: {answer}
174
  """
@@ -217,7 +223,7 @@ audio_agent = CodeAgent(
217
  manager_agent = CodeAgent(
218
  name="manager_agent",
219
  model=LiteLLMModel(
220
- model_id="gemini/gemini-2.5-flash-preview-04-17",
221
  api_key=os.getenv("GOOGLE_API_KEY"),
222
  ),
223
  tools=[GetFileTool(), LoadXlsxFileTool(), LoadTextFileTool(), ImageAnalysisTool(), WebSearchPerplexityTool()],
 
167
  )
168
 
169
  prompt = f"""
170
+ You are an AI assistant specialized in the GAIA benchmark. For the question provided, generate the answer in the exact format requested by the question. Do not include any other text, formatting or creative additions.
171
 
172
+ For example:
173
+ Question: "what is the capital of France ?"
174
+ Answer: "The capital of France is Paris. It is the largest city in France and serves as the country's political, cultural, and economic center. Paris has been the capital since its liberation in 1944, although it has held this status intermittently throughout French history"
175
+ Return: "Paris"
176
+
177
+ Your turn:
178
  Question: {question}
179
  Answer: {answer}
180
  """
 
223
  manager_agent = CodeAgent(
224
  name="manager_agent",
225
  model=LiteLLMModel(
226
+ model_id="gemini/gemini-2.0-flash",
227
  api_key=os.getenv("GOOGLE_API_KEY"),
228
  ),
229
  tools=[GetFileTool(), LoadXlsxFileTool(), LoadTextFileTool(), ImageAnalysisTool(), WebSearchPerplexityTool()],