Files
temporal-ai-agent/tools/__init__.py
2025-01-01 16:57:08 -08:00

15 lines
405 B
Python

from .find_events import find_events
from .search_flights import search_flights
from .create_invoice import create_invoice
def get_handler(tool_name: str):
if tool_name == "FindEvents":
return find_events
if tool_name == "SearchFlights":
return search_flights
if tool_name == "CreateInvoice":
return create_invoice
raise ValueError(f"Unknown tool: {tool_name}")