Skip to main content

Module agent_node

Module agent_node 

Source

Structs§

HostConfigProvider
ConfigProvider backed by the operator’s [HostConfig::agents] map.
RuntimeAgentNodeHandler
Production AgentNodeHandler wrapping the agentic-worker runtime.

Enums§

DwAgentDispatch
How a dw.agent flow node executes.

Traits§

AgentNodeHandler
Bridges a DwAgent flow node into the agentic-worker runtime.

Functions§

agent_configs_from_manifest
Deserialize raw agent blobs from a pack manifest into typed AgentConfig structs.
build_agent_node_handler
Build the production DwAgent handler if the environment is configured.
build_agent_runtime
Construct the shared AgentRuntime from the environment.
dw_agent_dispatch_mode
Resolve how dw.agent nodes execute. GREENTIC_AW_DISPATCH=nats routes them over the out-of-process agentic NATS path; anything else (incl. unset) keeps the in-process path — zero regression by default. Pure over get_env for testability (mirrors should_serve_agentic_inproc).
load_process_agent_configs
Load process-level base agent configs from the manifests directory.
merge_agent_sources
Merge pack-provided agent configs with operator-declared ones.
merge_sidecar_into
Fill blobs from a dw-agents.json sidecar map, inserting each entry only when its agent_id is absent — so manifest.agents stays authoritative and the sidecar only bridges packs whose manifest could not carry agents.
serve_agentic
Run the agentic-worker runtime as a NATS-consuming service.
should_serve_agentic_inproc
Decide whether the runner process should host the agentic-worker NATS service in-process (the opt-in co-host path).