Documentation / @agentick/client / Message
Interface: Message
Defined in: shared/src/messages.ts:79
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
Properties
content
readonlycontent:ContentBlock[]
Defined in: shared/src/messages.ts:85
Array of content blocks
createdAt?
readonlyoptionalcreatedAt:string|Date
Defined in: shared/src/messages.ts:89
When the message was created
id?
readonlyoptionalid:string
Defined in: shared/src/messages.ts:81
Unique message identifier
metadata?
readonlyoptionalmetadata:MessageMetadata
Defined in: shared/src/messages.ts:87
Additional metadata
role
readonlyrole:MessageRoles
Defined in: shared/src/messages.ts:83
Message role (user, assistant, system, tool, event)
updatedAt?
readonlyoptionalupdatedAt:string|Date
Defined in: shared/src/messages.ts:91
When the message was last updated