Documentation Index
Fetch the complete documentation index at: https://langchat.neurobrains.co/llms.txt
Use this file to discover all available pages before exploring further.
Overview
LangChatEngine is the internal engine that powers LangChat. In most cases you don’t interact with it directly — use the LangChat SDK class instead.
Access it via lc.engine when you need low-level control.
Constructor
LangChat. All are keyword-only.
Methods
async chat()
Process a chat query. Returns a raw dict (not a ChatResponse).
If provided, skips the standalone question generation step and uses this value directly. Useful for pre-processing.
get_session()
Get or create a UserSession.
self.sessions dict keyed by "{user_id}_{platform}".
Attributes
| Attribute | Type | Description |
|---|---|---|
llm | Any | LLM provider instance |
vector_adapter | Any | Vector DB provider instance |
history_store | Any | Database provider instance |
reranker_adapter | Any | Reranker instance |
sessions | dict[str, UserSession] | In-memory session cache |
id_manager | IDManager | Database ID sequence manager |
prompt_template | str | System prompt template |
verbose | bool | Verbose logging flag |
max_chat_history | int | History window size |
