---
url: >-
  https://adk.nht.io/api/@nhtio/adk/exceptions/variables/E_INVALID_INITIAL_MESSAGE_VALUE.md
description: >-
  Thrown when a {@link @nhtio/adk!Message} is initialised with a value that
  fails schema validation.
---

# Variable: E\_INVALID\_INITIAL\_MESSAGE\_VALUE

```ts
const E_INVALID_INITIAL_MESSAGE_VALUE: CreatedException<[]>;
```

Defined in: [lib/exceptions/runtime.ts:182](https://github.com/NHTIO/ADK/blob/v1.20260605.0/src/lib/exceptions/runtime.ts#L182)

Thrown when a [@nhtio/adk!Message](../../common/classes/Message.md) is initialised with a value that fails schema validation.

## Remarks

`Message` requires `id`, `role` (`user` or `assistant`), `content`, `createdAt`, and
`updatedAt` to be present and of the correct type. Passing an incomplete or incorrectly
typed object signals a programming error in the caller, not a recoverable runtime condition.
