orbulat commited on
Commit
7d2f05d
·
verified ·
1 Parent(s): 5112b6c

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +9 -4
agent.py CHANGED
@@ -183,7 +183,7 @@ class BasicAgent:
183
  model=model,
184
  tools=tools,
185
  add_base_tools=False,
186
- max_steps=15,
187
  )
188
  self.agent.system_prompt = (
189
  """
@@ -220,12 +220,17 @@ class BasicAgent:
220
  - For Wikipedia or web tools, extract only the precise fact that answers the question.
221
  - Ignore any unrelated content.
222
 
223
- 6. **File or Video Analysis**:
224
- - Use the relevant tool.
225
  - Only include the exact answer to the question.
226
  - Do not summarize, quote excessively, or interpret beyond the prompt.
227
 
228
- 7. **Minimalism**:
 
 
 
 
 
229
  - Do not make assumptions unless the prompt logically demands it.
230
  - If a question has multiple valid interpretations, choose the **narrowest, most literal** one.
231
  - If the answer is not found, say `[ANSWER] - unknown`.
 
183
  model=model,
184
  tools=tools,
185
  add_base_tools=False,
186
+ max_steps=12,
187
  )
188
  self.agent.system_prompt = (
189
  """
 
220
  - For Wikipedia or web tools, extract only the precise fact that answers the question.
221
  - Ignore any unrelated content.
222
 
223
+ 6. **File Analysis**:
224
+ - Use the FileAttachmentQueryTool tool.
225
  - Only include the exact answer to the question.
226
  - Do not summarize, quote excessively, or interpret beyond the prompt.
227
 
228
+ 7. **Video**:
229
+ - Use the relevant video tool.
230
+ - Only include the exact answer to the question.
231
+ - Do not summarize, quote excessively, or interpret beyond the prompt.
232
+
233
+ 8. **Minimalism**:
234
  - Do not make assumptions unless the prompt logically demands it.
235
  - If a question has multiple valid interpretations, choose the **narrowest, most literal** one.
236
  - If the answer is not found, say `[ANSWER] - unknown`.