pub struct ChainStep {
pub name: String,
pub action: StepAction,
pub config: Option<SlotConfig>,
pub failure_policy: StepFailurePolicy,
pub output_vars: HashMap<String, String>,
}Expand description
A step in a chain pipeline.
Fields§
§name: StringStep name (for logging and result tracking).
action: StepActionEither an inline prompt or a skill reference.
config: Option<SlotConfig>Per-step config overrides (model, effort, etc.).
failure_policy: StepFailurePolicyFailure policy for this step.
output_vars: HashMap<String, String>Extract named values from this step’s JSON output for use in later steps.
Key = variable name, Value = dot-path into the JSON output.
Use "." or "" for the whole output. Use "key" for a top-level field.
Use "a.b.c" for nested access. String values are returned as-is; other
JSON types are serialized to their JSON representation.
Extracted values are available in subsequent step prompts as
{steps.STEP_NAME.VAR_NAME}.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ChainStep
impl<'de> Deserialize<'de> for ChainStep
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 ChainStep
impl RefUnwindSafe for ChainStep
impl Send for ChainStep
impl Sync for ChainStep
impl Unpin for ChainStep
impl UnsafeUnpin for ChainStep
impl UnwindSafe for ChainStep
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