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: StringThe ACP version spoken; only v1.
initialize_timeout_ms: u64How long initialize may take, in milliseconds.
request_timeout_ms: u64How long a request other than a prompt may take.
start_timeout_ms: u64How long the first prompt of a façade may take to start.
close_grace_ms: u64How long close waits for the agent before its process is ended.
abort_wait_ms: u64How 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: usizeHow many of the agent’s last non-protocol output lines are kept to explain its death.
exit_wait_ms: i64How long, in milliseconds, the report of a lost agent waits for its exit status.
poll_ms: i64How often, in milliseconds, a silent agent’s output is checked for a stop request.
unconfined_desk: boolStarts 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: boolSays 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: usizeUTF-8 bytes of agent text gathered before they are delivered mid-message.
max_tool_kinds: usizeThe 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: usizeWhat asking the agent what a Run can start with keeps of its answer: options.
describe_values: usizeValues kept of each option.
describe_modes: usizeModes kept.
describe_runs: usizeRuns kept of the agent’s list, across its pages.
describe_text_bytes: usizeUTF-8 bytes past which an identifier is dropped and other text cut.
describe_pages: usizePages of the agent’s run list asked for.
Trait Implementations§
Source§impl Clone for AcpSettings
impl Clone for AcpSettings
Source§impl Debug for AcpSettings
impl Debug for AcpSettings
Source§impl FromValue for AcpSettings
impl FromValue for AcpSettings
Source§const KINDS: Kinds = ::ai6::guatiao::Kinds::MAP
const KINDS: Kinds = ::ai6::guatiao::Kinds::MAP
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.