AlfredAgentIndianFlavour / tools /suggest_menu.py
VPCSinfo's picture
Upload agent
118f4b5 verified
raw
history blame contribute delete
951 Bytes
from smolagents import Tool
from typing import Any, Optional
class SimpleTool(Tool):
name = "suggest_menu"
description = "Suggests a menu based on the occasion."
inputs = {"occasion":{"type":"string","description":"The type of occasion for the party."}}
output_type = "string"
def forward(self, occasion: str) -> str:
"""
Suggests a menu based on the occasion.
Args:
occasion: The type of occasion for the party.
"""
if occasion == "casual":
return "Pizza, snacks, and drinks in Indian Vegetarian Food Style."
elif occasion == "formal":
return "3-course dinner with wine and dessert in Indian Vegetarian Food Style."
elif occasion == "superhero":
return "Buffet with high-energy and healthy food in Indian Vegetarian Food Style.."
else:
return "Custom menu for the butler in Indian Vegetarian Food Style."