Ventahana commited on
Commit
faca57e
·
verified ·
1 Parent(s): cbd73da

Update final_answer.py

Browse files
Files changed (1) hide show
  1. final_answer.py +9 -3
final_answer.py CHANGED
@@ -1,9 +1,15 @@
 
1
  from smolagents import Tool
2
 
3
  class FinalAnswerTool(Tool):
4
- name = "final_answer"
5
- description = "Call this with the final answer"
6
- inputs = {"answer": {"type": "string", "description": "The final answer"}}
 
 
 
 
 
7
  output_type = "string"
8
 
9
  def forward(self, answer: str):
 
1
+ # final_answer.py
2
  from smolagents import Tool
3
 
4
  class FinalAnswerTool(Tool):
5
+ name = "final_answer"
6
+ description = "Call this with the final answer to the user's question"
7
+ inputs = {
8
+ "answer": {
9
+ "type": "string",
10
+ "description": "The final answer to send back to the user"
11
+ }
12
+ }
13
  output_type = "string"
14
 
15
  def forward(self, answer: str):