Skip to main content
Since you added a key in Part 2, every run of order-support has been traced: what it was asked, what it called, which skills it opened, and which versions it ran on. In this part you read those traces and compare the same question before and after a change. The traces read much the same on every tab from Part 2, LangChain included.

1. Make a run to look at

Run main.py, with its kettle refund question:
Open the agent’s Traces tab at app.decimal.ai/agents/order-support. The run is at the top; it takes a few seconds to arrive.

2. Read the trace

Open the run. Its page shows:
  • The question and the reply.
  • The model calls and tool calls, in order, under Execution: the lookup_order call with ORD-1001 and what it returned, and the load_skill call that opened acme-returns-policy. On the OpenAI SDK tab the tool calls aren’t rows of their own: select the last model call and open LLM Call, where each Tool message is what a tool returned.
  • Prompt: where it came from (decimalai, since the agent has a saved prompt), and the version it ran on.
  • Recorded skills, three rows:
    • Offered: the skills on the menu the model saw. Nine, after Part 3.
    • Delivered: the skills whose full text the run received.
    • Loaded: the skills the model asked for with load_skill.
That’s how you know why it said what it said: the answer came from a rule in a skill it chose to open. The Evaluation section below the reply counts basic checks on how the run executed, such as its tokens and time. They don’t judge the answer, and a good run can miss some of them. Judging the answer is Part 5.

3. See a run that opened nothing

Set question to "Hi, what can you do?" and run main.py again. This trace shows nine skills Offered and nothing Loaded. That’s normal: the model opens a skill only when the question calls for one. Set question back to the kettle refund question.

4. Compare before and after

In Part 3 you changed the fee, and each trace recorded which version it ran on. So you can line up the same question from before and after:
  • The reply. Open a kettle run from before your edit and one from after: $41.65 and $44.10.
  • The skill. On each run’s trace page, Recorded skills lists acme-returns-policy with its Skill version: the registry’s before you made your copy, your copy’s after.
  • The prompt. On the Traces tab, the Prompt column shows each run’s prompt version, and its filter shows the runs on one version. On the Prompt & skills page, each saved version links to Traces on this version.
One pair of runs shows what changed, not how often. Counting that is Part 5. The agent’s Versions page lists every prompt and skill change as a numbered setup, including the Support pack as one version. Which prompt a run used has the details.

Next: 5. Measure it

Run eight cases through order-support with and without a skill, and compare the counts.