Skip to main content

build_agent_runtime

Function build_agent_runtime 

Source
pub async fn build_agent_runtime(
    merged_agents: HashMap<String, AgentConfig>,
) -> Option<Arc<AgentRuntime>>
Expand description

Construct the shared AgentRuntime from the environment.

Factored out of build_agent_node_handler so both the in-process dw.agent/agentic.call flow node and the out-of-process NATS serve mode (serve_agentic) build an identical runtime (Redis state, env- resolved LLM backend, design extensions, agent config providers, MCP).

Returns None under the same graceful-degradation conditions as the node handler: empty agent map, missing/unreachable GREENTIC_AW_REDIS_URL, or extension-runtime init failure.