pub struct SpawnTemplate {
pub task: String,
pub label: Option<String>,
pub model: Option<String>,
pub tool_allowlist: Option<Vec<String>>,
pub frontmatter_path: Option<String>,
pub provider_ref: Option<String>,
pub timeout_secs: Option<u64>,
pub isolation_worktree: bool,
pub permission_posture: PermissionPosture,
}Expand description
The spawn an automation performs each time it fires.
Mirrors the fields of a manual spawn, so an automation can do nothing a
person with operate could not do by hand.
Fields§
§task: StringThe agent’s task. For webhook triggers this may contain
{{ dotted.path }} placeholders filled from the request payload.
label: Option<String>Optional human-readable label for spawned agents.
model: Option<String>Optional model override.
tool_allowlist: Option<Vec<String>>Optional tool allowlist.
frontmatter_path: Option<String>Optional agent-template / frontmatter markdown path.
provider_ref: Option<String>Which of the workspace’s named providers to bind (k8s config plane).
timeout_secs: Option<u64>Kill the spawned agent after this many seconds (#221).
isolation_worktree: boolRun in an isolated git worktree. Defaults to true.
permission_posture: PermissionPostureHow the spawned session handles tool calls needing permission (#238).
Defaults to Supervised, the same fail-closed default a manual spawn
gets. An automation runs with nobody watching, which is an argument for
Unattended — but it is the operator’s argument to make explicitly,
not something creating an automation should confer by itself.
Trait Implementations§
Source§impl Clone for SpawnTemplate
impl Clone for SpawnTemplate
Source§fn clone(&self) -> SpawnTemplate
fn clone(&self) -> SpawnTemplate
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SpawnTemplate
impl Debug for SpawnTemplate
Source§impl Default for SpawnTemplate
impl Default for SpawnTemplate
Source§fn default() -> SpawnTemplate
fn default() -> SpawnTemplate
Source§impl<'de> Deserialize<'de> for SpawnTemplate
impl<'de> Deserialize<'de> for SpawnTemplate
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SpawnTemplate, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SpawnTemplate, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for SpawnTemplate
Source§impl JsonSchema for SpawnTemplate
impl JsonSchema for SpawnTemplate
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for SpawnTemplate
impl PartialEq for SpawnTemplate
Source§impl Serialize for SpawnTemplate
impl Serialize for SpawnTemplate
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,
impl StructuralPartialEq for SpawnTemplate
Auto Trait Implementations§
impl Freeze for SpawnTemplate
impl RefUnwindSafe for SpawnTemplate
impl Send for SpawnTemplate
impl Sync for SpawnTemplate
impl Unpin for SpawnTemplate
impl UnsafeUnpin for SpawnTemplate
impl UnwindSafe for SpawnTemplate
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§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
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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> ⓘ
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> ⓘ
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