Skip to content

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 ​

PropertyTypeDescriptionDefined in
contentunknownMessage payloadpackages/core/src/engine/execution-types.ts:55
idstringUnique 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
timestampnumberWhen the message was received (auto-generated)packages/core/src/engine/execution-types.ts:60
typestringUser-defined message type (e.g., 'user_feedback', 'interrupt', 'tool_response')packages/core/src/engine/execution-types.ts:50

Released under the MIT License.