File size: 261 Bytes
b967fd3
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
from typing import Annotated
from typing_extensions import TypedDict
from langgraph.graph.message import add_messages

class State(TypedDict):
    """
    State for the graph.
    """
    messages: Annotated[list, add_messages]  # List of messages in the graph