Expand description
The agent runtime: model <-> tool loop with session persistence.
Structs§
- Agent
- The configured system prompt followed by each plugin’s prompt fragments, separated by a blank line. Fragments are additive only: a plugin cannot rewrite or drop the prompt.
- Agent
Route - One route as the agent holds it: the name it answers to, the settings it was built from and the provider that talks to it. Routes are built once, when the agent is.
- RunOptions
- What one run may differ in from the agent and the config.
Defaultmeans “nothing differs” — the agent’s own budget and gate. - RunResult
- Typed
- What a typed run produced: the parsed value, and the reply it came from. The reply is kept because “what did it actually say” is the first question when a parse surprises you, and re-running the prompt to find out costs a request.
Enums§
- Agent
Event - Progress notifications emitted while a prompt is being processed.
- Judgement
Status - What the bounded judgement pass did on this request.
- Memory
Status - How a run used the session’s long-term memory sidecar when it had to trim.
Constants§
- JUDGEMENT_
DIGEST_ CHARS - How much of the dropped turns the judgement pass reads: a digest of about this many characters, never the transcript.
Functions§
- registry_
for - The tool registry a configuration produces: built-ins with their policies, the tools of
any enabled plugin, the
memorytool, the two skill tools,delegate(policy[tools] delegate) and, when a scripts directory can be worked out,script(policy[tools] script), minus everything named in[tools] disabled.
Type Aliases§
- Validator
- What a typed run checks a reply with:
Ok(())when it is the shape the caller wants,Errcarrying the sentence the model is about to be told.