pub struct EmbeddingCallUsage {
pub model: String,
pub provider: Option<String>,
pub total_tokens: u32,
pub actual_cost_usd: Option<f64>,
}Expand description
Usage from a single embedding call made while serving a retrieval query.
Retrieval embeds the query once per bound index (indexes may use different embedding models), so a search reports one entry per call. The caller meters these — the retrieval seam itself has no event emitter (EVE-894).
Fields§
§model: StringProvider-side embedding model id (e.g. text-embedding-3-small).
provider: Option<String>Provider that served the call, when known.
total_tokens: u32Total tokens the provider billed for this call.
actual_cost_usd: Option<f64>Provider-reported cost in USD, when the provider returns one.
Trait Implementations§
Source§impl Clone for EmbeddingCallUsage
impl Clone for EmbeddingCallUsage
Source§fn clone(&self) -> EmbeddingCallUsage
fn clone(&self) -> EmbeddingCallUsage
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 EmbeddingCallUsage
impl Debug for EmbeddingCallUsage
Source§impl PartialEq for EmbeddingCallUsage
impl PartialEq for EmbeddingCallUsage
impl StructuralPartialEq for EmbeddingCallUsage
Auto Trait Implementations§
impl Freeze for EmbeddingCallUsage
impl RefUnwindSafe for EmbeddingCallUsage
impl Send for EmbeddingCallUsage
impl Sync for EmbeddingCallUsage
impl Unpin for EmbeddingCallUsage
impl UnsafeUnpin for EmbeddingCallUsage
impl UnwindSafe for EmbeddingCallUsage
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