Skip to main content

AdapterDescriptor

Struct AdapterDescriptor 

Source
pub struct AdapterDescriptor {
Show 23 fields pub name: &'static str, pub product: &'static str, pub command: &'static str, pub args: &'static [&'static str], pub prompt_args: &'static [&'static str], pub model_args: &'static [&'static str], pub effort_args: &'static [&'static str], pub model_hint: &'static str, pub home_environment: &'static [(&'static str, &'static str)], pub fixed_environment: &'static [(&'static str, &'static str)], pub removed_environment: &'static [&'static str], pub full_permission_args: &'static [&'static str], pub full_permission_environment: &'static [(&'static str, &'static str)], pub search_dirs: &'static [&'static str], pub login: Login, pub status: Status, pub status_summary: StatusSummary, pub logout: Logout, pub output: OutputFormat, pub resume: Resume, pub conversation_files: Option<ConversationFiles>, pub transport: Transport, pub acp: Option<AcpLaunch>,
}

Fields§

§name: &'static str

Short name: the tool is agent_<name> and the home adapters/<name>.

§product: &'static str

Product name for messages.

§command: &'static str§args: &'static [&'static str]§prompt_args: &'static [&'static str]

Placed immediately before the prompt, for CLIs whose prompt is a flag value (grok -p <prompt>).

§model_args: &'static [&'static str]§effort_args: &'static [&'static str]§model_hint: &'static str

Describes the model argument for the calling model.

§home_environment: &'static [(&'static str, &'static str)]

Variables pointing the CLI’s state into the adapter home, as paths relative to it ("" is the home itself).

§fixed_environment: &'static [(&'static str, &'static str)]

Fixed variables for every delegated run.

§removed_environment: &'static [&'static str]

Credential, endpoint, and state-location variables no delegated agent inherits. A trailing * matches a prefix.

§full_permission_args: &'static [&'static str]

Added after args when [agents.<name>] permissions = "full": the CLI’s own switches that turn off its approval prompts and sandbox and enable web search where the CLI gates it. Empty when the CLI has no permission system of its own.

§full_permission_environment: &'static [(&'static str, &'static str)]

Variables set for permissions = "full", for CLIs configured that way.

§search_dirs: &'static [&'static str]

Per-user install directories searched before PATH, relative to the user’s home, as a login shell orders them. A user service’s PATH omits them, so without this the daemon would miss or pick a different install than the user’s shell.

§login: Login§status: Status§status_summary: StatusSummary

How a Status::Command result is summarized.

§logout: Logout§output: OutputFormat

What the CLI prints when SCV delegates to it.

§resume: Resume

How SCV continues a conversation with it, when it can.

§conversation_files: Option<ConversationFiles>

Transcripts scv agents gc may remove; None when unknown.

§transport: Transport

How SCV talks to the agent.

§acp: Option<AcpLaunch>

Its ACP server, when it has a verified one. With [agents.<name>] transport = "auto" SCV prefers it over Transport::Process once the command is installed.

Trait Implementations§

Source§

impl Clone for AdapterDescriptor

Source§

fn clone(&self) -> AdapterDescriptor

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 Copy for AdapterDescriptor

Source§

impl Debug for AdapterDescriptor

Source§

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

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