You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description="Agent to book flights based on user queries.",
61
61
# instruction= "You are a helpful agent who can assist users in booking flights. If you are asked about flight bookings, provide the relevant information.",
62
62
instruction="You are a helpful agent who can assist users in booking flights. You only handle flight booking. Just handle that part from what the user says, ignore other parts of the requests.",
63
63
generate_content_config=contentConfig,
64
-
tools=[adk_book_flight_5] # Define flight booking tools here
64
+
tools=[adk_book_flight] # Define flight booking tools here
65
65
)
66
66
67
67
hotel_booking_agent=LlmAgent(
68
-
name="adk_hotel_booking_agent_5",
68
+
name="adk_hotel_booking_agent",
69
69
model="gemini-2.0-flash",
70
70
description="Agent to book hotels based on user queries.",
71
71
# instruction= "You are a helpful agent who can assist users in booking hotels. If you are asked about hotel bookings, provide the relevant information. If not, then just stay silent.",
72
72
instruction="You are a helpful agent who can assist users in booking hotels. When you receive a request containing both hotel and non-hotel bookings, focus on processing the hotel booking portion while gracefully ignoring non-hotel parts. Always try to identify and process any hotel booking requests present in the user's message.",
73
73
generate_content_config=contentConfig,
74
-
tools=[adk_book_hotel_5] # Define hotel booking tools here
74
+
tools=[adk_book_hotel] # Define hotel booking tools here
75
75
)
76
76
77
77
trip_summary_agent=LlmAgent(
78
-
name="adk_trip_summary_agent_5",
78
+
name="adk_trip_summary_agent",
79
79
model="gemini-2.0-flash",
80
80
description="Summarize the travel details from hotel bookings and flight bookings agents.",
81
81
instruction="Summarize the travel details from hotel bookings and flight bookings agents. Be concise in response and provide a single sentence summary.",
returnf"Successfully booked a flight from {from_airport} to {to_airport}."
@@ -54,24 +54,24 @@ async def setup_agents():
54
54
model="openai:gpt-4o",
55
55
tools=[book_flight],
56
56
prompt="You are a flight booking assistant",
57
-
name="okahu-demo-lg-agent-air_travel_assistant"
57
+
name="lg-agent-air_travel_assistant"
58
58
)
59
59
60
60
hotel_assistant=create_react_agent(
61
61
model="openai:gpt-4o",
62
62
tools=[book_hotel],
63
63
prompt="You are a hotel booking assistant",
64
-
name="okahu-demo-lg-agent-lodging_assistant"
64
+
name="lg-agent-lodging_assistant"
65
65
)
66
66
67
67
weather_agent=create_react_agent(
68
68
model="openai:gpt-4o",
69
69
tools=weather_tools,
70
70
prompt="You are a weather information assistant. Please use the tool available to you for checking weather. Extract city name from the user query and pass it to the weather tool.",
0 commit comments