pub struct DecisionExecution {
pub output: DecisionOutput,
pub duration_ms: u64,
pub cost_usd: Decimal,
pub input_tokens: u64,
pub output_tokens: u64,
}Expand description
The result of executing a decision step: the typed output plus accounting.
Fields§
§output: DecisionOutputThe typed answers returned by the provider.
duration_ms: u64Wall-clock duration in milliseconds.
cost_usd: DecimalCost in USD, imputed from input tokens at the Jev rate.
input_tokens: u64Input token count.
output_tokens: u64Output token count (typically zero for System One models).
Trait Implementations§
Source§impl Clone for DecisionExecution
impl Clone for DecisionExecution
Source§fn clone(&self) -> DecisionExecution
fn clone(&self) -> DecisionExecution
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DecisionExecution
impl RefUnwindSafe for DecisionExecution
impl Send for DecisionExecution
impl Sync for DecisionExecution
impl Unpin for DecisionExecution
impl UnsafeUnpin for DecisionExecution
impl UnwindSafe for DecisionExecution
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