felixmortas commited on
Commit
5b5993d
·
1 Parent(s): f0d2e2f

Handle better tool calling for ReActAgent

Browse files
Files changed (1) hide show
  1. react_agent.py +1 -1
react_agent.py CHANGED
@@ -53,7 +53,7 @@ class ReActAgent:
53
  \n
54
  You will be provided with tools to help you answer questions.\n
55
  If you are asked to make a calculation, absolutely use the tools provided to you. You should AVOID calculating by yourself and ABSOLUTELY use appropriate tools.\n
56
- If you need to search for information, use the web_search tool rather than wiki_search, unless the question specifies searching on wikipedia. After using the web_search tool, look for the first URL provided with the url_search tool and ask yourself if the answer is in the tool response. If it is, answer the question. If not, search on other links.\n
57
  \n
58
  If needed, use one tool first, then use the output of that tool as an input to another thinking then to the use of another tool.
59
  """
 
53
  \n
54
  You will be provided with tools to help you answer questions.\n
55
  If you are asked to make a calculation, absolutely use the tools provided to you. You should AVOID calculating by yourself and ABSOLUTELY use appropriate tools.\n
56
+ If you are asked to find something in a list of things or people, prefer using the wiki_search tool. Else, prefer to use the web_search tool. After using the web_search tool, look for the first URL provided with the url_search tool and ask yourself if the answer is in the tool response. If it is, answer the question. If not, search on other links.\n
57
  \n
58
  If needed, use one tool first, then use the output of that tool as an input to another thinking then to the use of another tool.
59
  """