add state
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
from dataclasses import dataclass, field, is_dataclass
|
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
|
import tyro
|
||||||
from pydantic import BaseModel, Field
|
from pydantic import BaseModel, Field
|
||||||
from loguru import logger
|
from loguru import logger
|
||||||
@@ -65,6 +65,8 @@ class State(TypedDict):
|
|||||||
Dict[str, Dict[str, str|int]]]
|
Dict[str, Dict[str, str|int]]]
|
||||||
messages: List[SystemMessage | HumanMessage]
|
messages: List[SystemMessage | HumanMessage]
|
||||||
decision: str
|
decision: str
|
||||||
|
subgraph_states: Dict[str, Any] # NOTE: Naively assuming subgraphs
|
||||||
|
# won't be so complicated
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user