chat_sessions.py — langchain Source File
Architecture documentation for chat_sessions.py, a python file in the langchain codebase. 3 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 4046aa68_f7c5_df5f_c6c9_168319e4f3bf["chat_sessions.py"] cfe2bde5_180e_e3b0_df2b_55b3ebaca8e7["collections.abc"] 4046aa68_f7c5_df5f_c6c9_168319e4f3bf --> cfe2bde5_180e_e3b0_df2b_55b3ebaca8e7 8e2034b7_ceb8_963f_29fc_2ea6b50ef9b3["typing"] 4046aa68_f7c5_df5f_c6c9_168319e4f3bf --> 8e2034b7_ceb8_963f_29fc_2ea6b50ef9b3 d758344f_537f_649e_f467_b9d7442e86df["langchain_core.messages"] 4046aa68_f7c5_df5f_c6c9_168319e4f3bf --> d758344f_537f_649e_f467_b9d7442e86df style 4046aa68_f7c5_df5f_c6c9_168319e4f3bf fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"""**Chat Sessions** are a collection of messages and function calls."""
from collections.abc import Sequence
from typing import TypedDict
from langchain_core.messages import BaseMessage
class ChatSession(TypedDict, total=False):
"""Chat Session.
Chat Session represents a single conversation, channel, or other group of messages.
"""
messages: Sequence[BaseMessage]
"""A sequence of the LangChain chat messages loaded from the source."""
functions: Sequence[dict]
"""A sequence of the function calling specs for the messages."""
Classes
Dependencies
- collections.abc
- langchain_core.messages
- typing
Source
Frequently Asked Questions
What does chat_sessions.py do?
chat_sessions.py is a source file in the langchain codebase, written in python.
What does chat_sessions.py depend on?
chat_sessions.py imports 3 module(s): collections.abc, langchain_core.messages, typing.
Where is chat_sessions.py in the architecture?
chat_sessions.py is located at libs/core/langchain_core/chat_sessions.py (directory: libs/core/langchain_core).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free