pub async fn update_agent( core: &Arc<AppCore>, id: &str, name: Option<String>, agent: Option<AgentNode>, ) -> Result<StoredAgent>