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<SpawnBody, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SpawnBody, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for SpawnBody
impl Serialize for SpawnBody
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more