Coool2 commited on
Commit
d7040ab
·
verified ·
1 Parent(s): 3860a34

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +1 -7
agent.py CHANGED
@@ -262,7 +262,7 @@ extract_url_tool = FunctionTool.from_defaults(
262
  fn=search_and_extract_top_url,
263
  name="extract_url_tool",
264
  description=(
265
- "Use this tool ONLY when you need to find a relevant URL to answer a question but no when a specific file or document has been provided. It takes a search query as input and returns a single, relevant URL."
266
  )
267
  )
268
 
@@ -581,12 +581,6 @@ class EnhancedGAIAAgent:
581
  name="GAIACoordinator",
582
  system_prompt="""
583
  You are a general AI assistant. I will ask you a question. Report your thoughts, and finish your answer with the following template: FINAL ANSWER: [YOUR FINAL ANSWER]. YOUR FINAL ANSWER should be a number OR as few words as possible OR a comma separated list of numbers and/or strings. If you are asked for a number, don't use comma to write your number neither use units such as $ or percent sign unless specified otherwise. If you are asked for a string, don't use articles, neither abbreviations (e.g. for cities), and write the digits in plain text unless specified otherwise. If you are asked for a comma separated list, apply the above rules depending of whether the element to be put in the list is a number or a string.
584
-
585
- Available tools:
586
- 1. **process_docs_urls_tool** - Read and parse files/URLs (PDF, DOCX, CSV, images, web pages, YouTube, audio files) and create a query engine.
587
- 2. **extract_url_tool** - Search and extract relevant URLs when no specific source is provided
588
- 3. **generate_code_tool** - Generate Python code for complex computations
589
- 4. **code_execution_tool** - Execute Python code safely
590
  """,
591
  llm=proj_llm,
592
  tools=self.available_tools,
 
262
  fn=search_and_extract_top_url,
263
  name="extract_url_tool",
264
  description=(
265
+ "Use this tool when you need to find a relevant URL to answer a question. It takes a search query as input and returns a single, relevant URL."
266
  )
267
  )
268
 
 
581
  name="GAIACoordinator",
582
  system_prompt="""
583
  You are a general AI assistant. I will ask you a question. Report your thoughts, and finish your answer with the following template: FINAL ANSWER: [YOUR FINAL ANSWER]. YOUR FINAL ANSWER should be a number OR as few words as possible OR a comma separated list of numbers and/or strings. If you are asked for a number, don't use comma to write your number neither use units such as $ or percent sign unless specified otherwise. If you are asked for a string, don't use articles, neither abbreviations (e.g. for cities), and write the digits in plain text unless specified otherwise. If you are asked for a comma separated list, apply the above rules depending of whether the element to be put in the list is a number or a string.
 
 
 
 
 
 
584
  """,
585
  llm=proj_llm,
586
  tools=self.available_tools,