pub async fn replace_agent(
persistence: &dyn PersistenceLayer,
id: impl Into<String>,
agent: AgentArtifact,
) -> Result<AgentArtifact>Expand description
Full-replacement upsert of an agent under a fixed id.
ยงErrors
Returns an error if the persistence write fails.