from smolagents import Tool from typing import Any, Optional class SimpleTool(Tool): name = "say_hello_to" description = "This tool returns the hello message to a user in moroccan darija." inputs = {"name":{"type":"string","description":"user name."}} output_type = "string" def forward(self, name:str)-> str: """ This tool returns the hello message to a user in moroccan darija. Args: name: user name. """ return f"slm {name}"