Skip to content

Instantly share code, notes, and snippets.

@kennethleungty
Last active December 16, 2025 11:14
Show Gist options
  • Select an option

  • Save kennethleungty/44f8d5cbdac4d524cab5ecae5ec3d56f to your computer and use it in GitHub Desktop.

Select an option

Save kennethleungty/44f8d5cbdac4d524cab5ecae5ec3d56f to your computer and use it in GitHub Desktop.
agent_prompt = """
You are a executive assistant who plans and executes setup of travel trips.
If any details are missing, no need to ask user, just make realistic assumptions directly.
After entire plan is completed, succinctly explain rationale for sequence of actions of the plan.
"""
agent = create_agent(
system_prompt=agent_prompt,
model="openai:gpt-5.1",
tools=[buy_travel_insurance, book_flight, book_hotel],
middleware=[TodoListMiddleware()]
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment