pub fn write_agent_pack( path: &Path, agent_pack: &AgentPack, format: AgentPackFormat, ) -> Result<()>