Interface: QueryRouterResult
Defined in: packages/agentos/src/query-router/types.ts:197
Final result returned by the QueryRouter after classification, retrieval, and answer generation.
This surface is intentionally provenance-oriented: it includes not only the generated answer and citations, but also the tier path actually exercised and the fallback names that were activated during routing.
Properties
answer
answer:
string
Defined in: packages/agentos/src/query-router/types.ts:199
The generated answer text, grounded in retrieved sources.
classification
classification:
ClassificationResult
Defined in: packages/agentos/src/query-router/types.ts:202
The classification result that determined routing behaviour.
durationMs
durationMs:
number
Defined in: packages/agentos/src/query-router/types.ts:208
Total wall-clock duration of the entire query pipeline in milliseconds.
fallbacksUsed
fallbacksUsed:
string[]
Defined in: packages/agentos/src/query-router/types.ts:221
Names of fallback strategies that were activated during this query. Empty array if no fallbacks were needed.
Example
['keyword-fallback', 'tier-escalation']
sources
sources:
SourceCitation[]
Defined in: packages/agentos/src/query-router/types.ts:205
Citations for the sources used in generating the answer.
tiersUsed
tiersUsed:
QueryTier[]
Defined in: packages/agentos/src/query-router/types.ts:214
Which tiers were actually exercised during this query.
Example
[0] for trivial, [1, 2] for multi-source with fallback