pub struct RecallCandidate {
pub id: String,
pub summary: String,
pub raw_score: UnitInterval,
pub final_score: UnitInterval,
pub relevance: RelevanceLevel,
pub source_type: CandidateSourceType,
pub provenance: CandidateProvenance,
pub confidence: UnitInterval,
}Expand description
A candidate returned by recall.
Fields§
§id: StringUnique identifier for this candidate
summary: StringSummary text of the candidate
raw_score: UnitIntervalRaw similarity score from vector search
final_score: UnitIntervalFinal normalized score
relevance: RelevanceLevelRelevance level
source_type: CandidateSourceTypeSource type (failure, success, runbook, etc.)
provenance: CandidateProvenanceProvenance information
confidence: UnitIntervalPer-candidate confidence in [0.0, 1.0]. Reflects how much weight a
downstream consumer (e.g. PlanningPriorAgent) should give this entry
when adjusting priors. Defaults to 0.5 for backends that do not yet
emit calibrated confidence.
Trait Implementations§
Source§impl Clone for RecallCandidate
impl Clone for RecallCandidate
Source§fn clone(&self) -> RecallCandidate
fn clone(&self) -> RecallCandidate
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 RecallCandidate
impl Debug for RecallCandidate
Source§impl<'de> Deserialize<'de> for RecallCandidate
impl<'de> Deserialize<'de> for RecallCandidate
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RecallCandidate, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RecallCandidate, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for RecallCandidate
impl Serialize for RecallCandidate
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for RecallCandidate
impl RefUnwindSafe for RecallCandidate
impl Send for RecallCandidate
impl Sync for RecallCandidate
impl Unpin for RecallCandidate
impl UnsafeUnpin for RecallCandidate
impl UnwindSafe for RecallCandidate
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