This commit is contained in:
2025-11-21 13:35:51 +08:00
parent 69c7ca0925
commit 5d4e24bd65

View File

@@ -0,0 +1,11 @@
from typing import Type, TypedDict, Literal, Dict, List, Tuple, Any
from langchain_core.messages import SystemMessage, HumanMessage
class State(TypedDict):
inp: Tuple[Dict[str, List[SystemMessage | HumanMessage]],
Dict[str, Dict[str, str|int]]]
messages: List[SystemMessage | HumanMessage]
decision: str
subgraph_states: Dict[str, Any] # NOTE: Naively assuming subgraphs
# won't be so complicated