pub struct StepConfig {
pub id: String,
pub description: String,
pub depends_on: Vec<String>,
pub tool: Option<String>,
pub tool_args: Option<Value>,
pub prompt: Option<String>,
pub requires_approval: bool,
pub timeout_secs: Option<u64>,
pub retry_policy: Option<RetryPolicy>,
pub metadata: HashMap<String, String>,
}Expand description
Configuration for a single workflow step.
Fields§
§id: StringUnique step identifier within the workflow.
description: StringHuman-readable description of what this step does.
depends_on: Vec<String>IDs of steps that must complete before this step can start.
tool: Option<String>The tool to use for this step (if applicable).
tool_args: Option<Value>Arguments for the tool (JSON or template expressions).
prompt: Option<String>The prompt template for LLM-based steps.
requires_approval: boolWhether this step is an approval checkpoint (requires human approval).
timeout_secs: Option<u64>Step-level timeout in seconds (overrides workflow timeout).
retry_policy: Option<RetryPolicy>Step-level retry policy (overrides default).
metadata: HashMap<String, String>Step-specific metadata.
Trait Implementations§
Source§impl Clone for StepConfig
impl Clone for StepConfig
Source§impl Debug for StepConfig
impl Debug for StepConfig
Source§impl<'de> Deserialize<'de> for StepConfig
impl<'de> Deserialize<'de> for StepConfig
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
Source§impl PartialEq for StepConfig
impl PartialEq for StepConfig
Source§impl Serialize for StepConfig
impl Serialize for StepConfig
impl StructuralPartialEq for StepConfig
Auto Trait Implementations§
impl Freeze for StepConfig
impl RefUnwindSafe for StepConfig
impl Send for StepConfig
impl Sync for StepConfig
impl Unpin for StepConfig
impl UnsafeUnpin for StepConfig
impl UnwindSafe for StepConfig
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