Toggle Menu
Prev Up Next

# `langchain_core.chat_sessions`.ChatSession

class langchain_core.chat_sessions.ChatSession

  Chat Session represents a single conversation, channel, or other group of messages.

  messages: Sequence[BaseMessage]

    The LangChain chat messages loaded from the source.

  functions: Sequence[dict]

    The function calling specs for the messages.

# Examples using ChatSession

- Merge consecutive messages from the same sender into a single message

- This uses some example data