/** * Pluggable persistence contract for conversation state. * * Telbany implements this with Mongoose (Thread.openai_conversation_id / last_response_id). * The SDK ships a MemoryConversationStore for tests and lightweight use cases. * * threadKey — the app-level identifier (e.g. Thread.thread_id from MongoDB). */ export interface ConversationState { conversationId: string; lastResponseId?: string; } export interface ConversationStore { /** Load state for a thread. Returns null when no conversation has been created yet. */ load(threadKey: string): Promise; /** Persist updated state after each turn. */ save(threadKey: string, state: ConversationState): Promise; /** * Create a new conversation and persist it. * Called when load() returns null and a new conversation must be created. */ create(threadKey: string, conversationId: string): Promise; } //# sourceMappingURL=conversation-store.interface.d.ts.map