Spaces:
Sleeping
Sleeping
Initial commit with full functionality extend app req tools
Browse files- tools/__init__.py +2 -0
- tools/final_answer.py +13 -0
tools/__init__.py
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# tools/__init__.py
|
| 2 |
+
# This file is intentionally empty to make the directory a Python package
|
tools/final_answer.py
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# tools/final_answer.py
|
| 2 |
+
from typing import Any
|
| 3 |
+
|
| 4 |
+
class FinalAnswerTool:
|
| 5 |
+
def __call__(self, answer: str) -> str:
|
| 6 |
+
"""Tool to provide a final answer
|
| 7 |
+
Args:
|
| 8 |
+
answer: The final answer to return
|
| 9 |
+
"""
|
| 10 |
+
return answer
|
| 11 |
+
|
| 12 |
+
def __str__(self) -> str:
|
| 13 |
+
return "final_answer"
|