Skip to main content

dw_agents_sidecar_bytes

Function dw_agents_sidecar_bytes 

Source
pub fn dw_agents_sidecar_bytes(
    agents: &BTreeMap<String, Value>,
) -> Result<Option<Vec<u8>>>
Expand description

Serialize the agents: map to the dw-agents.json sidecar bytes (bare { "<agent_id>": <AgentConfig> } JSON). Returns None when the map is empty so non-agent packs produce byte-identical archives.