Update tools/final_answer.py
Browse files- tools/final_answer.py +3 -3
tools/final_answer.py
CHANGED
|
@@ -6,9 +6,9 @@ class FinalAnswerTool(Tool):
|
|
| 6 |
description = "Provides a final answer to the given problem."
|
| 7 |
inputs = {'answer': {'type': 'any', 'description': 'The final answer to the problem'}}
|
| 8 |
output_type = "any"
|
| 9 |
-
|
| 10 |
def forward(self, answer: Any) -> Any:
|
| 11 |
-
return
|
| 12 |
-
|
| 13 |
def __init__(self, *args, **kwargs):
|
| 14 |
self.is_initialized = False
|
|
|
|
| 6 |
description = "Provides a final answer to the given problem."
|
| 7 |
inputs = {'answer': {'type': 'any', 'description': 'The final answer to the problem'}}
|
| 8 |
output_type = "any"
|
| 9 |
+
|
| 10 |
def forward(self, answer: Any) -> Any:
|
| 11 |
+
return answer
|
| 12 |
+
|
| 13 |
def __init__(self, *args, **kwargs):
|
| 14 |
self.is_initialized = False
|