pub fn save_agent_config(agent: &AgentConfig) -> Result<()>
Save agent config, preserving other config sections