Skip to content

MaelstromResponse

Defined in: packages/protocol/src/lib/response.ts:542

Healed Chart decision whose layout is applied before its Action plan.

readonly executionPlan: readonly ActionExecution[]

Defined in: packages/protocol/src/lib/response.ts:556

Applied after layout; order is preserved only within each target Instance.


readonly layout: GridLayout | TilingLayout

Defined in: packages/protocol/src/lib/response.ts:558

Uses the same mode requested in the Chart context after successful healing.


readonly rationale: string

Defined in: packages/protocol/src/lib/response.ts:554

Engine rationale intended for diagnostics rather than user display.


readonly requestId: MessageId

Defined in: packages/protocol/src/lib/response.ts:546

Echoes the input message ID and matches the enclosing output correlation ID.


readonly type: "maelstrom_response"

Defined in: packages/protocol/src/lib/response.ts:544

Wire discriminator for a Maelstrom Chart response.


readonly optional userMessage?: string

Defined in: packages/protocol/src/lib/response.ts:552

Assistant text intended for display and optional speech output. Absent when the request set skipReply: true and the Planner wrote no reply. The reference Engine never ships an empty string in its place.