Files
temporal-ai-agent/tools/__init__.py
Steve Androulakis 33af355363 tools functions
2025-01-01 15:30:39 -08:00

14 lines
368 B
Python

from .search_flights import search_flights
def get_handler(tool_name: str):
"""
Return a function reference for the given tool.
You can add more tools here, e.g. "BookHotel", etc.
"""
if tool_name == "SearchFlights":
return search_flights
# Or raise if not recognized
raise ValueError(f"No handler found for tool '{tool_name}'")