Method
create_from_yaml
(cls, yaml_path: str, update_parameters: Union[None, Dict] = None)
Source from the content-addressed store, hash-verified
| 27 | |
| 28 | @classmethod |
| 29 | def create_from_yaml(cls, yaml_path: str, update_parameters: Union[None, Dict] = None) -> Union[Agent, Task]: |
| 30 | config = cls.from_yaml_file(yaml_path) |
| 31 | if update_parameters: |
| 32 | config.parameters.update(update_parameters) |
| 33 | # print(config.module) |
| 34 | config.parameters["src"] = yaml_path |
| 35 | return config.create() |
| 36 | |
Tested by
no test coverage detected