Type alias UnifiedRetrieverEvent
UnifiedRetrieverEvent: { type: "unified:plan-start"; plan: RetrievalPlan; timestamp: number; } | { type: "unified:memory-cache-hit"; query: string; cacheAge: number; timestamp: number; } | { type: "unified:source-complete"; source: string; chunkCount: number; durationMs: number; timestamp: number; } | { type: "unified:source-error"; source: string; error: string; timestamp: number; } | { type: "unified:merge-complete"; totalChunks: number; timestamp: number; } | { type: "unified:rerank-complete"; inputCount: number; outputCount: number; durationMs: number; timestamp: number; } | { type: "unified:decompose"; subQueries: string[]; timestamp: number; } | { type: "unified:memory-feedback"; tracesStored: number; timestamp: number; } | { type: "unified:complete"; result: UnifiedRetrievalResult; timestamp: number; } Type declaration
type: "unified:plan-start"
timestamp: number
Type declaration
type: "unified:memory-cache-hit"
query: string
cacheAge: number
timestamp: number
Type declaration
type: "unified:source-complete"
source: string
chunkCount: number
durationMs: number
timestamp: number
Type declaration
type: "unified:source-error"
source: string
error: string
timestamp: number
Type declaration
type: "unified:merge-complete"
totalChunks: number
timestamp: number
Type declaration
type: "unified:rerank-complete"
inputCount: number
outputCount: number
durationMs: number
timestamp: number
Type declaration
type: "unified:decompose"
subQueries: string[]
timestamp: number
Type declaration
type: "unified:memory-feedback"
tracesStored: number
timestamp: number
Type declaration
type: "unified:complete"
timestamp: number
Events emitted by the UnifiedRetriever during retrieval.
Follows the same discriminated-union pattern as QueryRouterEventUnion.