Skip to main content

@maiar-ai/core / AgentTask

Interface: AgentTask

Defined in: packages/core/src/runtime/pipeline/types.ts:32

Defines a unit of work that the agent will complete and stores the current context chain state, as well as related information as the task is processed.

Properties​

trigger​

trigger: Context

Defined in: packages/core/src/runtime/pipeline/types.ts:33

The initial trigger context data for the task


contextChain​

contextChain: Context[]

Defined in: packages/core/src/runtime/pipeline/types.ts:34

The context chain that will evolve and grow as the task is processed


space​

space: Space

Defined in: packages/core/src/runtime/pipeline/types.ts:35

The space that the task is being processed in, as well as related space queries to find relevant context in previous tasks


metadata​

metadata: Record<string, unknown>

Defined in: packages/core/src/runtime/pipeline/types.ts:36

Additional metadata for the task