Skip to main content

Module agent

Module agent 

Source

Structs§

Agent
AgentConfig
SideAnswer
The reply to a /btw side question: the answer text and the turn’s token usage (None when the provider reported none). Harness data — no styling.
SideHandle
A read-only view of an Agent the actor can mine *while a run holds the agent’s &mut. It carries the same clones the run uses (stream_fn/ system/llm) plus the context snapshot run_loop republishes each turn, so a mid-run GetHistory/SideAsk is answered from the latest completed turns instead of waiting for the whole run to finish.

Constants§

PLAN_SECTION
The system-prompt section appended while plan mode is on (D2). The kernel owns it so a socket client never has to compose the server’s prompt.