Spaces:
Sleeping
Sleeping
Initial commit with full functionality extend app req tools
Browse files10 unmodified lines111213141516175 unmodified lines232425262728293031323310 unmodified lines# Define inputs with the correct type stringinputs: Dict[str, Any] = {"answer": {"type": "string", # Changed from 'str' to 'string'"description": "The final answer to be returned"}}5 unmodified linessuper().__init__()self.description = description or self.descriptiondef __call__(self, answer: str) -> str:"""Process and return the final answer.Args:answer: The answer text to be returnedReturns:str: The processed answer"""return answer10 unmodified lines111213141516175 unmodified lines232425262728293031323334353637383910 unmodified lines# Define inputs with the correct type stringinputs: Dict[str, Any] = {"answer": {"type": "string","description": "The final answer to be returned"}}5 unmodified linessuper().__init__()self.description = description or self.descriptiondef forward(self, answer: str) -> str:"""Process and return the final answer.Args:answer: The answer text to be returnedReturns:str: The processed answer"""return answerdef __call__(self, answer: str) -> str:"""Alias for forward method to maintain compatibility"""return self.forward(answer)
tools/final_answer.py+9-3