pub struct AcpHandler { /* private fields */ }Expand description
Runs an ACP agent for each Run.
Trait Implementations§
Source§impl AgentHandler for AcpHandler
impl AgentHandler for AcpHandler
Source§fn session_commands(&self) -> Result<SessionCommands, ProviderError>
fn session_commands(&self) -> Result<SessionCommands, ProviderError>
What an ACP agent carries out is what it advertises (compact) and what ACP gives every
client (session/new on the connection), which only a session knows: this says what the
handler may do, and a session refuses a command its agent cannot carry out.
Source§fn usage_support(&self) -> Result<UsageSupport, ProviderError>
fn usage_support(&self) -> Result<UsageSupport, ProviderError>
An ACP agent’s usage is what its failed turns say: a refusal read as a limit is the only figure, and nothing reads it between turns.
Source§fn stdio(&self) -> Result<HarnessStdio, ProviderError>
fn stdio(&self) -> Result<HarnessStdio, ProviderError>
An ACP agent speaks JSON-RPC on plain pipes.
Source§fn program(&self) -> Result<Option<String>, ProviderError>
fn program(&self) -> Result<Option<String>, ProviderError>
The command of its settings; without settings there is none to name.
Source§fn start_options(
&self,
environment: BTreeMap<String, String>,
) -> Result<StartOptions, ProviderError>
fn start_options( &self, environment: BTreeMap<String, String>, ) -> Result<StartOptions, ProviderError>
What the agent offers before any Run, asked of it: its model, effort and other options, its modes and its sessions, each with the outcome the agent gave (it said, it could not tell and why, or it does not offer the question). An agent that cannot be started is unknown in every part, with the reason.
Source§fn clearance_refusal(
&self,
clearance: String,
) -> Result<Option<String>, ProviderError>
fn clearance_refusal( &self, clearance: String, ) -> Result<Option<String>, ProviderError>
AI6 does not choose an ACP agent’s tools, so it cannot keep commands from a desk Run.
Source§fn loadout_support(&self) -> Result<LoadoutSupport, ProviderError>
fn loadout_support(&self) -> Result<LoadoutSupport, ProviderError>
An ACP agent starts the stdio MCP servers session/new hands it; ACP has no way to deny one
of a server’s tools or to ask for a sandbox, which the agent applies, or not, itself.
Source§fn weakenings(&self) -> Result<Vec<String>, ProviderError>
fn weakenings(&self) -> Result<Vec<String>, ProviderError>
unconfined_desk: a desk Run runs with the agent’s own tools. client_tools: a Run on a
remote Theater trusts the agent to work only through the client.
Source§fn start(
&self,
request: AgentStart,
terminal: Object<dyn AgentTerminal>,
) -> Result<Object<dyn AgentSession>, ProviderError>
fn start( &self, request: AgentStart, terminal: Object<dyn AgentTerminal>, ) -> Result<Object<dyn AgentSession>, ProviderError>
Source§fn resume(
&self,
request: AgentResume,
terminal: Object<dyn AgentTerminal>,
) -> Result<Object<dyn AgentSession>, ProviderError>
fn resume( &self, request: AgentResume, terminal: Object<dyn AgentTerminal>, ) -> Result<Object<dyn AgentSession>, ProviderError>
Source§fn assistant_scripts(
&self,
environment: BTreeMap<String, String>,
) -> Result<Option<String>, ProviderError>
fn assistant_scripts( &self, environment: BTreeMap<String, String>, ) -> Result<Option<String>, ProviderError>
environment (as the Station would give it): None when it
can, else why not, in a sentence. The default: it cannot.Source§fn assistant_skills(&self) -> Result<Option<String>, ProviderError>
fn assistant_skills(&self) -> Result<Option<String>, ProviderError>
AssistantMode::skills and no
other skill: None when it can, else why not, in a sentence; a Station installs no
skill for a handler that cannot. The default: it cannot.Source§fn assistant_network(&self) -> Result<Option<String>, ProviderError>
fn assistant_network(&self) -> Result<Option<String>, ProviderError>
AssistantMode::network allows (nothing, for denied): None when it can, else why
not, in a sentence. The Station starts an assistant on a handler that cannot only when the
network is open, which asks nothing to be kept. The default: it cannot.Source§fn read_only_refusal(&self) -> Result<Option<String>, ProviderError>
fn read_only_refusal(&self) -> Result<Option<String>, ProviderError>
READ_CLEARANCE and then
give it the Mission’s tools on a resume of the same Run, in a sentence; None when it
can. The default: it cannot say it can, so a Mission whose plan is reviewed does not start
on it.Source§fn run_record(
&self,
query: RunRecordQuery,
) -> Result<Option<RunRecordFile>, ProviderError>
fn run_record( &self, query: RunRecordQuery, ) -> Result<Option<RunRecordFile>, ProviderError>
query names, when it keeps one
and the file is there; the Station reads it as that Run’s context. The default:
none, and the Station keeps its event stream instead.Source§fn image_input(&self) -> Result<Option<String>, ProviderError>
fn image_input(&self) -> Result<Option<String>, ProviderError>
None when it reads a message in
the content form, and gives its images to the model with the text. The
default: it cannot.Source§fn usage(
&self,
environment: BTreeMap<String, String>,
) -> Result<UsageReport, ProviderError>
fn usage( &self, environment: BTreeMap<String, String>, ) -> Result<UsageReport, ProviderError>
environment (the variables a Run would start with),
read with no model turn. The report holds the account’s buckets, each with the models it
covers, how much is used and when it refills; a handler never puts a credential from
environment in it. The default: this handler reports no usage.