MCPcopy Create free account
hub / github.com/THUDM/AgentTuning / create_from_yaml

Method create_from_yaml

AgentBench.old/src/configs.py:29–35  ·  view source on GitHub ↗
(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

Callers 1

__init__Method · 0.80

Calls 2

updateMethod · 0.80
createMethod · 0.80

Tested by

no test coverage detected