The conversation.py module#

Summary#

ConversationEntry

Conversation state tracked for a code generation session.

ConversationStore

Thread-safe TTL-bounded conversation store.

Description#

In-memory conversation/clarification store with TTL.

Used to track multi-turn codegen <-> clarify interactions so the LLM caller can be stateless (it only needs to keep session_id and clarification_id).

Extensible: swap _now() and the dict for a Redis-backed implementation later without touching the rest of the codebase.