Skip to main content

AcpHandler

Struct AcpHandler 

Source
pub struct AcpHandler { /* private fields */ }
Expand description

Runs an ACP agent for each Run.

Trait Implementations§

Source§

impl AgentHandler for AcpHandler

Source§

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>

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>

An ACP agent speaks JSON-RPC on plain pipes.

Source§

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>

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>

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>

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>

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>

Starts an Agent Run with context established before its task prompt. Read more
Source§

fn resume( &self, request: AgentResume, terminal: Object<dyn AgentTerminal>, ) -> Result<Object<dyn AgentSession>, ProviderError>

Reattaches to the same provider ID after an interruption.
Source§

fn assistant_scripts( &self, environment: BTreeMap<String, String>, ) -> Result<Option<String>, ProviderError>

Whether the harness can run an assistant’s interpreters inside its own sandbox on this Station, started with 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>

Whether the harness can load exactly an assistant’s 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>

Whether the harness can be kept to an assistant’s MCP servers and the network its 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>

Why this handler cannot hold a Mission’s Run to reading at 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>

Where the harness keeps its own record of the Run 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>

Why the harness cannot be shown images, in a sentence; 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>

The usage of the account behind 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.
Source§

impl ProviderDecl for AcpHandler

Source§

const KINDS: &'static [&'static str]

The name of every kind this provider serves, so a library can declare them at compile time.
Source§

fn provider(host: Host, alloc: Alloc) -> Result<ProviderParts, ValueError>

Builds this provider’s descriptor, its tables and its configuration schema, once. host is what the library was loaded by; alloc is what the schema is built through.
Source§

impl TryFrom<AcpSettings> for AcpHandler

Source§

type Error = ProviderError

The type returned in the event of a conversion error.
Source§

fn try_from(settings: AcpSettings) -> Result<Self, Self::Error>

Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

§

fn implicit( self, class: Class, constructed: bool, tag: u32, ) -> TaggedParser<'a, Implicit, Self, E>

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<A, B, T> HttpServerConnExec<A, B> for T
where B: Body,

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> IntoMaybeUndefined<T> for T

§

fn into_maybe_undefined(self) -> MaybeUndefined<T>

Converts this value into a three-state builder argument.
§

impl<T> IntoOption<T> for T

§

fn into_option(self) -> Option<T>

Converts this value into an optional builder argument.
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more