Interface Conversation


public interface Conversation
Contract for Select AI conversation lifecycle and metadata management.

A conversation stores chat context so a later prompt can refer to earlier turns. The Conversation object manages the database conversation and its metadata, such as title, description, retention period, and context length.

A Conversation object can be configured for creation or database-backed. A configured conversation has attributes in memory, but it does not have a database conversation ID until create() succeeds. A database-backed conversation is opened from the database, listed from metadata, or successfully created through this SDK.

Metadata getters can return configured values before creation. Operations that execute against an existing database conversation, such as drop, metadata update, prompt listing, and prompt deletion, require a database-backed conversation. The SDK rejects those operations with IllegalStateException when the object is not bound to a conversation ID or is configured for creation but has not been created yet.

See Also: