A Conversation
in R2R represents a threaded exchange of messages that can branch into multiple paths. Conversations provide a structured way to maintain dialogue history, support branching discussions, and manage message flows.
Conversations in R2R provide:
- Threaded message management
- Message editing with history preservation
- Metadata attachment capabilities
- Conversational context maintenance
Available Endpoints
Method | Endpoint | Description |
---|---|---|
POST | /conversations | Create a new conversation |
GET | /conversations | List conversations with pagination |
GET | /conversations/{id} | Get conversation details |
POST | /conversations/{id} | Update conversation |
DELETE | /conversations/{id} | Delete a conversation |
POST | /conversations/{id}/messages | Add a message to conversation |
POST | /conversations/{id}/messages/{message_id} | Update an existing message |