pub struct StepNode {
pub iteration: u32,
pub started_at: DateTime<Utc>,
pub ended_at: DateTime<Utc>,
pub prompt_tokens: u32,
pub completion_tokens: u32,
pub tool_calls: Vec<ToolCallRecord>,
pub finish_reason: Option<String>,
}Expand description
One provider-call iteration in the execute() loop.
Fields§
§iteration: u32Iteration number within the execution loop.
started_at: DateTime<Utc>When this step started.
ended_at: DateTime<Utc>When this step ended.
prompt_tokens: u32Prompt tokens for this call (from Usage::prompt_tokens).
completion_tokens: u32Completion tokens for this call (from Usage::completion_tokens).
tool_calls: Vec<ToolCallRecord>Tool calls made during this step.
finish_reason: Option<String>Reason the provider stopped generating.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for StepNode
impl<'de> Deserialize<'de> for StepNode
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 StepNode
impl RefUnwindSafe for StepNode
impl Send for StepNode
impl Sync for StepNode
impl Unpin for StepNode
impl UnsafeUnpin for StepNode
impl UnwindSafe for StepNode
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