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