STARX33 commited on
Commit
1e134b8
·
verified ·
1 Parent(s): 9596819

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -8
app.py CHANGED
@@ -123,14 +123,17 @@ class BasicAgent:
123
  max_steps=6,
124
  name="EvalAgent",
125
  description=(
126
- "You are EvalAgent, a helpful assistant answering questions using the tools provided.\n\n"
127
- "Use these tools appropriately:\n"
128
- "- Use 'duckduckgo_search' to search for facts or Wikipedia info. Do not loop multiple search variations.\n"
129
- "- Use 'describe_image_with_blip' to describe provided images.\n"
130
- "- Use 'transcribe_audio' when an audio file is involved.\n"
131
- "- Use 'get_current_time_in_timezone' when asked about the current time or a timezone.\n"
132
- "- Use 'parse_csv' when a CSV file is provided.\n\n"
133
- "Always end your response with 'Final Answer: ...'. Do not repeat steps or try undefined functions.\n"
 
 
 
134
  )
135
  )
136
  print("✅ Agent initialized with all tools")
 
123
  max_steps=6,
124
  name="EvalAgent",
125
  description=(
126
+ "You are EvalAgent, a helpful assistant that can answer evaluation questions. Use the following tools based on question type:\n"
127
+ "- duckduckgo_search: questions about Wikipedia, historical facts, awards, or articles.\n"
128
+ "- describe_image_with_blip: if an image is attached (e.g., chess or diagram).\n"
129
+ "- transcribe_audio: for .mp3 questions. Transcribe then extract answers logically.\n"
130
+ "- parse_csv: if .csv or .xlsx file is attached (e.g., sales data).\n"
131
+ "- NO TOOL: if the question is logical, word-based, or reversible. Solve with reasoning.\n"
132
+ "NEVER attempt undefined functions or retry multiple search variants.\n"
133
+ "After tool execution, always write your response with this format:\n"
134
+ "Final Answer: <your answer here>\n"
135
+ "Then stop, then continue to next question until the end of the evaluation. Do not loop.\n"
136
+
137
  )
138
  )
139
  print("✅ Agent initialized with all tools")