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§impl<'de> Deserialize<'de> for SpawnTemplate
impl<'de> Deserialize<'de> for SpawnTemplate
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>,
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 more