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

Method create

AgentBench.old/src/configs.py:14–17  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

12 parameters: dict = field(default_factory=dict) # Agent parameters
13
14 def create(self) -> Union[Agent, Task]:
15 path = ".".join(self.module.split(".")[:-1])
16 mod = __import__(path, fromlist=[self.module.split(".")[-1]])
17 return getattr(mod, self.module.split(".")[-1])(**self.parameters)
18
19 @classmethod
20 def init_from_yaml(cls, yaml_path: str, update_parameters: Union[None, Dict] = None):

Callers 15

_inheritsFunction · 0.80
_inheritsFunction · 0.80
mainFunction · 0.80
create_from_yamlMethod · 0.80
completion_with_backoffFunction · 0.80
call_llmMethod · 0.80
get_responseMethod · 0.80
cFunction · 0.80
mFunction · 0.80

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected