Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Tencent/digitalhuman
/ load_environment
Function
load_environment
HATE/basic_hate/agentverse/initialization.py:59–61 ·
view source on GitHub ↗
(env_config: Dict)
Source
from the content-addressed store, hash-verified
57
58
59
def
load_environment(env_config: Dict) -> BaseEnvironment:
60
env_type = env_config.pop(
"env_type"
,
"basic"
)
61
return
env_registry.build(env_type, **env_config)
62
63
64
def
load_agent(agent_config: Dict) -> BaseAgent:
Callers
3
from_task
Method · 0.90
from_task
Method · 0.90
from_task
Method · 0.90
Calls
2
build
Method · 0.80
pop
Method · 0.45
Tested by
no test coverage detected