openhands.storage.conversation.conversation_store
ConversationStore Objects
class ConversationStore(ABC)
Storage for conversation metadata. May or may not support multiple users depending on the environment
save_metadata
@abstractmethod
async def save_metadata(metadata: ConversationMetadata)
Store conversation metadata
get_metadata
@abstractmethod
async def get_metadata(conversation_id: str) -> ConversationMetadata
Load conversation metadata
delete_metadata
@abstractmethod
async def delete_metadata(conversation_id: str) -> None
delete conversation metadata
exists
@abstractmethod
async def exists(conversation_id: str) -> bool
Check if conversation exists
search
@abstractmethod
async def search(page_id: str | None = None,
limit: int = 20) -> ConversationMetadataResultSet
Search conversations
get_instance
@classmethod
@abstractmethod
async def get_instance(cls, config: AppConfig,
token: str | None) -> ConversationStore
Get a store for the user represented by the token given