Spaces:
Runtime error
Runtime error
from smolagents import Tool | |
from typing import Any, Optional | |
class SimpleTool(Tool): | |
name = "list_occasions" | |
description = "Lists the available occasions." | |
inputs = {} | |
output_type = "string" | |
def forward(self) -> str: | |
""" | |
Lists the available occasions. | |
""" | |
return "casual, formal, superhero, custom" |