Skip to main content

graph_config_from_sidecar

Function graph_config_from_sidecar 

Source
pub fn graph_config_from_sidecar(
    pack_id: &str,
    bytes: &[u8],
) -> Option<GraphConfig>
Expand description

Parse an agent-graph.json sidecar (raw bytes from a .gtpack) into a validated GraphConfig.

Mirrors the lenient posture of super::super::agent_node::agent_configs_from_manifest: every failure mode — invalid UTF-8, malformed JSON, schema-version mismatch, or graph validation error — is logged via tracing::warn! (with pack_id) and yields None, so a single bad graph never prevents the rest of the pack from loading. The pack_id argument is used only in log messages.