mirror of
https://github.com/temporal-community/temporal-ai-agent.git
synced 2026-03-15 14:08:08 +01:00
21 lines
624 B
Python
21 lines
624 B
Python
from .search_fixtures import search_fixtures
|
|
from .search_flights import search_flights
|
|
from .search_trains import search_trains
|
|
from .search_trains import book_train
|
|
from .create_invoice import create_invoice
|
|
|
|
|
|
def get_handler(tool_name: str):
|
|
if tool_name == "SearchFixtures":
|
|
return search_fixtures
|
|
if tool_name == "SearchFlights":
|
|
return search_flights
|
|
if tool_name == "SearchTrains":
|
|
return search_trains
|
|
if tool_name == "BookTrain":
|
|
return book_train
|
|
if tool_name == "CreateInvoice":
|
|
return create_invoice
|
|
|
|
raise ValueError(f"Unknown tool: {tool_name}")
|