IRPCConversationOperations.AddOrUpdateChatTurn

View as Markdown

Vault API / standard write session

Adds a chat turn to one of the caller's conversations, or replaces the content of an existing chat turn.

ServiceConversations MFiles.IRPCConversationOperations
gRPC method/MFiles.IRPCConversationOperations/AddOrUpdateChatTurn
HTTP (mf-http-grpc)POST /grpc/v1/add-or-update-chat-turn
RequestAddOrUpdateChatTurnRequest
ResponseAddOrUpdateChatTurnResponse
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: AddOrUpdateChatTurnRequest

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

FieldTypeDescription
chat_turnChatTurnThe chat turn. Set conv_id and chat_turn (the content); set id to replace an existing turn.
chat_turn.iduint32The ID of the chat turn, assigned by the server.
chat_turn.conv_iduint32The ID of the conversation the turn belongs to.
chat_turn.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_turn.sort_keyuint32Orders the turns; newer turns have larger values. Used for paging.
chat_turn.createdgoogle.protobuf.TimestampWhen the turn was added (UTC).
chat_turn.modifiedgoogle.protobuf.TimestampWhen the turn was added or last replaced (UTC).

Response: AddOrUpdateChatTurnResponse

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

FieldTypeDescription
updated_chat_turnChatTurnThe chat turn as stored, with its ID and sort_key.
updated_chat_turn.iduint32The ID of the chat turn, assigned by the server.
updated_chat_turn.conv_iduint32The ID of the conversation the turn belongs to.
updated_chat_turn.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.
updated_chat_turn.sort_keyuint32Orders the turns; newer turns have larger values. Used for paging.
updated_chat_turn.createdgoogle.protobuf.TimestampWhen the turn was added (UTC).
updated_chat_turn.modifiedgoogle.protobuf.TimestampWhen the turn was added or last replaced (UTC).