pub struct SpawnBody {
pub prompt: String,
pub label: Option<String>,
pub model: Option<String>,
pub isolation: Option<String>,
pub tool_allowlist: Option<Vec<String>>,
pub interactive: bool,
pub frontmatter_path: Option<String>,
pub provider_ref: Option<String>,
}Expand description
Body for POST /api/workspaces/{repo}/agents.
Fields§
§prompt: StringInitial prompt / task.
label: Option<String>Optional label.
model: Option<String>Optional model override.
isolation: Option<String>Isolation mode: "worktree" (default) or "shared".
tool_allowlist: Option<Vec<String>>Optional tool allowlist.
interactive: boolRun the agent in interactive mode (awaits operator input).
frontmatter_path: Option<String>Optional agent-template / frontmatter markdown file path (#6).
provider_ref: Option<String>Which named workspace provider to bind (k8s config plane →
CalibanTask.providerRef). None ⇒ the workspace’s default (#142).
Implementations§
Source§impl SpawnBody
impl SpawnBody
Sourcepub fn isolation_worktree(&self) -> bool
pub fn isolation_worktree(&self) -> bool
Whether this spawn should get an isolated git worktree.
Isolation defaults to worktree; only the explicit string "shared" opts
out. Kept here (not in the api adapter) because it is the meaning of the
field, and both ends need to agree on it — the dashboard reads it back
to render the isolation control.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SpawnBody
impl<'de> Deserialize<'de> for SpawnBody
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 Eq for SpawnBody
impl StructuralPartialEq for SpawnBody
Auto Trait Implementations§
impl Freeze for SpawnBody
impl RefUnwindSafe for SpawnBody
impl Send for SpawnBody
impl Sync for SpawnBody
impl Unpin for SpawnBody
impl UnsafeUnpin for SpawnBody
impl UnwindSafe for SpawnBody
Blanket Implementations§
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