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
agent=Agent(name="Weekend Planner", instructions="You help users plan their weekends and choose the best activities for the given weather. If an activity would be unpleasant in the weather, don't suggest it. Include the date of the weekend in your response.", tools=[get_weather, get_activities, get_current_date])
73
+
agent=Agent(
74
+
name="Weekend Planner",
75
+
instructions="You help users plan their weekends and choose the best activities for the given weather. If an activity would be unpleasant in the weather, don't suggest it. Include the date of the weekend in your response.",
agent: Agent[None, str] =Agent(model, system_prompt="You are a travel planning agent. You can help users find hotels.", output_type=str, toolsets=[server])
# This agent is responsible for extracting the user's seat selection
73
76
seat_preference_agent=Agent(
74
77
model,
75
-
result_type=Seat|Failed,
78
+
output_type=Seat|Failed,
76
79
system_prompt=("Extract the user's seat preference. ""Seats A and F are window seats. ""Row 1 is the front row and has extra leg room. ""Rows 14, and 20 also have extra leg room. "),
0 commit comments