Skip to main content
API reference sections

Schema

EconomicsSummary

The run's economics as the header carries them (D39): a projection of the replayed facts and the timeline, recomputable at any time.

Type object

Shape

FieldTypeDescription
orchestrator_turnsrequiredinteger (uint32, >= 0)

Turns the timeline recorded, by originator.

human_turnsrequiredinteger (uint32, >= 0)
turns_with_usagerequiredinteger (uint32, >= 0)

Turns with a usage fact, after replay.

inputrequiredTokenTotal

A token total that knows what it is missing. known sums every turn that reported; unavailable_turns counts every turn that did not, so a surface renders "at least 1,200 (2 turns unreported)" rather than "1,200" - or "unavailable" when nothing reported at all.

outputrequiredTokenTotal

A token total that knows what it is missing. known sums every turn that reported; unavailable_turns counts every turn that did not, so a surface renders "at least 1,200 (2 turns unreported)" rather than "1,200" - or "unavailable" when nothing reported at all.

cached_inputrequiredTokenTotal

A token total that knows what it is missing. known sums every turn that reported; unavailable_turns counts every turn that did not, so a surface renders "at least 1,200 (2 turns unreported)" rather than "1,200" - or "unavailable" when nothing reported at all.

tool_callsrequiredinteger (uint32, >= 0)
interventionsrequiredinteger (uint32, >= 0)

§17.2: control handovers plus human-originated turns.

elapsed_msinteger (uint64, >= 0) or null

§17.2: wall-clock excluding time spent Interrupted or under human control. None until the run has started.

modelsarray of ModelRef

Every model any turn used, as references.

Default []

completerequiredboolean

Whether every usage fact was complete. A single incomplete fact makes the summary incomplete, because a price over it would be a guess.

Example
{
  "orchestrator_turns": 0,
  "human_turns": 0,
  "turns_with_usage": 0,
  "input": {
    "known": 0,
    "unavailable_turns": 0
  },
  "output": {
    "known": 0,
    "unavailable_turns": 0
  },
  "cached_input": {
    "known": 0,
    "unavailable_turns": 0
  },
  "tool_calls": 0,
  "interventions": 0,
  "elapsed_ms": 0,
  "models": [],
  "complete": false
}

The contract has no example values, so example bodies are generated from each schema: every field is shown with a placeholder of its type.

Generated from contract version 1. Last updated .

Privacy choices

Choose which optional tools Koru may use on this site. Your choice is saved in a cookie in this browser for 12 months. Privacy policy

Privacy choices

Keep you signed in, protect forms and remember your language and this choice.

Always on

PostHog and Google Analytics 4 measure page views and actions such as downloads, using cookies or local storage.

PostHog records how pages are used, with form inputs masked and private pages excluded. Needs Analytics.

Ahrefs Web Analytics measures visits and where they come from, and Google Ads measures whether our ads led to a visit or download.