AIDK API Reference / aidk/engine / ExecutionMessage
Interface: ExecutionMessage ​
Defined in: packages/core/src/engine/execution-types.ts:41
Execution message for communication with running executions.
Messages can be sent to a running execution via:
- CompileSession.sendMessage() - Direct programmatic injection
- ExecutionHandle.send() - Via handle reference
- Channel events with type='message' - From client
Messages are delivered immediately to component onMessage hooks, then queued for availability in TickState.queuedMessages.
Properties ​
| Property | Type | Description | Defined in |
|---|---|---|---|
content | unknown | Message payload | packages/core/src/engine/execution-types.ts:55 |
id | string | Unique message ID (auto-generated if not provided) | packages/core/src/engine/execution-types.ts:45 |
metadata? | Record<string, any> | Optional metadata (source, channel, etc.) | packages/core/src/engine/execution-types.ts:65 |
timestamp | number | When the message was received (auto-generated) | packages/core/src/engine/execution-types.ts:60 |
type | string | User-defined message type (e.g., 'user_feedback', 'interrupt', 'tool_response') | packages/core/src/engine/execution-types.ts:50 |