pub struct RerankExecutedPayload {
pub served_by_profile_id: Option<String>,
pub model_id: Id128,
pub candidates: Vec<Id128>,
pub reranked: Vec<(Id128, Vec<(String, f32)>)>,
pub final_scores: Vec<(Id128, f32)>,
pub latency_us: u64,
pub hook_applied: bool,
pub hook_target_match: bool,
}Expand description
Payload for a rerank pass event, recording per-candidate scores.
All score values (reranked section scores, final_scores) must be finite.
When the serde feature is enabled, deserialization rejects non-finite scores.
Fields§
§served_by_profile_id: Option<String>Brain profile that served this rerank, if any.
model_id: Id128Model used for reranking.
candidates: Vec<Id128>Candidate IDs in input order.
reranked: Vec<(Id128, Vec<(String, f32)>)>Per-candidate named sub-scores from the reranker.
final_scores: Vec<(Id128, f32)>Final aggregated score per candidate.
latency_us: u64Wall-clock latency of the rerank operation in microseconds.
hook_applied: boolWhether a brain hook was applied during this rerank.
hook_target_match: boolWhether the hook matched the intended target.
Implementations§
Trait Implementations§
Source§impl Clone for RerankExecutedPayload
impl Clone for RerankExecutedPayload
Source§fn clone(&self) -> RerankExecutedPayload
fn clone(&self) -> RerankExecutedPayload
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 RerankExecutedPayload
impl Debug for RerankExecutedPayload
Source§impl PartialEq for RerankExecutedPayload
impl PartialEq for RerankExecutedPayload
Source§fn eq(&self, other: &RerankExecutedPayload) -> bool
fn eq(&self, other: &RerankExecutedPayload) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RerankExecutedPayload
Auto Trait Implementations§
impl Freeze for RerankExecutedPayload
impl RefUnwindSafe for RerankExecutedPayload
impl Send for RerankExecutedPayload
impl Sync for RerankExecutedPayload
impl Unpin for RerankExecutedPayload
impl UnsafeUnpin for RerankExecutedPayload
impl UnwindSafe for RerankExecutedPayload
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