from typing import Annotated, TypedDict from langgraph.graph.message import add_messages class ChatState(TypedDict): debug_mode: bool = True messages: Annotated[list[str], add_messages] tool_calls: int seen_tool_calls: set[tuple[str, str]] # (tool_name, params_hash) skip_tool: bool initialized : bool language : str