pub struct SpawnSpec {
pub cwd: PathBuf,
pub task_id: String,
pub command: Vec<String>,
pub env: BTreeMap<String, String>,
pub tools_token: String,
pub prose: String,
pub focus: Option<bool>,
pub placement: Option<PanePlacement>,
pub rename: Option<String>,
}Fields§
§cwd: PathBuf§task_id: String§command: Vec<String>§env: BTreeMap<String, String>§tools_token: StringThe tools-mount token this client minted for the session being opened.
A session the client drives itself has no plugin to carry its
obligations, so this token is what binds the onlyne mcp child back to
this one session (docs/v2-CONTRACT.md §3b). It travels here and not
inside env, because env is the agent process’s own environment: a
capability the model can print is no capability, and the mount’s env
belongs to the tool child alone.
prose: StringThe role’s control-plane prose, as the slice welcome brought it.
A runtime with a system-prompt extension point is handed this through
that point. An ACP session has none, so this is what the client writes
into the workspace instruction file before the session opens
(AGENTS.md §12).
focus: Option<bool>§placement: Option<PanePlacement>§rename: Option<String>Trait Implementations§
Source§impl<'de> Deserialize<'de> for SpawnSpec
impl<'de> Deserialize<'de> for SpawnSpec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for SpawnSpec
Auto Trait Implementations§
impl Freeze for SpawnSpec
impl RefUnwindSafe for SpawnSpec
impl Send for SpawnSpec
impl Sync for SpawnSpec
impl Unpin for SpawnSpec
impl UnsafeUnpin for SpawnSpec
impl UnwindSafe for SpawnSpec
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more