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

Method has_config

src/harness/parsing/yaml_parser.py:86–96  ·  view source on GitHub ↗

Check if task data has a config section. Args: task_data: The parsed YAML task data Returns: True if config section exists, False otherwise

(self, task_data: Dict[str, Any])

Source from the content-addressed store, hash-verified

84 raise ValueError("Workflow must be a list of steps")
85
86 def has_config(self, task_data: Dict[str, Any]) -> bool:
87 """
88 Check if task data has a config section.
89
90 Args:
91 task_data: The parsed YAML task data
92
93 Returns:
94 True if config section exists, False otherwise
95 """
96 return "config" in task_data and task_data["config"] is not None
97
98 def get_config_with_defaults(self, task_data: Dict[str, Any]) -> Dict[str, Any]:
99 """

Callers 2

test_has_config_trueMethod · 0.95
test_has_config_falseMethod · 0.95

Calls

no outgoing calls

Tested by 2

test_has_config_trueMethod · 0.76
test_has_config_falseMethod · 0.76