Spaces:
Sleeping
Sleeping
Update BasicAgent.py
Browse files- 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
|
| 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(),
|
| 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,
|