Skip to main content

Module transcript_md

Module transcript_md 

Source
Expand description

The conversation as one readable file (history/transcript.md): what an agent that cannot resume the old thread reads to know what was said (spec section 7.3). It reads the compact form line by line and keeps the words of the person and of the agent. A tool call is one short line naming the tool; a tool’s output is a note of how long it was, because the output is in the conversation files and a fresh thread needs the decisions, not the logs.

Functions§

render
Renders compact (newline-delimited JSON, one message per line) under title. A line that is not JSON, or has a shape this does not know, is skipped.