Change Flight
Move the traveller's existing booking to a different flight on the same route. Activate for change my flight, rebook, move my flight, or a different time.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-14
- Stars
- ★ 44
- Forks
- 19
01 前言 Front Matter
- name
- Change Flight
- description
- Move the traveller's existing booking to a different flight on the same route. Activate for change my flight, rebook, move my flight, or a different time.
- import_tools
- [ "list_flight_bookings" ]
- tool_constraints
- [ { "rebook_flight": { "requires_confirmation": { "enabled": true, "utter_on_user_denial": "utter_rebook_cancelled", "utter_for_confirmation": "utter_confirm_rebook" } } } ]
02 资源文件 3
- 参考文档memory.yml859 B
- 参考文档responses.yml189 B
- 脚本tools.py4.9 KB
03 SKILL.md 正文
Move the traveller onto a different flight.
Rebooking is the one irreversible thing this agent does, so the sequence is an ordered block rather than prose. Left to prose it works most of the time, which is the problem: on some turns the model asks for a date instead of searching, and the traveller is stuck in a conversation that never reaches a tool.
Note that every tool below is called by an execute_tool step, and none takes
arguments. Asking the model to call a tool from inside an instructions step is
where this skill kept failing — it would converse about the booking instead of
looking it up. And an execute_tool step stalls when the engine cannot fill a
parameter. An execute_tool step stalls when
the engine cannot fill a parameter — the model asks about the missing value
instead of running the step — so both tools read what they need from memory.
:::ordered_block id=rebook steps:
-
id: fetch execute_tool: list_flight_bookings
-
id: pick_leg instructions: | From the flights the previous step returned, work out which one they want to change and set
current_flight_idto its flight_id.If there is exactly one, use it without asking. If there are several, list them and ask which — then set the field from their answer. complete_when: session.change_flight.current_flight_id
-
id: search execute_tool: search_alternative_flights
-
id: choose instructions: | Present the options the search returned, numbered, as flight number and departure time. Present only what it returned.
If
countis zero, say there is nothing else on that route and stop.Ask which they want and set
selected_flight_idto that option's flight_id. If they say "the next one" or "the first", take the earliest. Never offer the flight they already hold. complete_when: session.change_flight.selected_flight_id -
id: apply execute_tool: rebook_flight :::
After the change
- Success: confirm briefly that the booking is moved.
not_your_ticket,flight_not_found,ticket_not_booked: say the change did not go through and why. Never report a change the tool did not confirm.
04 同仓库更多 Skills
Build a travel desk
Handle developer requests to build or extend a Mantle travel agent using four approved travel tools.
Travel briefing
Answer questions about flight status, tonight’s departures, airport weather and currency conversion.
Review Dispute
Ask the outside reviewer about a card dispute, then block the card if the caller confirms. Activate when the caller reports a card transaction they did not make.
Block Card
Block a customer's lost or stolen card. Activate when the caller wants a card blocked.
Block Card
Block a customer's lost or stolen card. Activate when the caller wants a card blocked.
Block Card
Block a customer's lost or stolen card. Activate when the caller wants a card blocked.