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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -20
app.py CHANGED
@@ -122,26 +122,17 @@ class BasicAgent:
122
  ],
123
  max_steps=6,
124
  name="EvalAgent",
125
- description="Certification agent using vision, search, time, audio, and csv tools",
126
- system_prompt="""
127
- You are EvalAgent, a helpful assistant answering questions using the tools provided.
128
-
129
- Use the following tools **when needed**, and only once per step:
130
- - `duckduckgo_search`: Use this for factual lookups or to find external sources like Wikipedia or Discogs. Do **not** loop variations of the same search more than twice.
131
- - `describe_image_with_blip`: Use this when an image is provided and needs a description.
132
- - `transcribe_audio`: Use this only when you are provided with an audio file (e.g., MP3 or WAV).
133
- - `get_current_time_in_timezone`: Use when the user requests the current time or mentions a location/timezone.
134
- - `parse_csv`: Use this to explore and summarize the contents of CSV files.
135
-
136
- Important:
137
- - Always respond with a **'Final Answer:'** at the end of your reasoning, summarizing the direct answer to the question.
138
- - Do not attempt to visit or scrape webpages directly.
139
- - Do not call undefined tools or repeat steps unnecessarily.
140
- - If unsure, make your best effort using available tools and answer as clearly as possible.
141
-
142
- Stay concise and focused.
143
- """
144
- )
145
  print("✅ Agent initialized with all tools")
146
 
147
  def __call__(self, question: str) -> str:
 
122
  ],
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")
137
 
138
  def __call__(self, question: str) -> str: