| Field | Type | Description |
|---|---|---|
id | ID! | |
conversationId | ID! | |
parentId | ID | |
seq | Int! | |
role | String! | |
createdBy | ID | |
senderType | String! | Sender kind: user, webhook, service_account, integration, agent or system. |
senderId | ID | Identifier of the sender: the participant or agent for an agent message, otherwise the author. |
senderDisplayName | String | |
parts | JSON! | |
model | String | |
runUsage | MessageRunUsage | Token usage and cost of the whole run that produced an assistant message, or null when none is recorded. |
tokenUsage | JSON | |
finishReason | String | |
costCredits | String | |
status | String! | |
editedAt | String | |
idempotencyKey | String | |
metadata | JSON | |
createdAt | String! | |
updatedAt | String |