Conversations
Managing conversations with R2R.
This feature is currently in beta. Functionality may change, and we value your feedback around these features.
Occasionally this SDK documentation falls out of date, cross-check with the automatically generated API Reference documentation for the latest parameters.
Conversation Management
Get Conversations Overview
Retrieve an overview of existing conversations:
Optional list of conversation UUIDs to retrieve.
The offset to start listing conversations from.
The maximum number of conversations to return.
Get Conversation
Fetch a specific conversation by its UUID:
The UUID of the conversation to retrieve.
Optional ID of a specific branch to retrieve.
Create Conversation
Create a new conversation:
Add Message
Add a message to an existing conversation:
The UUID of the conversation to add the message to.
The message object to add to the conversation.
An optional UUID of the parent message.
An optional metadata dictionary for the message.
Update Message
Update an existing message in a conversation:
The UUID of the message to update.
The updated message object.
Get Branches Overview
Retrieve an overview of branches in a conversation:
The UUID of the conversation to get branches for.
Update Message Metadata
Update the metadata of a message by its ID:
The ID of the message to update.
The metadata to update.
Delete Conversation
Delete a conversation by its UUID:
The UUID of the conversation to delete.