graph LR
Conversation_State_Manager["Conversation State Manager"]
V3_Conversation_State_Manager["V3 Conversation State Manager"]
V1_Conversation_State_Manager["V1 Conversation State Manager"]
Conversation_State_Manager -- "comprises" --> V3_Conversation_State_Manager
Conversation_State_Manager -- "comprises" --> V1_Conversation_State_Manager
click Conversation_State_Manager href "https://github.com/CodeBoarding/GeneratedOnBoardings/blob/main/ChatGPT/Conversation_State_Manager.md" "Details"
The revChatGPT project's conversation management subsystem is designed to handle conversational context across different API versions (V1 and V3) of the ChatGPT wrapper. The Conversation State Manager acts as an abstract, high-level component that logically groups the distinct functionalities of the V3 Conversation State Manager and V1 Conversation State Manager. Each version-specific manager is responsible for maintaining the unique state, history, and constraints pertinent to its respective API, ensuring seamless and consistent conversational flow.
Conversation State Manager [Expand]
An abstract component representing the overarching system responsible for maintaining conversational context across different API versions (V1 and V3) of the ChatGPT wrapper. It encapsulates the general logic related to managing message history, state transitions, and adherence to conversation constraints, serving as a logical grouping for its more concrete sub-components.
Related Classes/Methods: None
Manages the entire lifecycle and state of conversations specifically for the V3 API. This includes handling streaming responses, ensuring conversation history adheres to token limits, appending new messages, and providing mechanisms to revert or clear the conversation state.
Related Classes/Methods:
ask_stream:182-269__truncate_conversation:137-149add_to_conversation:126-135rollback:394-399reset:401-407
Manages the entire lifecycle and state of conversations specifically for the V1 API. This includes sending messages, maintaining conversation mappings, retrieving historical messages, and providing mechanisms to revert or clear the conversation state.
Related Classes/Methods: