Skip to main content

Type Alias: QueryTier

QueryTier = 0 | 1 | 2 | 3

Defined in: packages/agentos/src/query-router/types.ts:38

Complexity tier assigned to an incoming query.

  • 0Trivial: Answered from conversation context or general knowledge (e.g., "What is TypeScript?"). No retrieval needed.
  • 1Simple lookup: Single-source retrieval sufficient (e.g., "What port does the API run on?"). Vector search only.
  • 2Multi-source: Requires combining information from multiple chunks or graph traversal (e.g., "How does auth flow from frontend to backend?").
  • 3Research: Deep investigation across the entire corpus, possibly with iterative refinement (e.g., "Compare all caching strategies used in this codebase and recommend improvements.").