espnet3.bin.atlas.core.graph.load_graph
Less than 1 minute
espnet3.bin.atlas.core.graph.load_graph
espnet3.bin.atlas.core.graph.load_graph(path: Path, recipe_dir: Path | None = None) → ResearchGraph
Load and validate a graph YAML, including its stage imports.
- Parameters:
- path – YAML file containing the graph declaration.
- recipe_dir – Optional recipe root for recipe-local stage classes.
- Returns: Validated graph with resolved node configuration.
- Return type:ResearchGraph
Example
>>> graph = load_graph(Path("graph.yaml"))
>>> graph.start
'research_context'