Interface: ClassificationResult
Defined in: packages/agentos/src/query-router/types.ts:48
Result of classifying a user query into a complexity tier. Produced by the QueryClassifier.
Properties
confidence
confidence:
number
Defined in: packages/agentos/src/query-router/types.ts:59
Confidence score for the classification (0 to 1). A score below the configured threshold may trigger fallback behaviour.
internalKnowledgeSufficient
internalKnowledgeSufficient:
boolean
Defined in: packages/agentos/src/query-router/types.ts:72
Whether the agent's internal knowledge is likely sufficient to answer
without any retrieval. When true and tier is 0, the router may skip
retrieval entirely.
reasoning
reasoning:
string
Defined in: packages/agentos/src/query-router/types.ts:65
Human-readable reasoning explaining why this tier was chosen. Useful for debugging and audit trails.
suggestedSources
suggestedSources: (
"vector"|"graph"|"research")[]
Defined in: packages/agentos/src/query-router/types.ts:78
Suggested source types to consult for this query.
Example
['vector', 'graph']
tier
tier:
QueryTier
Defined in: packages/agentos/src/query-router/types.ts:53
The assigned complexity tier.
See
QueryTier
toolsNeeded
toolsNeeded:
string[]
Defined in: packages/agentos/src/query-router/types.ts:84
Tool names the classifier believes are needed to answer this query. Empty array if no tools are required.