Skip to main content

Type Alias: UnifiedRetrieverEvent

UnifiedRetrieverEvent = { plan: RetrievalPlan; timestamp: number; type: "unified:plan-start"; } | { cacheAge: number; query: string; timestamp: number; type: "unified:memory-cache-hit"; } | { chunkCount: number; durationMs: number; source: string; timestamp: number; type: "unified:source-complete"; } | { error: string; source: string; timestamp: number; type: "unified:source-error"; } | { timestamp: number; totalChunks: number; type: "unified:merge-complete"; } | { durationMs: number; inputCount: number; outputCount: number; timestamp: number; type: "unified:rerank-complete"; } | { subQueries: string[]; timestamp: number; type: "unified:decompose"; } | { timestamp: number; tracesStored: number; type: "unified:memory-feedback"; } | { result: UnifiedRetrievalResult; timestamp: number; type: "unified:complete"; }

Defined in: packages/agentos/src/rag/unified/types.ts:314

Events emitted by the UnifiedRetriever during retrieval.

Follows the same discriminated-union pattern as QueryRouterEventUnion.

See

UnifiedRetriever