pub struct StepOutput {
pub output: Value,
pub duration_ms: u64,
pub cost_usd: Decimal,
pub input_tokens: Option<u64>,
pub output_tokens: Option<u64>,
}Expand description
Result of executing a single step.
Fields§
§output: ValueSerialized output (stdout for shell, body for http, value for agent).
duration_ms: u64Wall-clock duration in milliseconds.
cost_usd: DecimalCost in USD (agent steps only).
input_tokens: Option<u64>Input token count (agent steps only).
output_tokens: Option<u64>Output token count (agent steps only).
Trait Implementations§
Source§impl Clone for StepOutput
impl Clone for StepOutput
Source§fn clone(&self) -> StepOutput
fn clone(&self) -> StepOutput
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 moreAuto Trait Implementations§
impl Freeze for StepOutput
impl RefUnwindSafe for StepOutput
impl Send for StepOutput
impl Sync for StepOutput
impl Unpin for StepOutput
impl UnsafeUnpin for StepOutput
impl UnwindSafe for StepOutput
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