Skip to main content

Module trace

Module trace 

Source
Expand description

A trace of whole turns, for a person debugging one: the message that arrived, each step of its understanding, what was understood and decided, every model call with its prompts and answer, and the reply with its replay record.

Opt-in and local. A trace holds the users’ words and every prompt, so it belongs on a developer’s disk or in a tool the deployment chose, never on by default. Set a TurnTrace with OrchestratorBuilder::trace and wrap each provider in a TracedProvider; JsonlTrace is both, one JSON object per line, ready for jq or an importer.

Structs§

JsonlTrace
Appends every event and model call to one JSON Lines file, flushed line by line so a crash keeps what came before it.

Enums§

TraceEvent
One thing a turn did, as a trace receives it.

Traits§

TurnTrace
Where a runtime reports its turns. It must not block for long: it runs on the turn.