Skip to content

DAGNode

A sub-step of the task plan produced by the decomposition decision. The DAG is a semantic layer only — execution stays linear (topological order), it is not a parallel graph.

python
from amrita_core.builtins.agent.state import DAGNode

node = DAGNode(
    id="search-web",
    description="Search the web",
    depends_on=["list-files"],
)

Fields

FieldTypeMeaning
idstrSemantic id (also the Step phase name)
descriptionstrWhat this sub-step does
depends_onlist[str]Ids this sub-step depends on

Apache 2.0 License