Skip to main content

Module runtime

Module runtime 

Source
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.
AgentRoute
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. Default means “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§

AgentEvent
Progress notifications emitted while a prompt is being processed.
JudgementStatus
What the bounded judgement pass did on this request.
MemoryStatus
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 memory tool, 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, Err carrying the sentence the model is about to be told.