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).
str | None
default:"None"
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}".
