pub struct AgentRetrievalResult {Show 16 fields
pub metadata: ApiMetadata,
pub runtime_identity: RuntimeIdentity,
pub source_scope: Option<String>,
pub freshness: String,
pub retrieval_mode: RetrievalMode,
pub context_pack: RetrievedContextPack,
pub results: Vec<RetrievalHit>,
pub fusion: FusionDiagnostics,
pub rerank: RerankDiagnostics,
pub backend_statuses: Vec<RetrievalBackendStatus>,
pub indexes: Vec<IndexStatus>,
pub index_cursors: Vec<IndexCursor>,
pub index_refresh: IndexRefreshDiagnostics,
pub degraded_reason: Option<String>,
pub truncated: bool,
pub budget_used: AgentBudgetUsed,
}Expand description
Canonical retrieval result shared by MCP and future agent protocols.
Fields§
§metadata: ApiMetadata§runtime_identity: RuntimeIdentity§source_scope: Option<String>§freshness: String§retrieval_mode: RetrievalMode§context_pack: RetrievedContextPack§results: Vec<RetrievalHit>§fusion: FusionDiagnostics§rerank: RerankDiagnostics§backend_statuses: Vec<RetrievalBackendStatus>§indexes: Vec<IndexStatus>§index_cursors: Vec<IndexCursor>§index_refresh: IndexRefreshDiagnostics§degraded_reason: Option<String>§truncated: bool§budget_used: AgentBudgetUsedImplementations§
Source§impl AgentRetrievalResult
impl AgentRetrievalResult
Sourcepub fn from_retrieval(
response: HybridRetrievalResponse,
identity: RuntimeIdentity,
max_context_bytes: usize,
elapsed_ms: u64,
) -> Self
pub fn from_retrieval( response: HybridRetrievalResponse, identity: RuntimeIdentity, max_context_bytes: usize, elapsed_ms: u64, ) -> Self
Builds the canonical agent result and applies the context byte budget.
Trait Implementations§
Source§impl Clone for AgentRetrievalResult
impl Clone for AgentRetrievalResult
Source§fn clone(&self) -> AgentRetrievalResult
fn clone(&self) -> AgentRetrievalResult
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 AgentRetrievalResult
impl Debug for AgentRetrievalResult
Source§impl<'de> Deserialize<'de> for AgentRetrievalResult
impl<'de> Deserialize<'de> for AgentRetrievalResult
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 AgentRetrievalResult
impl PartialEq for AgentRetrievalResult
Source§impl Serialize for AgentRetrievalResult
impl Serialize for AgentRetrievalResult
impl StructuralPartialEq for AgentRetrievalResult
Auto Trait Implementations§
impl Freeze for AgentRetrievalResult
impl RefUnwindSafe for AgentRetrievalResult
impl Send for AgentRetrievalResult
impl Sync for AgentRetrievalResult
impl Unpin for AgentRetrievalResult
impl UnsafeUnpin for AgentRetrievalResult
impl UnwindSafe for AgentRetrievalResult
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