Skip to content

Documentation / @agentick/shared / ModelMessage

Interface: ModelMessage

Defined in: messages.ts:94

Base message interface for all message types.

Messages are the fundamental unit of conversation in Agentick. Each message has a role indicating its source and an array of content blocks.

See

UserMessage, AssistantMessage, SystemMessage

Extends

Properties

content

readonly content: ContentBlock[]

Defined in: messages.ts:85

Array of content blocks

Inherited from

Message.content


createdAt?

readonly optional createdAt: string | Date

Defined in: messages.ts:89

When the message was created

Inherited from

Message.createdAt


id?

readonly optional id: string

Defined in: messages.ts:81

Unique message identifier

Inherited from

Message.id


metadata?

readonly optional metadata: MessageMetadata

Defined in: messages.ts:87

Additional metadata

Inherited from

Message.metadata


role

readonly role: MessageRoles

Defined in: messages.ts:83

Message role (user, assistant, system, tool, event)

Inherited from

Message.role


updatedAt?

readonly optional updatedAt: string | Date

Defined in: messages.ts:91

When the message was last updated

Inherited from

Message.updatedAt

Released under the ISC License.