add state

This commit is contained in:
2025-11-13 00:08:17 +08:00
parent f2ce3069f0
commit 363daf0b9c

View File

@@ -1,5 +1,5 @@
from dataclasses import dataclass, field, is_dataclass
from typing import Type, TypedDict, Literal, Dict, List, Tuple
from typing import Type, TypedDict, Literal, Dict, List, Tuple, Any
import tyro
from pydantic import BaseModel, Field
from loguru import logger
@@ -65,6 +65,8 @@ class State(TypedDict):
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