pub enum StepAction {
Prompt {
prompt: String,
},
Skill {
skill: String,
arguments: HashMap<String, String>,
},
}Expand description
What a chain step does.
Variants§
Prompt
Run an inline prompt. {previous_output} is replaced with
the output from the prior step.
Skill
Run a registered skill with the given arguments.
The special argument _previous_output is automatically set
to the output from the prior step.
Trait Implementations§
Source§impl Clone for StepAction
impl Clone for StepAction
Source§fn clone(&self) -> StepAction
fn clone(&self) -> StepAction
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 StepAction
impl Debug for StepAction
Source§impl<'de> Deserialize<'de> for StepAction
impl<'de> Deserialize<'de> for StepAction
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 StepAction
impl RefUnwindSafe for StepAction
impl Send for StepAction
impl Sync for StepAction
impl Unpin for StepAction
impl UnsafeUnpin for StepAction
impl UnwindSafe for StepAction
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