pub struct RunStepCompletionUsage {
pub completion_tokens: i64,
pub prompt_tokens: i64,
pub total_tokens: i64,
}
Expand description
Usage statistics related to the run step. This value will be null
while the run step’s status is in_progress
.
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).
Implementations§
Source§impl RunStepCompletionUsage
impl RunStepCompletionUsage
Sourcepub fn builder() -> RunStepCompletionUsageBuilder<((), (), ())>
pub fn builder() -> RunStepCompletionUsageBuilder<((), (), ())>
Create a builder for building RunStepCompletionUsage
.
On the builder, call .completion_tokens(...)
, .prompt_tokens(...)
, .total_tokens(...)
to set the values of the fields.
Finally, call .build()
to create the instance of RunStepCompletionUsage
.
Trait Implementations§
Source§impl Clone for RunStepCompletionUsage
impl Clone for RunStepCompletionUsage
Source§fn clone(&self) -> RunStepCompletionUsage
fn clone(&self) -> RunStepCompletionUsage
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RunStepCompletionUsage
impl Debug for RunStepCompletionUsage
Source§impl<'de> Deserialize<'de> for RunStepCompletionUsage
impl<'de> Deserialize<'de> for RunStepCompletionUsage
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 RunStepCompletionUsage
impl PartialEq for RunStepCompletionUsage
Source§fn eq(&self, other: &RunStepCompletionUsage) -> bool
fn eq(&self, other: &RunStepCompletionUsage) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl Serialize for RunStepCompletionUsage
impl Serialize for RunStepCompletionUsage
impl Copy for RunStepCompletionUsage
impl StructuralPartialEq for RunStepCompletionUsage
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