Skip to main content

Module conversation_api

Module conversation_api 

Source
Expand description

API endpoints for conversation/session management

Structs§

ConversationDetailResponse
Response for fetching a specific conversation’s messages
ConversationSummary
Summary of a conversation for the sidebar
ConversationsDbStatsResponse
DB-level statistics response for the Conversations (memory.db) Tier 4 view
ConversationsResponse
Response for fetching all conversations
MessageResponse
Message format for API response
UpdatePinnedRequest
Request to update a conversation’s pinned status
UpdateTitleRequest
Request to update a conversation’s title

Functions§

delete_conversation
Delete a conversation permanently from the database Called via DELETE /conversations/:id from frontend Returns success JSON or error status code with message
get_conversation
Fetch a specific conversation’s messages
get_conversations
Fetch all conversations/sessions from the database
get_conversations_db_stats
GET /conversations/db-stats — returns memory.db statistics for the Tier 4 view
update_conversation_pinned
Update a conversation’s pinned status
update_conversation_title
Update a conversation’s title