MCPcopy Create free account
hub / github.com/Tencent/digitalhuman / load_agent

Function load_agent

HATE/basic_hate/agentverse/initialization.py:64–67  ·  view source on GitHub ↗
(agent_config: Dict)

Source from the content-addressed store, hash-verified

62
63
64def load_agent(agent_config: Dict) -> BaseAgent:
65 agent_type = agent_config.pop("agent_type", "conversation")
66 agent = agent_registry.build(agent_type, **agent_config)
67 return agent
68
69
70def prepare_task_config(task, tasks_dir, postfix=''):

Callers 3

from_taskMethod · 0.90
from_taskMethod · 0.90
from_taskMethod · 0.90

Calls 2

buildMethod · 0.80
popMethod · 0.45

Tested by

no test coverage detected