pub struct ChainStepInput {
pub name: String,
pub step_type: String,
pub value: String,
pub arguments: Option<HashMap<String, String>>,
pub model: Option<String>,
pub effort: Option<String>,
pub retries: Option<u32>,
pub recovery_prompt: Option<String>,
pub output_vars: Option<HashMap<String, String>>,
}Fields§
§name: StringStep name.
step_type: StringStep type: “prompt” or “skill”.
value: StringFor prompt steps: the prompt text. For skill steps: the skill name.
arguments: Option<HashMap<String, String>>For skill steps: arguments as key-value pairs.
model: Option<String>Model override for this step.
effort: Option<String>Effort override for this step.
retries: Option<u32>Number of retries on failure (default: 0).
recovery_prompt: Option<String>Recovery prompt template on exhausted retries. {error} and {previous_output} are substituted.
output_vars: Option<HashMap<String, String>>Extract named values from this step’s JSON output for use in later steps. Key = variable name, Value = dot-path (e.g. “files_changed”, “result.summary”, “.”). Reference in later prompts as: {steps.STEP_NAME.VAR_NAME}
Trait Implementations§
Source§impl Debug for ChainStepInput
impl Debug for ChainStepInput
Source§impl<'de> Deserialize<'de> for ChainStepInput
impl<'de> Deserialize<'de> for ChainStepInput
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 JsonSchema for ChainStepInput
impl JsonSchema for ChainStepInput
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for ChainStepInput
impl RefUnwindSafe for ChainStepInput
impl Send for ChainStepInput
impl Sync for ChainStepInput
impl Unpin for ChainStepInput
impl UnsafeUnpin for ChainStepInput
impl UnwindSafe for ChainStepInput
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