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

Method init_from_yaml

AgentBench.old/src/configs.py:20–26  ·  view source on GitHub ↗
(cls, yaml_path: str, update_parameters: Union[None, Dict] = None)

Source from the content-addressed store, hash-verified

18
19 @classmethod
20 def init_from_yaml(cls, yaml_path: str, update_parameters: Union[None, Dict] = None):
21 config = cls.from_yaml_file(yaml_path)
22 if update_parameters:
23 config.parameters.update(update_parameters)
24 # print(config.module)
25 config.parameters["src"] = yaml_path
26 return config
27
28 @classmethod
29 def create_from_yaml(cls, yaml_path: str, update_parameters: Union[None, Dict] = None) -> Union[Agent, Task]:

Callers 1

mainFunction · 0.80

Calls 1

updateMethod · 0.80

Tested by

no test coverage detected