Spaces:
Sleeping
Sleeping
Initial commit with full functionality extend app req tools
Browse files- tools/final_answer.py +4 -4
tools/final_answer.py
CHANGED
|
@@ -8,16 +8,16 @@ class FinalAnswerTool(Tool):
|
|
| 8 |
name = "final_answer"
|
| 9 |
description = "Tool for providing the final answer to the agent's task"
|
| 10 |
|
| 11 |
-
# Define inputs
|
| 12 |
inputs: Dict[str, Any] = {
|
| 13 |
"answer": {
|
| 14 |
-
"type": "
|
| 15 |
"description": "The final answer to be returned"
|
| 16 |
}
|
| 17 |
}
|
| 18 |
|
| 19 |
-
#
|
| 20 |
-
output_type = "
|
| 21 |
|
| 22 |
def __init__(self, description: Optional[str] = None):
|
| 23 |
super().__init__()
|
|
|
|
| 8 |
name = "final_answer"
|
| 9 |
description = "Tool for providing the final answer to the agent's task"
|
| 10 |
|
| 11 |
+
# Define inputs with the correct type string
|
| 12 |
inputs: Dict[str, Any] = {
|
| 13 |
"answer": {
|
| 14 |
+
"type": "string", # Changed from 'str' to 'string'
|
| 15 |
"description": "The final answer to be returned"
|
| 16 |
}
|
| 17 |
}
|
| 18 |
|
| 19 |
+
# Specify output type with correct string
|
| 20 |
+
output_type = "string"
|
| 21 |
|
| 22 |
def __init__(self, description: Optional[str] = None):
|
| 23 |
super().__init__()
|