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 const fn background(&self) -> bool
pub const fn background(&self) -> bool
Whether the task is started in the background and its handle returned at once (ADR-0042).
Sourcepub fn wait(&self) -> &[String]
pub fn wait(&self) -> &[String]
The handles a wait collects (ADR-0042), as written; empty for any call but a wait.
Sourcepub const fn any(&self) -> bool
pub const fn any(&self) -> bool
Whether a wait returns on the first handle to finish rather than once all have.
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) or on a background delegation under
that handle (ADR-0042). The one call whose body may be empty.