Class: UserSession
Represents a user’s conversation session within a specific domain.Properties
user_id
User identifier.
domain
Session domain.
chat_history
Chat history as list of tuples.
[(query1, response1), (query2, response2), ...]
config
Session configuration.
Methods
save_message()
Save a message to database.
User query
AI response
Related Documentation
- Session Management - Session guide
- LangChat - Main API