The following illustrative Report shows a Run of four Steps in which
the Context accumulates across three Model Invocations separated by one
Tool Call. Note that "cache_read_tokens" and "cache_write_tokens" are in
every case disjoint subsets of "input_tokens", that each Model Invocation
is one Step bearing one "invocation_id" however many content blocks its
response contained, and that "totals" is the member-by-member sum of the
Steps that carry a Usage object, "cache_writes" being aggregated per
lifetime.¶
{
"version": "1",
"run_id": "0193f4d1-4a02-7c31-b0d4-1e7f9a3c2255",
"start": "2026-03-04T09:20:00.000Z",
"end": "2026-03-04T09:21:16.415Z",
"status": "completed",
"termination_reason": "goal_reached",
"agent": { "name": "example-agent", "version": "0.4.1" },
"models": [
{
"id": "example-model-large",
"provider": "example-provider",
"context_window": 200000
}
],
"labels": { "environment": "staging", "workload": "batch" },
"step_count": 4,
"steps": [
{
"index": 0,
"kind": "model_invocation",
"start": "2026-03-04T09:20:00.010Z",
"end": "2026-03-04T09:20:11.284Z",
"model": "example-model-large",
"invocation_id": "inv-7f21a0",
"usage": {
"input_tokens": 8400,
"output_tokens": 310,
"cache_read_tokens": 0,
"cache_write_tokens": 8300,
"cache_writes": [
{ "lifetime": "PT1H", "tokens": 8300 }
]
}
},
{
"index": 1,
"kind": "tool_call",
"start": "2026-03-04T09:20:11.300Z",
"end": "2026-03-04T09:20:13.771Z",
"tool": {
"name": "corpus_search",
"outcome": "ok",
"bytes_in": 214,
"bytes_out": 18944
}
},
{
"index": 2,
"kind": "model_invocation",
"start": "2026-03-04T09:20:13.790Z",
"end": "2026-03-04T09:20:41.002Z",
"model": "example-model-large",
"invocation_id": "inv-7f21a1",
"usage": {
"input_tokens": 13950,
"output_tokens": 640,
"cache_read_tokens": 8300,
"cache_write_tokens": 5600,
"cache_writes": [
{ "lifetime": "PT5M", "tokens": 4200 },
{ "lifetime": "PT1H", "tokens": 1400 }
]
}
},
{
"index": 3,
"kind": "model_invocation",
"start": "2026-03-04T09:20:41.020Z",
"end": "2026-03-04T09:21:16.400Z",
"model": "example-model-large",
"invocation_id": "inv-7f21a2",
"usage": {
"input_tokens": 15300,
"output_tokens": 905,
"reasoning_tokens": 520,
"cache_read_tokens": 13900
}
}
],
"totals": {
"input_tokens": 37650,
"output_tokens": 1855,
"cache_read_tokens": 22200,
"cache_write_tokens": 13900,
"cache_writes": [
{ "lifetime": "PT5M", "tokens": 4200 },
{ "lifetime": "PT1H", "tokens": 9700 }
],
"reasoning_tokens": 520
},
"cost": {
"currency": "USD",
"amount": "0.0000",
"basis": "estimated",
"pricing_ref": "https://example.com/pricing/2026-03"
},
"derived": {
"input_amplification": 2.46078,
"cache_hit_ratio": 0.589641,
"cache_write_ratio": 0.369190,
"output_share": 0.0469561,
"advancing_step_ratio": 1.0
}
}
¶
The "cost" object above carries a zero "amount" with a basis of
"estimated" solely to exhibit the object's shape; it is not a price.¶