Skip to content

AssistantMessageResultMessage

Defined in: packages/protocol/src/lib/envelope.ts:287

Engine acknowledgement that an assistant-message injection finished.

requestId echoes the originating AcknowledgedAssistantMessage id so clients can correlate the result to a waiter. Legacy AssistantInjectionMessage requests remain fire-and-forget and do not receive this frame. outcome is load-bearing: 'inserted' means the engine stored a new history entry; 'deduped' means an entry with that id already existed and nothing was appended. Greeting and other idempotent injectors branch on that distinction before running side effects such as speech.

readonly outcome: "inserted" | "deduped"

Defined in: packages/protocol/src/lib/envelope.ts:295

Whether history grew or already contained the request id.


readonly requestId: MessageId

Defined in: packages/protocol/src/lib/envelope.ts:291

Echoes the acknowledged request id.


readonly sessionId: SessionId

Defined in: packages/protocol/src/lib/envelope.ts:293

Echoes the session whose history was targeted.


readonly type: "engine.assistant_message.result"

Defined in: packages/protocol/src/lib/envelope.ts:289

Identifies the correlated assistant-injection result frame.