MCPcopy Create free account
hub / github.com/ScaleML/AgentSPEX / load_yaml_config

Function load_yaml_config

src/harness/run.py:93–105  ·  view source on GitHub ↗

Load config section from YAML file. Args: workflow_file: Path to the YAML workflow file Returns: Dictionary with config values from YAML

(workflow_file: str)

Source from the content-addressed store, hash-verified

91
92
93def load_yaml_config(workflow_file: str) -> dict:
94 """
95 Load config section from YAML file.
96
97 Args:
98 workflow_file: Path to the YAML workflow file
99
100 Returns:
101 Dictionary with config values from YAML
102 """
103 parser = YAMLTaskParser()
104 yaml_data = parser.load_task(workflow_file)
105 return parser.get_config_with_defaults(yaml_data)
106
107
108def apply_yaml_config_fallback(args, yaml_config: dict):

Callers 5

build_agent_argsFunction · 0.90
run_ephemeralFunction · 0.90
mainFunction · 0.85

Calls 3

load_taskMethod · 0.95
YAMLTaskParserClass · 0.50

Tested by 2