This commit is contained in:
Nuno Campos
2024-11-22 16:35:20 -08:00
parent 5bbb9dae57
commit abc0c8c223
+1 -2
View File
@@ -235,14 +235,13 @@ class Send:
N = TypeVar("N", bound=Hashable)
PARENT = Literal["__parent__"]
@dataclasses.dataclass(**_DC_KWARGS)
class Command(Generic[N]):
"""One or more commands to update the graph's state and send messages to nodes."""
graph: Optional[Union[PARENT, str]] = None
graph: Optional[str] = None
update: Optional[dict[str, Any]] = None
send: Union[Send, Sequence[Send]] = ()
resume: Optional[Union[Any, dict[str, Any]]] = None