pub struct TransitionConfig {Show 14 fields
pub to: String,
pub trigger: String,
pub label: String,
pub hint: String,
pub completion: CompletionStrategy,
pub focus_section: Option<String>,
pub context_section: Option<String>,
pub warning: Option<String>,
pub profile: Option<String>,
pub instructions: Option<String>,
pub role_prefix: Option<String>,
pub agent: Option<String>,
pub on_failure: Option<String>,
pub outcome: Option<String>,
}Expand description
A directed edge in the state machine: from the parent state to to.
Fields§
§to: StringTarget state ID after this transition fires.
trigger: StringEvent or command that fires this transition (e.g. close, approve).
label: StringShort label shown in the review prompt (e.g. Approve for implementation).
hint: StringGuidance shown in the editor header (e.g. Add requests in ### Amendment requests).
completion: CompletionStrategyHow the worker’s branch is integrated before or after this transition. See CompletionStrategy.
focus_section: Option<String>Markdown section heading the agent should focus on when acting on this transition.
context_section: Option<String>Markdown section heading included as extra context for the agent.
warning: Option<String>Optional warning message shown to the supervisor before the transition is confirmed.
profile: Option<String>Worker profile to use for the agent spawned by this transition. References a key in [worker_profiles].
instructions: Option<String>Path to a system-prompt file for the agent spawned by this transition. Overrides profile.instructions.
role_prefix: Option<String>Identity prefix for the agent spawned by this transition. Overrides profile.role_prefix.
agent: Option<String>Built-in agent identifier for the agent spawned by this transition. Overrides profile.agent and [workers] agent.
on_failure: Option<String>§outcome: Option<String>Semantic outcome of this transition from the worker’s perspective.
Recognised values: success, needs_input, blocked, rejected, cancelled.
Custom values are accepted but treated as non-success by tooling.
When omitted, resolve_outcome applies implicit defaults; see that function.
Trait Implementations§
Source§impl Clone for TransitionConfig
impl Clone for TransitionConfig
Source§fn clone(&self) -> TransitionConfig
fn clone(&self) -> TransitionConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TransitionConfig
impl Debug for TransitionConfig
Source§impl<'de> Deserialize<'de> for TransitionConfig
impl<'de> Deserialize<'de> for TransitionConfig
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>,
Source§impl JsonSchema for TransitionConfig
impl JsonSchema for TransitionConfig
Source§fn schema_name() -> String
fn schema_name() -> String
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 is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read more