@elizaos/core v1.0.0-beta.51 / Task
Interface: Task
Represents a task to be performed, often in the background or at a later time.
Tasks are managed by the AgentRuntime
and processed by registered TaskWorker
s.
They can be associated with a room, world, and tagged for categorization and retrieval.
The IDatabaseAdapter
handles persistence of task data.
Properties​
id?​
optional
id: `${string}-${string}-${string}-${string}-${string}`
Optional. A Universally Unique Identifier for the task. Generated if not provided.
Defined in​
packages/core/src/types.ts:1566
name​
name:
string
The name of the task, which should correspond to a registered TaskWorker.name
.
Defined in​
packages/core/src/types.ts:1568
updatedAt?​
optional
updatedAt:number
Optional. Timestamp of the last update to this task.
Defined in​
packages/core/src/types.ts:1570
metadata?​
optional
metadata:TaskMetadata
Optional. Metadata associated with the task, conforming to TaskMetadata
.
Defined in​
packages/core/src/types.ts:1572
description​
description:
string
A human-readable description of what the task does or its purpose.
Defined in​
packages/core/src/types.ts:1574
roomId?​
optional
roomId: `${string}-${string}-${string}-${string}-${string}`
Optional. The UUID of the room this task is associated with.
Defined in​
packages/core/src/types.ts:1576
worldId?​
optional
worldId: `${string}-${string}-${string}-${string}-${string}`
Optional. The UUID of the world this task is associated with.