Skip to content

AcknowledgedAssistantMessage

AcknowledgedAssistantMessage: (args) => AcknowledgedAssistantMessage

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

Constructs an acknowledged assistant-history injection.

Defaults id and timestamp exactly like AssistantInjectionMessage, then validates the complete wire value. Empty or whitespace-only ids and session ids, empty content, and non-finite timestamps throw synchronously. The host echoes the generated or supplied id in either the result or a correlated error. Unlike the legacy constructor, this discriminator opts in to that response.

string

Non-empty assistant text persisted without invoking the LLM.

MessageId

Correlation and deduplication id; generated when omitted.

SessionId

Session whose history receives the assistant entry.

number

Finite event time in milliseconds; defaults to Date.now().

AcknowledgedAssistantMessage