Skip to main content

Module agent

Module agent 

Source
Expand description

The Guatiao contract for launching one agent Run. The Run a handler returns, and the events it reports, are coqui_acp_provider’s agent run kind, shared with every host of agent providers.

Structs§

AgentResume
How AI6 resumes a Run.
AgentStart
The first instruction for one agent operation in a Mission.
AssistantMode
What an assistant Run may use besides answering: its parts, so a handler builds the harness’s settings from them rather than from one fixed set.
AssistantNetwork
The assistant’s network policy. denied, the default, reaches nothing but its MCP servers; so does limited with no hosts.
ChoiceInfo
One value a person may pick for an effort or a mode.
ConfigInfo
One option a session starts with that is neither the model, the effort nor the mode, with the values it takes.
McpServerRef
An MCP server an assistant Run connects to, found in its environment: the URL in <env_prefix>_URL and the bearer token in <env_prefix>_TOKEN, so the token never appears in a command line.
ModelInfo
One model a harness says an account may use.
OverlaySkill
A skill of an overlay issued to a Run.
RunHook
One overlay hook that is on for a Run: what runs it and what it is told, resolved by the Station for the host the harness runs on (spec/v0/hooks.md).
RunOverlays
What a Run’s overlays hand its harness. Empty for a Run with none.
RunRecordFile
Where a harness keeps its own record of one Run, on the host it ran on, and its format.
RunRecordQuery
The Run whose harness record AgentHandler::run_record is asked for: its provider-issued ID, and the working directory and environment its harness was started with.
SessionInfo
One session a harness holds, which a Run may resume.
SessionList
The sessions a harness lists, and whether they are all of them.
StartLedger
A Mission’s or charge’s Run ledger carried on AgentStart::ledger so a handler can start a Run from it: the context a Run is given, already fitted to the window it was sized for, as a coqui-acp-history [Document].
StartOptions
What a handler can say about what a Run can start with (the model, the effort, the mode, the other options and the sessions to resume), with no model turn.
TokenCapRefusal
The first token-cap refusal in a harness error, in the order its fields and items were read.

Enums§

Answer
What a handler says of one thing a Run can start with: the values, why it could not tell, or that it has no such thing.

Constants§

READ_CLEARANCE
The clearance of a Mission’s Run held to reading and searching until its plan passes a review: no tool that changes anything but AI6’s own submit_plan. Only AI6 sets it; an Agent cannot be configured at it.

Traits§

AgentHandler
Starts or resumes the configured Agent implementation.

Functions§

clearance_reads_only
Whether a Run at clearance is held to reading (READ_CLEARANCE).
clearance_runs_commands
Whether a Run at clearance may have a command tool: field and 00. Anything else, desk and a clearance this build does not know alike, may not, because a command reaches whatever the harness’s OS user can. A handler that cannot keep commands from a Run refuses to start it.
is_token_cap_refusal
Whether text is a model gateway’s refusal of a request over its per-request token cap (Current cap is 300000 tokens, context_length_exceeded): the same request is refused again whenever it is sent, so a handler fails the turn with these words instead of letting its harness retry.