# AcknowledgedAssistantMessage
Source: https://docs.maelstrom-ai.co/dev/reference/protocol/variables/acknowledgedassistantmessage/
Documentation revision: 89a8f5e9d10cedcf0b30376d7846113f06f26120
SDK manifests in this build: @maelstrom-co/react@0.2.1, @maelstrom-co/client@0.2.1, @maelstrom-co/connectors@0.2.1, @maelstrom-co/protocol@0.2.1, @maelstrom-co/engine@0.2.1
These docs follow this source revision. Manifest versions do not prove release compatibility; verify the installed package exports before using an API.

> **AcknowledgedAssistantMessage**: (`args`) => [`AcknowledgedAssistantMessage`](https://docs.maelstrom-ai.co/dev/reference/protocol/interfaces/acknowledgedassistantmessage/)

Defined in: [packages/protocol/src/lib/envelope.ts:82](https://github.com/maelstrom-co/maelstrom/blob/89a8f5e9d10cedcf0b30376d7846113f06f26120/packages/protocol/src/lib/envelope.ts#L82)

Constructs an acknowledged assistant-history injection.

Defaults `id` and `timestamp` exactly like [AssistantInjectionMessage](https://docs.maelstrom-ai.co/dev/reference/protocol/variables/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

### args

#### content

`string`

Non-empty assistant text persisted without invoking the LLM.

#### id?

[`MessageId`](https://docs.maelstrom-ai.co/dev/reference/protocol/type-aliases/messageid/)

Correlation and deduplication id; generated when omitted.

#### sessionId

[`SessionId`](https://docs.maelstrom-ai.co/dev/reference/protocol/type-aliases/sessionid/)

Session whose history receives the assistant entry.

#### timestamp?

`number`

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

## Returns

[`AcknowledgedAssistantMessage`](https://docs.maelstrom-ai.co/dev/reference/protocol/interfaces/acknowledgedassistantmessage/)
