# Interface QueryFeatures

Features extracted from a query for preference prediction.

interface QueryFeatures {
tokenCount: number;
complexity: number;
requiresReasoning: boolean;
requiresCode: boolean;
requiresCreativity: boolean;
hasAmbiguity: boolean;
domain: string;
keywordSignature: string;
}

- Defined in packages/nexus-agents/src/cli-adapters/preference-router-types.ts:39

##### Index

### Properties

tokenCount
complexity
requiresReasoning
requiresCode
requiresCreativity
hasAmbiguity
domain
keywordSignature

## Properties

### `Readonly` tokenCount

tokenCount: number

Query length in tokens (estimated)

- Defined in packages/nexus-agents/src/cli-adapters/preference-router-types.ts:41

### `Readonly` complexity

complexity: number

Complexity score (0-1)

- Defined in packages/nexus-agents/src/cli-adapters/preference-router-types.ts:43

### `Readonly` requiresReasoning

requiresReasoning: boolean

Whether query requires reasoning

- Defined in packages/nexus-agents/src/cli-adapters/preference-router-types.ts:45

### `Readonly` requiresCode

requiresCode: boolean

Whether query requires code generation

- Defined in packages/nexus-agents/src/cli-adapters/preference-router-types.ts:47

### `Readonly` requiresCreativity

requiresCreativity: boolean

Whether query requires creativity

- Defined in packages/nexus-agents/src/cli-adapters/preference-router-types.ts:49

### `Readonly` hasAmbiguity

hasAmbiguity: boolean

Whether query has ambiguity

- Defined in packages/nexus-agents/src/cli-adapters/preference-router-types.ts:51

### `Readonly` domain

domain: string

Domain category

- Defined in packages/nexus-agents/src/cli-adapters/preference-router-types.ts:53

### `Readonly` keywordSignature

keywordSignature: string

Keywords present (hashed for privacy)

- Defined in packages/nexus-agents/src/cli-adapters/preference-router-types.ts:55