File size: 348 Bytes
63d1774
 
 
 
 
 
 
 
 
 
2f2633c
2a96fbf
 
1
2
3
4
5
6
7
8
9
10
11
12
13
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