ChatTurn
One stored turn of a conversation.
| Full name | MFiles.ChatTurn |
|---|---|
| Proto file | mfiles/structs.proto |
Fields
| Field | Type | Number | Description |
|---|---|---|---|
id | uint32 | 1 | The ID of the chat turn, assigned by the server. |
conv_id | uint32 | 2 | The ID of the conversation the turn belongs to. |
chat_turn | string | 3 | The content of the turn as text. The server stores it as given and does not parse it; the format is up to the caller. |
sort_key | uint32 | 4 | Orders the turns; newer turns have larger values. Used for paging. |
created | google.protobuf.Timestamp | 5 | When the turn was added (UTC). |
modified | google.protobuf.Timestamp | 6 | When the turn was added or last replaced (UTC). |
Used by methods
- IRPCConversationOperations.AddOrUpdateChatTurn -- Adds a chat turn to one of the caller's conversations, or replaces the content of an existing chat turn.
- IRPCConversationOperations.GetChatTurns -- Gets the chat turns of one of the caller's conversations, newest first, up to 100 per call.
Used in fields
GetChatTurnsResponse.chat_turns-- Up to 100 chat turns in descendingsort_keyorder.AddOrUpdateChatTurnRequest.chat_turn-- The chat turn. Setconv_idandchat_turn(the content); setidto replace an existing turn.AddOrUpdateChatTurnResponse.updated_chat_turn-- The chat turn as stored, with its ID andsort_key.