pub struct RunStepCompletionUsage {
pub completion_tokens: i64,
pub prompt_tokens: i64,
pub total_tokens: i64,
}
Expand description
Usage statistics related to the run step.
Fields§
§completion_tokens: i64
Number of completion tokens used over the course of the run step.
prompt_tokens: i64
Number of prompt tokens used over the course of the run step.
total_tokens: i64
Total number of tokens used (prompt + completion).
Trait Implementations§
Source§impl Clone for RunStepCompletionUsage
impl Clone for RunStepCompletionUsage
Source§fn clone(&self) -> RunStepCompletionUsage
fn clone(&self) -> RunStepCompletionUsage
Returns a copy 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 RunStepCompletionUsage
impl Debug for RunStepCompletionUsage
Source§impl Default for RunStepCompletionUsage
impl Default for RunStepCompletionUsage
Source§fn default() -> RunStepCompletionUsage
fn default() -> RunStepCompletionUsage
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RunStepCompletionUsage
impl RefUnwindSafe for RunStepCompletionUsage
impl Send for RunStepCompletionUsage
impl Sync for RunStepCompletionUsage
impl Unpin for RunStepCompletionUsage
impl UnwindSafe for RunStepCompletionUsage
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