# Interface Task

Task to be executed by an agent.

interface Task {
id: string;
description: string;
context: TaskContext;
constraints?: TaskConstraints;
priority?: number;
}

- Defined in packages/nexus-agents/src/core/types/agent.ts:100

##### Index

### Properties

id
description
context
constraints?
priority?

## Properties

### id

id: string

Unique task identifier

- Defined in packages/nexus-agents/src/core/types/agent.ts:102

### description

description: string

Task description

- Defined in packages/nexus-agents/src/core/types/agent.ts:104

### context

context: TaskContext

Task context

- Defined in packages/nexus-agents/src/core/types/agent.ts:106

### `Optional` constraints

constraints?: TaskConstraints

Optional constraints. See TaskConstraints for enforcement status.

- Defined in packages/nexus-agents/src/core/types/agent.ts:108

### `Optional` priority

priority?: number

Priority (higher = more urgent). INFORMATIONAL - Logged but not used for scheduling or execution order.

- Defined in packages/nexus-agents/src/core/types/agent.ts:113