Skip to main content

@maiar-ai/core / Context

Interface: Context

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

Context item that makes up the context chain and the standard IO of the agent when communicating between plugins

Properties​

id​

id: string

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

Unique identifier for this context item


pluginId​

pluginId: string

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

Which plugin created this context


content​

content: string

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

Serialized content for model consumption


timestamp​

timestamp: number

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

When this context was added


helpfulInstruction?​

optional helpfulInstruction: string

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

Instructions for how to use this context item's data


metadata?​

optional metadata: Record<string, unknown>

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

Additional metadata for the context item