Skip to content

dag

dag

Structures supporting the experiment DAG. Handles evaluation, branching, etc.

Node

Bases: BaseModel

a stable identifier for a particular node

serialize() -> str

serialize the node to a string

deserialize(s: str) -> Self classmethod

deserialize a node from a string

next() -> Node

return the next node in the sequence.

You should NOT call this method unless you know what you are doing. The coherency of this method is important and if you tick accidentally it may break the DAG (e.g., either creating a node that's not stored or creating extra nodes.)

update(node: Node) -> None

Update the live clock without replacing references held by consumers.