langgraph / src /state /state.py
genaitiwari's picture
basic chatbot example - langgraph
b0540b3
raw
history blame contribute delete
264 Bytes
from typing import Annotated
from typing_extensions import TypedDict
from langgraph.graph.message import add_messages
class State(TypedDict):
"""
Represents the structure of the state used in the graph.
"""
messages: Annotated[list, add_messages]