pub struct SpawnInput { /* private fields */ }Expand description
Every fact the spawn input parser owns: mode, normalized body, and optional target — where a command runs, or which remote agent a task is for. The working directory is not model input; the tool context resolves it later when building the authorization preview.
Implementations§
Source§impl Spawn
impl Spawn
pub const fn mode(&self) -> Mode
pub fn body(&self) -> &str
Sourcepub const fn reach(&self) -> Option<Reach>
pub const fn reach(&self) -> Option<Reach>
What the model said @<name> may reach (ADR-0037 §3), when it said.
Sourcepub fn metadata(&self) -> Option<&Map<String, Value>>
pub fn metadata(&self) -> Option<&Map<String, Value>>
The parameters sent beside a task for a remote agent (ADR-0040).
Sourcepub fn files(&self) -> &[String]
pub fn files(&self) -> &[String]
The workspace paths of the files sent with a task (ADR-0041), as written; empty when it sends none.
Sourcepub fn target(&self) -> Option<&str>
pub fn target(&self) -> Option<&str>
The target this call named — a command’s executor, or a delegation’s
agent — or None for here. Never Some("local"): local is the
reserved wire spelling for this process, not a name anything can take.
Sourcepub fn is_remote_wait(&self) -> bool
pub fn is_remote_wait(&self) -> bool
Whether this is a delegation to a named agent that hands it nothing
new: @<agent> alone, which waits again on a remote agent’s
outstanding task (ADR-0029 §5). The one call whose body may be empty.