IRPCConversationOperations.GetChatTurns

View as Markdown

Vault API / standard write session

Gets the chat turns of one of the caller's conversations, newest first, up to 100 per call.

ServiceConversations MFiles.IRPCConversationOperations
gRPC method/MFiles.IRPCConversationOperations/GetChatTurns
HTTP (mf-http-grpc)POST /grpc/v1/get-chat-turns
RequestGetChatTurnsRequest
ResponseGetChatTurnsResponse
Book and levelVault API, standard
Kindwrite
SessionRequired: the session ID from LogIn in the mfiles-session-id-bin metadata.
Idempotentno
Returns metadata structure versionno
Streamingnone (unary)

Remarks

Request: GetChatTurnsRequest

Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

FieldTypeDescription
conversation_iduint32The ID of the conversation.
sort_keyuint320 for the first page; for the next page, the smallest sort_key of the previous page.

Response: GetChatTurnsResponse

Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

FieldTypeDescription
chat_turns[]repeated ChatTurnUp to 100 chat turns in descending sort_key order.
chat_turns[].iduint32The ID of the chat turn, assigned by the server.
chat_turns[].conv_iduint32The ID of the conversation the turn belongs to.
chat_turns[].chat_turnstringThe content of the turn as text. The server stores it as given and does not parse it; the format is up to the caller.
chat_turns[].sort_keyuint32Orders the turns; newer turns have larger values. Used for paging.
chat_turns[].createdgoogle.protobuf.TimestampWhen the turn was added (UTC).
chat_turns[].modifiedgoogle.protobuf.TimestampWhen the turn was added or last replaced (UTC).
more_resultsboolTrue if older chat turns remain.