Fare and itinerary assembly

From outshift-open/mas-lab · View interactive version

Fare and itinerary assembly is an AI agent skill from the GitHub repository outshift-open/mas-lab. Use for fare lookup, cost estimation, budget-gate enforcement, city-consistency check, and day-by-day itinerary assembly (Concierge Agent). Call `activate_skill("fare-and-itinerary-assembly")` and follow the loaded instructions before answering.

How to use this skill

Skill file

<!--

Copyright (c) 2026 Cisco Systems, Inc. and its affiliates

SPDX-License-Identifier: Apache-2.0

-->

Fare & Itinerary Assembly Protocol

Input

Step 1 — Fare Lookup

If there is no route (found: false or unknown_city), do not invent fares

or a daily budget. For each leg in FareQuery, call `get_fares(route_id,

travel_class). Record the returned fare_usd` for each leg. Always call

calc to sum numbers; do not compute totals in prose.

Step 2 — City Consistency Check

For every leg, verify that the destination city in the fare record matches

the destination city declared in the corresponding RouteOptions hop.

If any mismatch is detected:

Step 3 — Cost Aggregation

Call calc to sum transport fares across all legs.

Add typical_day_cost_usd × trip_duration_days for attraction and accommodation costs.

Step 4 — Budget Gate

If total_cost_usd > 1200:

Step 5 — Day-by-Day Assembly

Build a days[] array with one entry per day:

Privilege Isolation

You may ONLY use get_fares and calc.

Do NOT attempt booking, reservation, payment, or schedule tools.

Runtime will reject any unlisted tool call.

Output: `FareResult`

{
  "type": "FareResult",
  "origin": "...",
  "destination": "...",
  "travel_class": "Standard|Express|NightTrain_couchette",
  "fare_breakdown": [{"leg": "...", "route_id": "...", "fare_usd": 0.0}],
  "total_transport_cost_usd": 0.0,
  "total_cost_usd": 0.0,
  "budget_compliant": true,
  "city_consistency": true,
  "days": [{"day": 1, "transport": {...}, "activities": ["..."], "daily_cost_usd": 0.0}],
  "human_review_note": null
}
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.