pub struct RunStepCompletionUsage {
pub completion_tokens: u64,
pub prompt_tokens: u64,
pub total_tokens: u64,
}
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: u64
Number of completion tokens used over the course of the run step.
prompt_tokens: u64
Number of prompt tokens used over the course of the run step.
total_tokens: u64
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§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<'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§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