pub struct RetrievalAgentUsage {
pub prompt_tokens: u64,
pub completion_tokens: u64,
pub total_tokens: u64,
pub total_calls: u64,
pub prompt_tokens_details: Option<Value>,
pub completion_tokens_details: Option<Value>,
}Fields§
§prompt_tokens: u64§completion_tokens: u64§total_tokens: u64§total_calls: u64§prompt_tokens_details: Option<Value>§completion_tokens_details: Option<Value>Trait Implementations§
Source§impl Clone for RetrievalAgentUsage
impl Clone for RetrievalAgentUsage
Source§fn clone(&self) -> RetrievalAgentUsage
fn clone(&self) -> RetrievalAgentUsage
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 moreSource§impl Debug for RetrievalAgentUsage
impl Debug for RetrievalAgentUsage
Source§impl Default for RetrievalAgentUsage
impl Default for RetrievalAgentUsage
Source§fn default() -> RetrievalAgentUsage
fn default() -> RetrievalAgentUsage
Returns the “default value” for a type. Read more
Source§impl<'de> NsonDeserialize<'de> for RetrievalAgentUsage
impl<'de> NsonDeserialize<'de> for RetrievalAgentUsage
Source§fn nextdecode_into<__D: FormatDecoder<'de>>(
__d: &mut __D,
__out: &mut DecodeSlot<Self>,
) -> Result<(), __D::Error>
fn nextdecode_into<__D: FormatDecoder<'de>>( __d: &mut __D, __out: &mut DecodeSlot<Self>, ) -> Result<(), __D::Error>
Decode into
out. Read moreSource§fn expecting() -> &'static str
fn expecting() -> &'static str
Human-readable description of the value this type decodes from. Read more
Source§fn nextdecode<D>(
decoder: &mut D,
) -> Result<Self, <D as FormatDecoder<'de>>::Error>where
D: FormatDecoder<'de>,
fn nextdecode<D>(
decoder: &mut D,
) -> Result<Self, <D as FormatDecoder<'de>>::Error>where
D: FormatDecoder<'de>,
Decode and return a value.
Source§impl NsonSchema for RetrievalAgentUsage
impl NsonSchema for RetrievalAgentUsage
Source§const SCHEMA: TypeSchema
const SCHEMA: TypeSchema
The compile-time structural description.
Source§impl NsonSerialize for RetrievalAgentUsage
impl NsonSerialize for RetrievalAgentUsage
Source§fn nextencode<__E: FormatEncoder>(
&self,
__e: &mut __E,
) -> Result<(), __E::Error>
fn nextencode<__E: FormatEncoder>( &self, __e: &mut __E, ) -> Result<(), __E::Error>
Source§impl PartialEq for RetrievalAgentUsage
impl PartialEq for RetrievalAgentUsage
impl StructuralPartialEq for RetrievalAgentUsage
Auto Trait Implementations§
impl Freeze for RetrievalAgentUsage
impl RefUnwindSafe for RetrievalAgentUsage
impl Send for RetrievalAgentUsage
impl Sync for RetrievalAgentUsage
impl Unpin for RetrievalAgentUsage
impl UnsafeUnpin for RetrievalAgentUsage
impl UnwindSafe for RetrievalAgentUsage
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