# Interface TokenCountResult

Token counting result with metadata.

interface TokenCountResult {
count: number;
cached: boolean;
provider: TokenCounterProvider | "estimate";
model?: string;
}

- Defined in packages/nexus-agents/src/context/token-counter-types.ts:66

##### Index

### Properties

count
cached
provider
model?

## Properties

### count

count: number

Number of tokens

- Defined in packages/nexus-agents/src/context/token-counter-types.ts:68

### cached

cached: boolean

Whether the result was from cache

- Defined in packages/nexus-agents/src/context/token-counter-types.ts:70

### provider

provider: TokenCounterProvider | "estimate"

Provider used for counting

- Defined in packages/nexus-agents/src/context/token-counter-types.ts:72

### `Optional` model

model?: string

Model used (if applicable)

- Defined in packages/nexus-agents/src/context/token-counter-types.ts:74