Skip to main content

skill_mutation_request

Function skill_mutation_request 

Source
pub fn skill_mutation_request(
    agent_id: &str,
    action: &str,
    skill_id: &str,
    context_json: &str,
) -> Result<Request>
Expand description

Build a Cedar authorization request for a skill mutation.

Unlike tool execution requests, skill mutations carry context (environment, confidence score, validation status) that Cedar policies evaluate against.

§Arguments

  • agent_id — The agent attempting the mutation.
  • action — The mutation action (e.g., "skill.mutate", "skill.promote").
  • skill_id — The skill being mutated.
  • context_json — JSON object with mutation context (environment, scores, etc.).