ric9176's picture
refactor: simplify graph state
db781d4
raw
history blame contribute delete
218 Bytes
from typing import Annotated, TypedDict, Optional
from langgraph.graph.message import add_messages
class AgentState(TypedDict):
messages: Annotated[list, add_messages]
context: list # Store retrieved context