prige commited on
Commit
a78f812
·
verified ·
1 Parent(s): 43ff02f

Upload tool

Browse files
Files changed (1) hide show
  1. tool.py +3 -3
tool.py CHANGED
@@ -3,9 +3,9 @@ from smolagents.tools import Tool
3
 
4
  class FinalAnswerTool(Tool):
5
  name = "final_answer"
6
- description = "This is a tool sends the final answer to the given problem, towards the user. This tool does not format the answer, it just sends it as is."
7
- inputs = {'answer': {'type': 'any', 'description': 'The well formated, short, and conversational final answer to the user`s problem or request.'}}
8
- output_type = "any"
9
 
10
  def forward(self, answer: str) -> str:
11
  return answer
 
3
 
4
  class FinalAnswerTool(Tool):
5
  name = "final_answer"
6
+ description = "This tool sends the final answer to the user. This tool does not format the answer. Format the answer before using this tool."
7
+ inputs = {'answer': {'type': 'any', 'description': 'A well formatted and short final answer to the user`s problem.'}}
8
+ output_type = "string"
9
 
10
  def forward(self, answer: str) -> str:
11
  return answer