# Interface ContextItem

A piece of content in the context with its metadata.

interface ContextItem {
id: string;
content: string;
priority: ContentPriority;
category: "system" | "task" | "active";
tokenCount: number;
addedAt: number;
metadata?: Record<string, unknown>;
}

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

##### Index

### Properties

id
content
priority
category
tokenCount
addedAt
metadata?

## Properties

### id

id: string

Unique identifier for this item

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

### content

content: string

The content (message, text, etc.)

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

### priority

priority: ContentPriority

Priority level for retention

- Defined in packages/nexus-agents/src/agents/context-manager-types.ts:76

### category

category: "system" | "task" | "active"

Budget category this item belongs to

- Defined in packages/nexus-agents/src/agents/context-manager-types.ts:78

### tokenCount

tokenCount: number

Token count for this item

- Defined in packages/nexus-agents/src/agents/context-manager-types.ts:80

### addedAt

addedAt: number

When this item was added

- Defined in packages/nexus-agents/src/agents/context-manager-types.ts:82

### `Optional` metadata

metadata?: Record<string, unknown>

Optional metadata

- Defined in packages/nexus-agents/src/agents/context-manager-types.ts:84