Documentation
¶
Overview ¶
Package history provides the read-only `history` tool: the agent searches the original messages of its own session — including those already summarised by a compaction, cut by a fresh start or elided by a trim — reads one by ID and looks at its neighbours.
It reads; it never changes the model's context, the compaction or the session. What it returns is bounded so that a 50 MB transcript cannot be dumped into one tool result.
Index ¶
Constants ¶
const ( MaxOutputBytes = 16 << 10 MaxQueryBytes = 1 << 10 )
Output and argument bounds.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Visitor ¶
type Visitor func(fn func(*core.AgentMessage)) error
Visitor calls fn with every message of the session transcript in chronological order (the current branch, markers included). fn must not retain the pointer.