pub struct EmbedCallStartEvent {
pub runtime_context: Option<JsonValue>,
pub call_id: String,
pub operation_id: &'static str,
pub model: ModelIdentity,
pub value: Option<EmbeddingInput>,
pub max_retries: u32,
pub headers: Headers,
pub provider_options: ProviderOptions,
}Expand description
Event before any provider attempt of an embedding operation.
Fields§
§runtime_context: Option<JsonValue>Application context, absent only in restricted telemetry copies.
call_id: StringIdentifier shared by the operation and its model attempts.
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.
max_retries: u32Maximum retries for each provider call.
headers: HeadersRequest headers, including the core User-Agent suffix.
provider_options: ProviderOptionsProvider-specific options.
Trait Implementations§
Source§impl Clone for EmbedCallStartEvent
impl Clone for EmbedCallStartEvent
Source§fn clone(&self) -> EmbedCallStartEvent
fn clone(&self) -> EmbedCallStartEvent
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 EmbedCallStartEvent
impl Debug for EmbedCallStartEvent
Source§impl PartialEq for EmbedCallStartEvent
impl PartialEq for EmbedCallStartEvent
impl StructuralPartialEq for EmbedCallStartEvent
Auto Trait Implementations§
impl Freeze for EmbedCallStartEvent
impl RefUnwindSafe for EmbedCallStartEvent
impl Send for EmbedCallStartEvent
impl Sync for EmbedCallStartEvent
impl Unpin for EmbedCallStartEvent
impl UnsafeUnpin for EmbedCallStartEvent
impl UnwindSafe for EmbedCallStartEvent
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