Skip to main content

patch_agent

Function patch_agent 

Source
pub async fn patch_agent(
    persistence: &dyn PersistenceLayer,
    id: &str,
    patch: &Value,
) -> Result<AgentArtifact, AgentStoreError>
Expand description

Apply an RFC 7396 JSON Merge Patch to an existing agent and persist it.

ยงErrors

Returns AgentStoreError::NotFound when the agent does not exist, or a generic error if the merged value is not a valid agent or the write fails.