pub struct EmbedCallEndEvent {
pub runtime_context: Option<JsonValue>,
pub call_id: String,
pub operation_id: &'static str,
pub model: ModelIdentity,
pub value: Option<EmbeddingInput>,
pub embedding: Option<EmbeddingOutput>,
pub usage: EmbeddingUsage,
pub warnings: Vec<Warning>,
pub provider_metadata: Option<ProviderMetadata>,
pub response: EmbeddingResponse,
}Expand description
Event after all chunks and retries of an embedding operation succeed.
Fields§
§runtime_context: Option<JsonValue>Application context, absent only in restricted telemetry copies.
call_id: StringIdentifier shared with the start event.
operation_id: &'static strai.embed or ai.embedMany.
model: ModelIdentityProvider and model identity.
value: Option<EmbeddingInput>Original input; omitted when telemetry does not record inputs.
embedding: Option<EmbeddingOutput>Generated vectors; omitted when telemetry does not record outputs.
usage: EmbeddingUsageAggregated token usage.
warnings: Vec<Warning>Warnings in input chunk order.
provider_metadata: Option<ProviderMetadata>Provider metadata merged in input chunk order.
response: EmbeddingResponseProvider response metadata.
Trait Implementations§
Source§impl Clone for EmbedCallEndEvent
impl Clone for EmbedCallEndEvent
Source§fn clone(&self) -> EmbedCallEndEvent
fn clone(&self) -> EmbedCallEndEvent
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 EmbedCallEndEvent
impl Debug for EmbedCallEndEvent
Source§impl PartialEq for EmbedCallEndEvent
impl PartialEq for EmbedCallEndEvent
impl StructuralPartialEq for EmbedCallEndEvent
Auto Trait Implementations§
impl Freeze for EmbedCallEndEvent
impl RefUnwindSafe for EmbedCallEndEvent
impl Send for EmbedCallEndEvent
impl Sync for EmbedCallEndEvent
impl Unpin for EmbedCallEndEvent
impl UnsafeUnpin for EmbedCallEndEvent
impl UnwindSafe for EmbedCallEndEvent
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