Skip to main content

Module graph_node

Module graph_node 

Source

Structs§

InMemoryGraphProvider
GraphConfigSource backed by an in-memory graph_id -> GraphConfig map. Graphs are operator-global for the MVP: lookup is keyed purely by graph_id; the tenant argument is accepted (to satisfy the trait contract) but not used for keying. Reuses ConfigError::AgentNotFound as the crate’s canonical “not found” variant.
LayeredGraphProvider
Tries the primary GraphConfigSource, falling back to the secondary when the primary reports the graph missing or has an infrastructure failure. A Misconfigured error is propagated, never masked by the fallback — matching greentic_aw_runtime::LayeredConfigProvider’s semantics exactly.
RuntimeGraphNodeHandler
Production GraphNodeHandler wrapping the durable graph executor.

Traits§

GraphConfigSource
Resolves a GraphConfig for a (tenant, graph_id) pair.
GraphNodeHandler
Bridges a DwAgentGraph flow node into the graph executor.

Functions§

build_graph_node_handler
Build the production DwAgentGraph handler if the environment is configured. Mirrors super::super::agent_node::build_agent_node_handler: it returns None (so DwAgentGraph flow dispatch errors clearly) under any of these graceful-degradation conditions:
graph_config_from_sidecar
Parse an agent-graph.json sidecar (raw bytes from a .gtpack) into a validated GraphConfig.