pub struct DagWorkflowStep {
pub name: String,
pub fighter_name: String,
pub prompt_template: String,
pub timeout_secs: Option<u64>,
pub on_error: OnError,
pub depends_on: Vec<String>,
pub condition: Option<Condition>,
pub else_step: Option<String>,
pub loop_config: Option<LoopConfig>,
}Expand description
A single step within a DAG workflow.
Fields§
§name: StringHuman-readable name for this step (must be unique within the workflow).
fighter_name: StringThe fighter name to use for this step.
prompt_template: StringPrompt template with variable substitution.
timeout_secs: Option<u64>Maximum time in seconds for this step (default 120).
on_error: OnErrorError handling strategy.
depends_on: Vec<String>Steps that must complete before this one runs.
condition: Option<Condition>Optional condition — step is skipped if condition evaluates to false.
else_step: Option<String>If condition is false, run this step instead (if/else branching).
loop_config: Option<LoopConfig>Optional loop configuration.
Implementations§
Source§impl DagWorkflowStep
impl DagWorkflowStep
Sourcepub fn fallback_step(&self) -> Option<String>
pub fn fallback_step(&self) -> Option<String>
Extract the fallback step name from the on_error strategy, if any.
Trait Implementations§
Source§impl Clone for DagWorkflowStep
impl Clone for DagWorkflowStep
Source§fn clone(&self) -> DagWorkflowStep
fn clone(&self) -> DagWorkflowStep
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DagWorkflowStep
impl Debug for DagWorkflowStep
Source§impl<'de> Deserialize<'de> for DagWorkflowStep
impl<'de> Deserialize<'de> for DagWorkflowStep
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
Auto Trait Implementations§
impl Freeze for DagWorkflowStep
impl RefUnwindSafe for DagWorkflowStep
impl Send for DagWorkflowStep
impl Sync for DagWorkflowStep
impl Unpin for DagWorkflowStep
impl UnsafeUnpin for DagWorkflowStep
impl UnwindSafe for DagWorkflowStep
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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