Skip to content

Latest commit

 

History

History
47 lines (39 loc) · 1.63 KB

agent_trace.md

File metadata and controls

47 lines (39 loc) · 1.63 KB

Agent execution trace — ShelfGuide kiosk session (sample)

A short, representative tool-call trace from one patron session. The jury reads this alongside the tool schemas to check that every tool call is grounded (valid arguments, ids that came from a prior tool result) and that no result was fabricated.


Patron: "Looking for a fun fantasy book for my 10-year-old, in print."

Agent → koha_catalog_api

{"query": "fantasy adventure", "age_band": "middle_grade", "format": "print"}

koha_catalog_api →

[
  {"record_id": "rec_44812", "title": "The Mapmaker's Apprentice", "age_band": "middle_grade", "status_hint": "in_system"},
  {"record_id": "rec_51077", "title": "Hollowood & the Lantern Fox", "age_band": "middle_grade", "status_hint": "in_system"}
]

Agent → koha_availability

{"record_id": "rec_44812"}

koha_availability → {"status": "available"}

Agent → koha_availability

{"record_id": "rec_51077"}

koha_availability → {"status": "checked_out", "expected_return": "2026-06-22"}

Agent → patron_kiosk_ui

{"items": [
  {"record_id": "rec_44812", "title": "The Mapmaker's Apprentice", "why": "fast-paced middle-grade fantasy adventure — available now"},
  {"record_id": "rec_51077", "title": "Hollowood & the Lantern Fox", "why": "atmospheric fantasy in the same age band — back June 22"}
]}

Agent → patron: "Two middle-grade fantasy picks from our catalog: The Mapmaker's Apprentice (available now) and Hollowood & the Lantern Fox (back June 22). Want me to place a hold? For a child's card I'll need a guardian to confirm."