espnet3.bin.atlas.core.models.NodeConfig
espnet3.bin.atlas.core.models.NodeConfig
class espnet3.bin.atlas.core.models.NodeConfig(name: str, target: str, execution: str, resources: ~espnet3.bin.atlas.core.models.Resources | None, skill: str | None = None, skill_context: dict[str, ~typing.Any] = <factory>, output_schema: dict[str, ~typing.Any] = <factory>, allowed_actions: list[str] = <factory>, trial_update_keys: list[str] = <factory>, output_file: str | None = None, output_key: str | None = None, output_append: bool = False, fallback_output: str | None = None, on: dict[str, str] = <factory>, terminal: bool = False)
Bases: object
One node of a loaded graph YAML, as parsed by load_graph.
- Parameters:
- name – Node’s key in the graph’s
nodesmapping. - target – Dotted
module.Classpath of theBaseStagesubclass to run. Required; a skill node namesSkillStage. - execution –
"local"to run in the current process, or"submission"to be dispatched as a separate submitted job. - resources – Resource limits to request when
execution == "submission", orNoneto use the study’s default. - skill – Name of the skill prompt/markdown to run via
SkillStage, orNonefor a non-skill stage target. - skill_context – Extra key/value context merged into the skill’s
AgentRequest.context_files. - output_schema – JSON Schema (with a
type) of each extra reply field of a skill node, by field name.statusandmessageare added for every skill node. - allowed_actions – Agent action set allowed for this node (e.g.
["read_only"]or including"terminal"). - trial_update_keys – Agent response keys that are copied onto the current trial’s matching attributes.
- output_file – Relative path (under
study_dir) the skill’soutput_keyresult is written to, orNone. - output_key – Key read from the skill’s structured response and written to
output_file, orNone. - output_append – Whether
output_key’s text is appended tooutput_fileinstead of replacing it. - fallback_output – Text written to
output_fileif the skill’s agent call fails, orNoneto fail instead. - on – Mapping from a stage result status to the next node’s name.
- terminal – Whether this node ends the graph (no further routing).
- name – Node’s key in the graph’s
allowed_actions : list[str]
execution : str
fallback_output : str | None = None
name : str
on : dict[str, str]
output_append : bool = False
output_file : str | None = None
output_key : str | None = None
output_schema : dict[str, Any]
resources : Resources | None
skill : str | None = None
skill_context : dict[str, Any]
target : str
terminal : bool = False
trial_update_keys : list[str]
