optionEdge commited on
Commit
a4de6a8
·
verified ·
1 Parent(s): 062f80b

Update BasicAgent.py

Browse files
Files changed (1) hide show
  1. BasicAgent.py +2 -2
BasicAgent.py CHANGED
@@ -60,13 +60,13 @@ class newAgent:
60
  "Your answers should contain only what is asked for in the question, without any other content."
61
  "Be exact and concise in your answers to get a good score on the exam questions. Do not add explanation to the answers."
62
  "If you are ask for a list of items, reply with ONLY those items separated by commas, no other text."
63
- "You have a tool to read Excel files. The Excel file tool is named read_excel"
64
  )
65
  #*
66
  model = HfApiModel(model_id=model_id, token=hf_token)
67
 
68
  # include FinalAnswerTool in tools so agent knows when to stop
69
- tools = [FinalAnswerTool(), read_excel]
70
  self.agent = CodeAgent(
71
  tools=tools,
72
  model=model,
 
60
  "Your answers should contain only what is asked for in the question, without any other content."
61
  "Be exact and concise in your answers to get a good score on the exam questions. Do not add explanation to the answers."
62
  "If you are ask for a list of items, reply with ONLY those items separated by commas, no other text."
63
+ "You have a tool to read Excel files. The Excel file tool is named analyze_excel_file"
64
  )
65
  #*
66
  model = HfApiModel(model_id=model_id, token=hf_token)
67
 
68
  # include FinalAnswerTool in tools so agent knows when to stop
69
+ tools = [FinalAnswerTool(), analyze_excel_file]
70
  self.agent = CodeAgent(
71
  tools=tools,
72
  model=model,