File size: 451 Bytes
c52d511
39e9071
 
c52d511
39e9071
 
 
 
69dd942
413d2b0
39e9071
c52d511
39e9071
ff69472
39e9071
c52d511
39e9071
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# tools/final_answer.py
from smolagents import Tool
from typing import Optional

class FinalAnswerTool(Tool):
    """Tool for providing final answers to user queries."""
    
    name = "final_answer"
    
    def __call__(self, answer: str) -> str:
        """Process and return the final answer.
        Args:
            answer: The answer text to be returned
        Returns:
            str: The processed answer
        """
        return answer