Health / tools /final_answer.py
Chinez-dev's picture
Upload 13 files
138ebb9 verified
raw
history blame contribute delete
494 Bytes
from typing import Any, Optional
from smolagents.tools import Tool
from smolagents import tool
class FinalAnswerTool:
def __init__(self):
pass
@tool
def final_answer(self, answer: str) -> str:
"""
A tool to provide the final answer or conclusion.
Args:
answer: The final answer or conclusion to be provided.
Returns:
The formatted final answer.
"""
return f"Final Answer: {answer}"