-
Notifications
You must be signed in to change notification settings - Fork 1
added tools for searching/booking/add-ons for flights #55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Added the following domain modeling: Cabins
Fares (Bundles)
Services
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work! Started a Slack thread to talk about when we can merge this (README will need to be redone).
On the code side, a couple notes for when we get around to iterating on this:
- Took a quick glance at the code, it looks pretty good, it can be a useful starting point for someone on eng or ML team who can clean up the code before we merge it.
- The date should be dynamic instructions (Pydantic AI supports this) rather than a tool call, IMO.
- We might want to make the agent stateless across reboots of the backend (no on-disk JSON for reservations, instead switching to maintaining this in-memory across chat threads).
Before someone iterates on this code, I can take a closer look and give more feedback.
This makes the agent stateless across backend runs.
d598f52 to
9ef5270
Compare
a02d759 to
334e1f2
Compare
f0c753d to
ddb7142
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The domain modeling isn't perfect, but given that our demos are very "shallow" (1-2 messages deep), this seems okay for now. Code quality for some of the vibe coded stuff isn't amazing, but good enough for now. If we think it's worth the effort, someone can improve this later.

Tools
Tool: Get Current Date

Tool: Search Flights from a flights.json (generated via generate_flights.py script)

Tool: Book Flights, save to reservations.json

Tool: Add-Ons to Existing Reservation

Frontier Data Modeling
Models the different services available to each of the Fares (aka Bundles)
Frontier Fares (Bundles)
Services