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.
Parameters
Section titled “Parameters”content
Section titled “content”string
Non-empty assistant text persisted without invoking the LLM.
Correlation and deduplication id; generated when omitted.
sessionId
Section titled “sessionId”Session whose history receives the assistant entry.
timestamp?
Section titled “timestamp?”number
Finite event time in milliseconds; defaults to Date.now().