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