Interface: UnifiedRetrievalResult
Defined in: packages/agentos/src/cognition/rag/unified/types.ts:258
Result returned by the UnifiedRetriever after executing a RetrievalPlan.
Contains the merged, reranked chunks from all queried sources along with diagnostics about which sources contributed and how long each took.
See
UnifiedRetriever.retrieve
Properties
chunks
chunks:
RetrievedChunk[]
Defined in: packages/agentos/src/cognition/rag/unified/types.ts:260
Merged and reranked content chunks, sorted by relevance (highest first).
durationMs
durationMs:
number
Defined in: packages/agentos/src/cognition/rag/unified/types.ts:276
Total wall-clock duration of the retrieval in milliseconds.
memoryCacheHit
memoryCacheHit:
boolean
Defined in: packages/agentos/src/cognition/rag/unified/types.ts:279
Whether a memory cache hit was used (episodic memory shortcut).
plan
plan:
RetrievalPlan
Defined in: packages/agentos/src/cognition/rag/unified/types.ts:270
The plan that was executed to produce this result.
policyDiagnostics?
optionalpolicyDiagnostics:object
Defined in: packages/agentos/src/cognition/rag/unified/types.ts:282
Optional policy-level diagnostics when retrieval was policy-driven.
confidence
confidence:
RetrievalConfidenceSummary
escalations
escalations:
string[]
policy
policy:
ResolvedMemoryRetrievalPolicy
researchSynthesis?
optionalresearchSynthesis:string
Defined in: packages/agentos/src/cognition/rag/unified/types.ts:267
Research synthesis narrative when deep research was performed.
Present only when the plan's deepResearch flag was true and
a deep research callback was available.
sourceDiagnostics
sourceDiagnostics:
SourceDiagnostics
Defined in: packages/agentos/src/cognition/rag/unified/types.ts:273
Per-source diagnostics showing contributions and timing.