MCPcopy
hub / github.com/OpenBMB/ChatDev / _resolve_yaml_path

Method _resolve_yaml_path

server/services/batch_run_service.py:250–255  ·  view source on GitHub ↗
(yaml_filename: str)

Source from the content-addressed store, hash-verified

248
249 @staticmethod
250 def _resolve_yaml_path(yaml_filename: str) -> Path:
251 safe_name = validate_workflow_filename(yaml_filename, require_yaml_extension=True)
252 yaml_path = YAML_DIR / safe_name
253 if not yaml_path.exists():
254 raise ValidationError("YAML file not found", details={"yaml_file": safe_name})
255 return yaml_path

Callers 1

_run_single_taskMethod · 0.95

Calls 2

ValidationErrorClass · 0.90

Tested by

no test coverage detected