Chat Service
- class app.services.chat_service.ChatService(llm_service: LLMService, context_manager: ContextManager)[source]
Bases:
object
A service class for managing chat interactions with an AI assistant.
This class integrates the LLM service for generating responses and a context manager for maintaining conversation history.
- clear_conversation() None [source]
Clear the current conversation history from the context manager.
- get_context_info() Dict[str, int] [source]
Get information about the current context.
- Returns:
A dictionary containing the current and maximum context length.