cmind/conversations/v1/types.proto
Package: cmind.conversations.v1
Enums
Role
| Value | Number | Description |
|---|
ROLE_UNSPECIFIED | 0 | |
ROLE_USER | 1 | |
ROLE_ASSISTANT | 2 | |
ROLE_SYSTEM | 3 | |
ROLE_DEVELOPER | 4 | |
ROLE_TOOL | 5 | |
ItemStatus
| Value | Number | Description |
|---|
ITEM_STATUS_UNSPECIFIED | 0 | |
ITEM_STATUS_IN_PROGRESS | 1 | |
ITEM_STATUS_COMPLETED | 2 | |
ITEM_STATUS_INCOMPLETE | 3 | |
SortOrder
| Value | Number | Description |
|---|
SORT_ORDER_UNSPECIFIED | 0 | |
SORT_ORDER_ASC | 1 | |
SORT_ORDER_DESC | 2 | |
Messages
Conversation
| Field | Type | Number | Description |
|---|
id | string | 1 | |
tenantId | string | 2 | |
createdAt | int64 | 3 | Unix timestamp seconds |
metadata | map<string, string> | 4 | |
createdBy | string | 5 | user ID from auth token |
updatedAt | int64 | 6 | Unix timestamp seconds; last activity (item append or metadata update) |
DeletedConversation
| Field | Type | Number | Description |
|---|
id | string | 1 | |
deleted | bool | 2 | |
InputTextContent
| Field | Type | Number | Description |
|---|
text | string | 1 | |
OutputTextContent
| Field | Type | Number | Description |
|---|
text | string | 1 | |
InputImageContent
| Field | Type | Number | Description |
|---|
detail | string | 1 | "auto", "low", "high" |
fileId | string | 2 | |
imageUrl | string | 3 | |
Oneof source: one of fileId, imageUrl
InputFileContent
| Field | Type | Number | Description |
|---|
fileId | string | 1 | |
fileUrl | string | 2 | |
fileData | bytes | 3 | |
filename | string | 4 | |
Oneof source: one of fileId, fileUrl, fileData
RefusalContent
| Field | Type | Number | Description |
|---|
refusal | string | 1 | |
ContentPart
| Field | Type | Number | Description |
|---|
inputText | InputTextContent | 1 | |
outputText | OutputTextContent | 2 | |
inputImage | InputImageContent | 3 | |
inputFile | InputFileContent | 4 | |
refusal | RefusalContent | 5 | |
Oneof part: one of inputText, outputText, inputImage, inputFile, refusal
MessageItem
| Field | Type | Number | Description |
|---|
role | Role | 1 | |
content | repeated ContentPart | 2 | |
status | ItemStatus | 3 | |
modelId | string | 4 | model that was asked (user items) or responded (assistant items) |
ReasoningSummaryPart
| Field | Type | Number | Description |
|---|
text | string | 1 | |
ReasoningTextPart
| Field | Type | Number | Description |
|---|
text | string | 1 | |
ReasoningItem
| Field | Type | Number | Description |
|---|
summary | repeated ReasoningSummaryPart | 1 | |
encryptedContent | string | 2 | |
status | ItemStatus | 3 | |
openaiItemId | string | 4 | |
content | repeated ReasoningTextPart | 5 | |
modelId | string | 6 | |
FunctionCallItem
| Field | Type | Number | Description |
|---|
openaiItemId | string | 1 | |
callId | string | 2 | |
name | string | 3 | |
arguments | string | 4 | |
status | ItemStatus | 5 | |
modelId | string | 6 | |
FunctionCallOutputParts
| Field | Type | Number | Description |
|---|
content | repeated ContentPart | 1 | |
FunctionCallOutputItem
| Field | Type | Number | Description |
|---|
openaiItemId | string | 1 | |
callId | string | 2 | |
output | string | 3 | |
content | FunctionCallOutputParts | 4 | |
status | ItemStatus | 5 | |
modelId | string | 6 | |
Oneof result: one of output, content
ConversationItem
| Field | Type | Number | Description |
|---|
id | string | 1 | |
message | MessageItem | 2 | |
reasoning | ReasoningItem | 3 | |
functionCall | FunctionCallItem | 4 | |
functionCallOutput | FunctionCallOutputItem | 5 | |
createdAt | int64 | 6 | Unix timestamp seconds |
Oneof item: one of message, reasoning, functionCall, functionCallOutput