pub enum StepContent {
Understanding,
Planning {
reasoning: Option<String>,
planned_tools: Option<Vec<PlannedTool>>,
},
SkillUsage {
skill_id: SkillId,
skill_name: String,
},
ToolExecution {
tool_name: String,
tool_arguments: Value,
tool_result: Option<Value>,
},
Completion,
}Variants§
Implementations§
Source§impl StepContent
impl StepContent
Sourcepub const fn understanding() -> Self
pub const fn understanding() -> Self
Create an Understanding step
Sourcepub const fn planning(
reasoning: Option<String>,
planned_tools: Option<Vec<PlannedTool>>,
) -> Self
pub const fn planning( reasoning: Option<String>, planned_tools: Option<Vec<PlannedTool>>, ) -> Self
Create a Planning step with optional reasoning and planned tools
pub fn skill_usage(skill_id: SkillId, skill_name: impl Into<String>) -> Self
pub fn tool_execution( tool_name: impl Into<String>, tool_arguments: Value, ) -> Self
pub const fn completion() -> Self
pub const fn step_type(&self) -> StepType
pub fn title(&self) -> String
pub const fn is_instant(&self) -> bool
pub fn tool_name(&self) -> Option<&str>
pub const fn tool_arguments(&self) -> Option<&Value>
pub const fn tool_result(&self) -> Option<&Value>
pub fn reasoning(&self) -> Option<&str>
pub fn planned_tools(&self) -> Option<&[PlannedTool]>
pub fn with_tool_result(self, result: Value) -> Self
Trait Implementations§
Source§impl Clone for StepContent
impl Clone for StepContent
Source§fn clone(&self) -> StepContent
fn clone(&self) -> StepContent
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 StepContent
impl Debug for StepContent
Source§impl<'de> Deserialize<'de> for StepContent
impl<'de> Deserialize<'de> for StepContent
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 StepContent
impl PartialEq for StepContent
Source§impl Serialize for StepContent
impl Serialize for StepContent
impl Eq for StepContent
impl StructuralPartialEq for StepContent
Auto Trait Implementations§
impl Freeze for StepContent
impl RefUnwindSafe for StepContent
impl Send for StepContent
impl Sync for StepContent
impl Unpin for StepContent
impl UnwindSafe for StepContent
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.