This project demonstrates a Python CLI that leverages the LFM2.5-1.2B-Thinking model to help users find and book plane tickets through multi-step reasoning and tool calling.
The assistant accepts natural language requests through the command-line interface:Simple flight availability search:
Copy
Ask AI
uv run flight_search.py --query "What flights are available from New York to Paris on 2026-01-19?"
Direct booking request:
Copy
Ask AI
uv run flight_search.py --query "Book flight AA495 for 2026-02-04"
Multi-step workflow (search then book):
Copy
Ask AI
uv run flight_search.py --query "Book the cheapest flight from Barcelona to Belgrade on 2026-01-31"
Complex reasoning task:
Copy
Ask AI
uv run flight_search.py --query "Book the cheapest flight from Barcelona to a US city on the East Coast that is not NYC on 2026-02-14"
The implementation uses mocked flight data for demonstration purposes, though it supports integration with real APIs like Amadeus, Skyscanner, or Kiwi for production deployment.