Skip to main content

AcpSettings

Struct AcpSettings 

Source
pub struct AcpSettings {
Show 26 fields pub command: Option<String>, pub args: Vec<String>, pub env: BTreeMap<String, String>, pub meta: Map<String, Value>, pub model_option: Option<String>, pub effort_option: Option<String>, pub protocol: String, pub initialize_timeout_ms: u64, pub request_timeout_ms: u64, pub start_timeout_ms: u64, pub close_grace_ms: u64, pub abort_wait_ms: u64, pub diagnostic_lines: usize, pub exit_wait_ms: i64, pub poll_ms: i64, pub unconfined_desk: bool, pub client_tools: bool, pub limit_phrases: Vec<String>, pub text_flush_bytes: usize, pub max_tool_kinds: usize, pub describe_options: usize, pub describe_values: usize, pub describe_modes: usize, pub describe_runs: usize, pub describe_text_bytes: usize, pub describe_pages: usize,
}
Expand description

What an acp handler is configured with, in the station record’s [providers.acp] and an Agent’s handler_settings. Unknown keys are refused.

Fields§

§command: Option<String>

The program that speaks ACP on its standard input and output; an Agent sets it, and without one the handler starts no Run.

§args: Vec<String>

Its arguments.

§env: BTreeMap<String, String>

Environment added under the Run’s own (the Run wins).

§meta: Map<String, Value>

A table passed beside AI6’s launch data as session/new._meta (an adapter’s options).

§model_option: Option<String>

The config option id for the model; default: the option of category model, else model.

§effort_option: Option<String>

The config option id for the effort; default: the option of category thought_level, else effort.

§protocol: String

The ACP version spoken; only v1.

§initialize_timeout_ms: u64

How long initialize may take, in milliseconds.

§request_timeout_ms: u64

How long a request other than a prompt may take.

§start_timeout_ms: u64

How long the first prompt of a façade may take to start.

§close_grace_ms: u64

How long close waits for the agent before its process is ended.

§abort_wait_ms: u64

How long, in milliseconds, ending a Run that was not closed waits for the agent to take its session/cancel before its process is ended.

§diagnostic_lines: usize

How many of the agent’s last non-protocol output lines are kept to explain its death.

§exit_wait_ms: i64

How long, in milliseconds, the report of a lost agent waits for its exit status.

§poll_ms: i64

How often, in milliseconds, a silent agent’s output is checked for a stop request.

§unconfined_desk: bool

Starts a desk Run with whatever tools the agent has: AI6 does not choose an ACP agent’s tools, so it cannot keep commands from one, and without this the Run is refused. Reported as a weakening.

§client_tools: bool

Says the agent does its file and shell work through the client’s fs/* and terminal/* requests when the client offers them, and never itself. On a remote Theater the Station answers those requests from the Theater, so a Run there starts only with this set: AI6 cannot tell such an agent from one that works on the Station’s own machine, and without this the Run is refused. Reported as a weakening.

§limit_phrases: Vec<String>

What marks a failed turn as a provider’s usage or rate limit, found in its error without regard to case: such a Run stops as limited rather than failed, so its route or account is passed over until the limit is likely over.

§text_flush_bytes: usize

UTF-8 bytes of agent text gathered before they are delivered mid-message.

§max_tool_kinds: usize

The tool calls whose kind is kept, by which a later message about one that does not say its kind is judged; past it the oldest is forgotten, and such a message is of unknown kind.

§describe_options: usize

What asking the agent what a Run can start with keeps of its answer: options.

§describe_values: usize

Values kept of each option.

§describe_modes: usize

Modes kept.

§describe_runs: usize

Runs kept of the agent’s list, across its pages.

§describe_text_bytes: usize

UTF-8 bytes past which an identifier is dropped and other text cut.

§describe_pages: usize

Pages of the agent’s run list asked for.

Trait Implementations§

Source§

impl Clone for AcpSettings

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for AcpSettings

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl FromValue for AcpSettings

Source§

const KINDS: Kinds = ::ai6::guatiao::Kinds::MAP

The kinds from_value may accept; any other is refused. Every impl in this crate and every derived one says; the default, [Kinds::ANY], claims every kind, which keeps a type that does not say out of an enum told apart by kind.
Source§

fn from_value(__value: &Value) -> Result<Self, MapError>

Performs the conversion. Read more
Source§

impl FromWalk for AcpSettings

Source§

fn from_walk<__W: Walker>(__walker: __W) -> Result<Self, MapError>

Reads Self from the one value walker holds.
Source§

impl MapRead for AcpSettings

Source§

fn read_map<__M: MapWalker>(__entries: __M) -> Result<Self, MapError>

Reads every entry.
Source§

impl Schema for AcpSettings

Source§

fn kind(__alloc: Alloc) -> KindBuilder

The kind describing values of this type.
§

fn schema_in(alloc: Alloc) -> Result<Value, ValueError>

The whole schema: the fields a consumer fills in, as a root document with its dialect declared. Read more
§

fn schema() -> Result<Value, ValueError>

The whole schema, built through the crate’s own allocator. See schema_in.
Source§

impl ToValue for AcpSettings

Source§

fn to_value_in(&self, __alloc: Alloc) -> Result<Value, ValueError>

Performs the conversion through alloc. A derived struct produces a map.
§

fn to_value(&self) -> Result<Value, ValueError>

Performs the conversion through the crate’s own allocator.
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.
Source§

impl Walk for AcpSettings

Source§

fn walk<__V: Visitor>(&self, __visitor: __V) -> Result<__V::Ok, __V::Error>

Hands this value to visitor: one call for a scalar; for a list or a map, the call that opens it, then each element, then end.

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> FromRef<T> for T
where T: Clone,

§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
§

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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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