pub struct ExecutionStep {
pub step_id: StepId,
pub task_id: TaskId,
pub status: StepStatus,
pub started_at: DateTime<Utc>,
pub completed_at: Option<DateTime<Utc>>,
pub duration_ms: Option<i32>,
pub error_message: Option<String>,
pub content: StepContent,
}Fields§
§step_id: StepId§task_id: TaskId§status: StepStatus§started_at: DateTime<Utc>§completed_at: Option<DateTime<Utc>>§duration_ms: Option<i32>§error_message: Option<String>§content: StepContentImplementations§
Source§impl ExecutionStep
impl ExecutionStep
pub fn new(task_id: TaskId, content: StepContent) -> Self
Sourcepub fn understanding(task_id: TaskId) -> Self
pub fn understanding(task_id: TaskId) -> Self
Create an understanding step
Sourcepub fn planning(
task_id: TaskId,
reasoning: Option<String>,
planned_tools: Option<Vec<PlannedTool>>,
) -> Self
pub fn planning( task_id: TaskId, reasoning: Option<String>, planned_tools: Option<Vec<PlannedTool>>, ) -> Self
Create a planning step
Sourcepub fn skill_usage(
task_id: TaskId,
skill_id: SkillId,
skill_name: impl Into<String>,
) -> Self
pub fn skill_usage( task_id: TaskId, skill_id: SkillId, skill_name: impl Into<String>, ) -> Self
Create a skill usage step
Sourcepub fn tool_execution(
task_id: TaskId,
tool_name: impl Into<String>,
tool_arguments: Value,
) -> Self
pub fn tool_execution( task_id: TaskId, tool_name: impl Into<String>, tool_arguments: Value, ) -> Self
Create a tool execution step
Sourcepub fn completion(task_id: TaskId) -> Self
pub fn completion(task_id: TaskId) -> Self
Create a completion step
pub const fn step_type(&self) -> StepType
pub fn title(&self) -> String
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 complete(&mut self, result: Option<Value>)
pub fn fail(&mut self, error: String)
Trait Implementations§
Source§impl Clone for ExecutionStep
impl Clone for ExecutionStep
Source§fn clone(&self) -> ExecutionStep
fn clone(&self) -> ExecutionStep
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 ExecutionStep
impl Debug for ExecutionStep
Source§impl<'de> Deserialize<'de> for ExecutionStep
impl<'de> Deserialize<'de> for ExecutionStep
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 ExecutionStep
impl PartialEq for ExecutionStep
Source§impl Serialize for ExecutionStep
impl Serialize for ExecutionStep
impl Eq for ExecutionStep
impl StructuralPartialEq for ExecutionStep
Auto Trait Implementations§
impl Freeze for ExecutionStep
impl RefUnwindSafe for ExecutionStep
impl Send for ExecutionStep
impl Sync for ExecutionStep
impl Unpin for ExecutionStep
impl UnwindSafe for ExecutionStep
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.