Abbasid commited on
Commit
997896a
·
verified ·
1 Parent(s): 6a1d4f7

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +7 -11
agent.py CHANGED
@@ -1,7 +1,3 @@
1
- """
2
- Bare-bones improved GAIA agent – manual LangGraph, no DB.
3
- Includes: vision, code-REPL, smarter search, caching, streaming.
4
- """
5
  import json
6
  import os
7
  import pickle
@@ -163,7 +159,7 @@ def arxiv_search(query: str) -> str:
163
  # 4. System prompt
164
  # ----------------------------------------------------------
165
  SYSTEM_PROMPT = (
166
- "You are a helpful assistant tasked with answering questions using a set of tools.
167
 
168
  Your final answer must strictly follow this format:
169
  FINAL ANSWER: [ANSWER]
@@ -172,14 +168,14 @@ Only write the answer in that exact format. Do not explain anything. Do not incl
172
 
173
  If you are provided with a similar question and its final answer, and the current question is **exactly the same**, then simply return the same final answer without using any tools.
174
 
175
- Only use tools if the current question is different from the similar one".
176
 
177
  Examples:
178
- "- FINAL ANSWER: FunkMonk"
179
- "- FINAL ANSWER: Paris""
180
- "- FINAL ANSWER: 128"
181
-
182
- "If you do not follow this format exactly, your response will be considered incorrect".
183
  )
184
 
185
  # ----------------------------------------------------------
 
 
 
 
 
1
  import json
2
  import os
3
  import pickle
 
159
  # 4. System prompt
160
  # ----------------------------------------------------------
161
  SYSTEM_PROMPT = (
162
+ """You are a helpful assistant tasked with answering questions using a set of tools.
163
 
164
  Your final answer must strictly follow this format:
165
  FINAL ANSWER: [ANSWER]
 
168
 
169
  If you are provided with a similar question and its final answer, and the current question is **exactly the same**, then simply return the same final answer without using any tools.
170
 
171
+ Only use tools if the current question is different from the similar one.
172
 
173
  Examples:
174
+ - FINAL ANSWER: FunkMonk
175
+ - FINAL ANSWER: Paris
176
+ - FINAL ANSWER: 128
177
+ If you do not follow this format exactly, your response will be considered incorrect.
178
+ """
179
  )
180
 
181
  # ----------------------------------------------------------