pub struct ContextPackItem {
pub result_id: String,
pub source_scope: String,
pub source_path: Option<String>,
pub source_span: Option<EvidenceSpan>,
pub entities: Vec<ContextEntity>,
pub graph_facts: Vec<ContextGraphFact>,
pub graph_paths: Vec<ContextGraphPath>,
pub code_artifact: Option<CodeGraphArtifact>,
pub retriever_sources: Vec<RetrieverSource>,
pub ranking: Vec<RankingSignal>,
pub rerank: Option<RerankSignal>,
}Expand description
Context-pack item tied to a retrieval hit.
Fields§
§result_id: String§source_scope: String§source_path: Option<String>§source_span: Option<EvidenceSpan>§entities: Vec<ContextEntity>§graph_facts: Vec<ContextGraphFact>§graph_paths: Vec<ContextGraphPath>§code_artifact: Option<CodeGraphArtifact>§retriever_sources: Vec<RetrieverSource>§ranking: Vec<RankingSignal>§rerank: Option<RerankSignal>Trait Implementations§
Source§impl Clone for ContextPackItem
impl Clone for ContextPackItem
Source§fn clone(&self) -> ContextPackItem
fn clone(&self) -> ContextPackItem
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 ContextPackItem
impl Debug for ContextPackItem
Source§impl<'de> Deserialize<'de> for ContextPackItem
impl<'de> Deserialize<'de> for ContextPackItem
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ContextPackItem
impl PartialEq for ContextPackItem
Source§impl Serialize for ContextPackItem
impl Serialize for ContextPackItem
impl StructuralPartialEq for ContextPackItem
Auto Trait Implementations§
impl Freeze for ContextPackItem
impl RefUnwindSafe for ContextPackItem
impl Send for ContextPackItem
impl Sync for ContextPackItem
impl Unpin for ContextPackItem
impl UnsafeUnpin for ContextPackItem
impl UnwindSafe for ContextPackItem
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