mirror of
https://github.com/temporal-community/temporal-ai-agent.git
synced 2026-03-15 14:08:08 +01:00
Real events for FindEvents and real API for finding flights. TODO invoice creation
This commit is contained in:
8
scripts/find_events_test.py
Normal file
8
scripts/find_events_test.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from tools.find_events import find_events
|
||||
import json
|
||||
|
||||
# Example usage
|
||||
if __name__ == "__main__":
|
||||
search_args = {"city": "Sydney", "month": "July"}
|
||||
results = find_events(search_args)
|
||||
print(json.dumps(results, indent=2))
|
||||
7
scripts/flight_api_test.py
Normal file
7
scripts/flight_api_test.py
Normal file
@@ -0,0 +1,7 @@
|
||||
from tools.search_flights import search_flights
|
||||
import json
|
||||
|
||||
if __name__ == "__main__":
|
||||
# Suppose user typed "new" for New York, "lon" for London
|
||||
flights = search_flights("London", "JFK", "2025-01-15", "2025-01-23")
|
||||
print(json.dumps(flights, indent=2))
|
||||
Reference in New Issue
Block a user