pub struct RerankCallStartEvent {
pub runtime_context: Option<JsonValue>,
pub call_id: String,
pub operation_id: &'static str,
pub model: ModelIdentity,
pub documents: Option<Vec<RerankDocument>>,
pub query: Option<String>,
pub top_n: Option<usize>,
pub max_retries: u32,
pub headers: Headers,
pub provider_options: ProviderOptions,
}Expand description
Event before any provider attempt of a reranking 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.rerank.
model: ModelIdentityProvider and model identity.
documents: Option<Vec<RerankDocument>>Original documents; omitted when telemetry does not record inputs.
query: Option<String>Original query; omitted when telemetry does not record inputs.
top_n: Option<usize>Requested maximum number of ranked documents.
max_retries: u32Maximum retries for the provider call.
headers: HeadersCaller-provided request headers.
provider_options: ProviderOptionsProvider-specific options.
Trait Implementations§
Source§impl Clone for RerankCallStartEvent
impl Clone for RerankCallStartEvent
Source§fn clone(&self) -> RerankCallStartEvent
fn clone(&self) -> RerankCallStartEvent
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 RerankCallStartEvent
impl Debug for RerankCallStartEvent
Source§impl PartialEq for RerankCallStartEvent
impl PartialEq for RerankCallStartEvent
impl StructuralPartialEq for RerankCallStartEvent
Auto Trait Implementations§
impl Freeze for RerankCallStartEvent
impl RefUnwindSafe for RerankCallStartEvent
impl Send for RerankCallStartEvent
impl Sync for RerankCallStartEvent
impl Unpin for RerankCallStartEvent
impl UnsafeUnpin for RerankCallStartEvent
impl UnwindSafe for RerankCallStartEvent
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