Conversations (IRPCConversationOperations)

View as Markdown

Stores conversations with Aino and their chat turns in the vault, per user.

gRPC serviceMFiles.IRPCConversationOperations
Book and levelVault API, standard
Methods6
Proto filemfiles/IRPCConversationOperations.proto

Overview

A per-user history store for chat-style features. A Conversation has a title and a type; its ChatTurns hold the exchanged messages as text that the server stores without interpreting it. The vault does not run any agent here: the caller writes what it wants to keep.

All methods need a vault session and no special vault rights. A conversation belongs to the user who created it; reading, renaming or deleting another user's conversation fails with "Access is denied.". Administrators get no exception.

Paging. GetConversations and GetChatTurns return at most 100 items, newest first (descending sort_key). For the next page, send the smallest sort_key you received; the server returns the items whose sort_key is less than it. 0 starts from the newest. more_results is true while older items remain.

Methods

MethodSummaryFacts
AddOrUpdateChatTurnAdds a chat turn to one of the caller's conversations, or replaces the content of an existing chat turn.write session
AddOrUpdateConversationCreates a conversation, or renames an existing one of the caller.write session
DeleteConversationByIdDeletes one of the caller's conversations and all its chat turns.write session
GetChatTurnsGets the chat turns of one of the caller's conversations, newest first, up to 100 per call.write session
GetConversationByIdGets one of the caller's conversations by ID.write session
GetConversationsGets the caller's conversations, newest first, up to 100 per call.write session