agenticai / src /langgraph /state /state.py
rohit077's picture
adding all parameters to run the UI
b02e6a5
raw
history blame contribute delete
388 Bytes
from typing import Annotated, Literal, Optional
from typing_extensions import TypedDict
from langgraph.graph.message import add_messages
from typing import TypedDict, Annotated, List
from langchain_core.messages import HumanMessage, AIMessage
class State(TypedDict):
"""
Represents the structure of the state used in the graph.
"""
messages: Annotated[list, add_messages]