Skip to main content

AgentAdapterConfig

Struct AgentAdapterConfig 

Source
pub struct AgentAdapterConfig {
Show 17 fields pub command: String, pub args: Vec<String>, pub prompt_args: Vec<String>, pub full_permission_args: Option<Vec<String>>, pub model_args: Vec<String>, pub effort_args: Vec<String>, pub model_hint: String, pub environment: Vec<(OsString, OsString)>, pub search_dirs: Vec<PathBuf>, pub output: OutputFormat, pub resume: Resume, pub home: Option<PathBuf>, pub transport: Transport, pub acp: Option<AcpAgentLaunch>, pub use_for: Option<String>, pub model: Option<String>, pub effort: Option<String>,
}

Fields§

§command: String§args: Vec<String>§prompt_args: Vec<String>

Arguments placed immediately before the prompt, for CLIs that take the prompt as a flag value.

§full_permission_args: Option<Vec<String>>

The CLI’s own full-autonomy arguments, placed after args, when the user configured permissions = "full"; the approval summary says so.

§model_args: Vec<String>

Arguments appended for a per-call model; {model} is substituted. Empty means the adapter does not offer model selection.

§effort_args: Vec<String>

Arguments appended for a per-call effort; {effort} is substituted. Empty means the adapter does not offer effort selection.

§model_hint: String

Describes the model argument for the calling model.

§environment: Vec<(OsString, OsString)>

Environment for the nested process. SCV supplies an instance-private home.

§search_dirs: Vec<PathBuf>

Per-user install directories searched when command is not on PATH.

§output: OutputFormat

What the CLI prints, and so how its reply is read.

§resume: Resume

How a conversation with the CLI is continued, if it can be.

§home: Option<PathBuf>

SCV’s private home for this agent, for files SCV hands the CLI.

§transport: Transport

How SCV talks to the agent.

§acp: Option<AcpAgentLaunch>

The agent’s ACP server, when [agents.<name>] transport allows it and the adapter table has one.

§use_for: Option<String>

The user’s note on when to choose this agent ([agents.<name>] use_for), added to its line in the agent tool’s description.

§model: Option<String>

Default model to pass when the work matches use_for (or on every call to this agent, when use_for is unset).

§effort: Option<String>

Default effort to pass the same way as model.

Trait Implementations§

Source§

impl Clone for AgentAdapterConfig

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 AgentAdapterConfig

Source§

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

Formats the value using the given formatter. Read more

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
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
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> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

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

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

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.

Source§

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

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
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.
Source§

impl<T> WithSubscriber for T

Source§

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
Source§

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

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