Skip to main content

AcpDecl

Struct AcpDecl 

Source
pub struct AcpDecl {
    pub args: Vec<String>,
    pub env: BTreeMap<String, String>,
    pub remove_env: Vec<String>,
    pub fs: bool,
    pub fence_on_permissions: bool,
    pub modes: BTreeMap<String, String>,
    pub read_only_mode: Option<String>,
    pub model_option: Option<String>,
    pub extensions: Vec<String>,
    pub questions_in_text: bool,
    pub subagent_tools: Vec<String>,
    pub tools: BTreeMap<String, String>,
}
Expand description

How an ACP agent is driven (ACP v1: JSON-RPC 2.0, one message a line on its input and output).

Fields§

§args: Vec<String>

Its arguments (["acp"]).

§env: BTreeMap<String, String>

Variables of its own (never a secret: a manifest is read by all).

§remove_env: Vec<String>

Variables of the app’s environment it must not get.

§fs: bool

It reads and writes files through the client (fs/read_text_file, fs/write_text_file): the fence of private projects is then held there. False: it reads and writes by itself, and no private project is open to it.

§fence_on_permissions: bool

With fs false, the fence of a private project held on its permissions alone, as Cursor CLI’s in the core was (ESC-140): a permission that names a path of the fence is refused at once; what it reads and writes by itself is not seen, which its modes’ meanings say. Only a plugin Escouade gives is believed (fenceByClient).

§modes: BTreeMap<String, String>

The ACP mode (session/set_mode) of each mode of Escouade; a mode left out sets none.

§read_only_mode: Option<String>

Its ACP mode that changes nothing (ask): with it, it holds a read-only launch (a discussion of the Docs tab).

§model_option: Option<String>

The id of the configuration option that picks the model (session/set_config_option); left out, the model goes by session/set_model.

§extensions: Vec<String>

The extensions of the protocol it speaks beside ACP (cursor: cursor/ask_question, cursor/create_plan, cursor/update_todos, its subagents).

§questions_in_text: bool

It has no tool to ask the user: its first message tells it to end its turn on a block <escouade_question>, shown as a question’s card, the answers sent as the next message (as for Gemini CLI).

§subagent_tools: Vec<String>

The names of its tools that run a subagent (by their title or rawInput.tool): shown as Claude Code’s Task, a row of the plan.

§tools: BTreeMap<String, String>

Its tools of the kind other under the name Claude Code gives them ({ "shell": "Bash", "write": "Write" }), by their own name: _meta.<agent>.toolCall.toolName, else their title before « · ».

Trait Implementations§

Source§

impl Clone for AcpDecl

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 AcpDecl

Source§

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

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

impl Default for AcpDecl

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for AcpDecl

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Eq for AcpDecl

Source§

impl PartialEq for AcpDecl

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for AcpDecl

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for AcpDecl

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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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> 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.