Skip to main content

LaunchParams

Struct LaunchParams 

Source
pub struct LaunchParams {
Show 21 fields pub agent: String, pub cwd: String, pub model: String, pub effort: String, pub mode: String, pub append_prompt: Option<String>, pub relay: Option<String>, pub by_key: bool, pub start: StartAt, pub read_dirs: Vec<String>, pub escouade: Option<Grant>, pub fence: Vec<String>, pub read_only: bool, pub escouade_file: Option<String>, pub program: String, pub home: Option<String>, pub described: Option<HarnessDecl>, pub lang: String, pub takes_effort: Option<bool>, pub settings: Option<String>, pub refusal_file: Option<String>,
}
Expand description

What engine/launch is told.

Fields§

§agent: String

The key of the agent’s process, as agent/* names it.

§cwd: String§model: String§effort: String§mode: String§append_prompt: Option<String>§relay: Option<String>

What was said in the harness’s own interface since the agent last ran (« Vue Cursor », a relay of the core’s): it goes before the next message.

§by_key: bool

Its account goes by its key (HarnessDecl::key_var given), not by the machine’s sign-in: what a refusal says.

§start: StartAt§read_dirs: Vec<String>§escouade: Option<Grant>

Escouade’s server, None when refused.

§fence: Vec<String>

The paths refused to its tools (« Projet privé »), as its program spells them: each must be in the launch, and Launch::fence_applied true, or the core does not launch it.

§read_only: bool

A discussion of the Docs tab: it changes no file and runs no command. Launch::read_only must say it holds.

§escouade_file: Option<String>

The private file the core made for Escouade’s server (Engine::grant_file), which a plugin’s launch may name.

§program: String

Its program, as the user knows it.

§home: Option<String>

The folder of the agent’s own, where the files of the launch may be written; None: no file may be.

§described: Option<HarnessDecl>

For a plugin that serves the harnesses other plugins describe (dev.escouade.acp, PLG-6): the harness as its manifest declares it (HarnessDecl, its acp included). None for a plugin’s own harness.

§lang: String

The language of the app (fr, en), for the lines the plugin writes in the conversation.

§takes_effort: Option<bool>

Whether its model takes an effort, as its account’s harness told it; None: the plugin’s own rule.

§settings: Option<String>

A settings file the core wrote for it (Engine::fence_settings): it holds the fence, and a launch that names it needs not spell the paths (fence).

§refusal_file: Option<String>

The file the core wrote to keep Escouade’s server out of it (Engine::refusal), when it is refused.

Trait Implementations§

Source§

impl Clone for LaunchParams

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 LaunchParams

Source§

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

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

impl Default for LaunchParams

Source§

fn default() -> Self

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

impl<'de> Deserialize<'de> for LaunchParams

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 PartialEq for LaunchParams

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 LaunchParams

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 LaunchParams

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.