Team Ai
Apppublic

Sam2425/langgraphproject

sourceHugging Faceapache-2.0updated 2y agoView on Hugging Face
0likes
state.py11 linesDownload Raw Back to state
1from typing import Annotated, Literal, Optional2from typing_extensions import TypedDict3from langgraph.graph.message import add_messages4from typing import TypedDict, Annotated, List5from langchain_core.messages import HumanMessage, AIMessage6 7class State(TypedDict):8    """9    Represents the structure of the state used in the graph.10    """11    messages: Annotated[list, add_messages]