Interface: UnifiedRetrievalResult
Defined in: packages/agentos/src/rag/unified/types.ts:251
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/rag/unified/types.ts:253
Merged and reranked content chunks, sorted by relevance (highest first).
durationMs
durationMs:
number
Defined in: packages/agentos/src/rag/unified/types.ts:269
Total wall-clock duration of the retrieval in milliseconds.
memoryCacheHit
memoryCacheHit:
boolean
Defined in: packages/agentos/src/rag/unified/types.ts:272
Whether a memory cache hit was used (episodic memory shortcut).
plan
plan:
RetrievalPlan
Defined in: packages/agentos/src/rag/unified/types.ts:263
The plan that was executed to produce this result.
researchSynthesis?
optionalresearchSynthesis:string
Defined in: packages/agentos/src/rag/unified/types.ts:260
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/rag/unified/types.ts:266
Per-source diagnostics showing contributions and timing.