For the complete documentation index, see llms.txt. This page is also available as Markdown.

iai policies update

Update a policy (creates a new version)

Synopsis

Update a policy by creating a new version with updated content.

This creates a new version of the policy using the content from the provided file. The previous versions are preserved and can still be accessed by version number.

Each prompt holds exactly one policy (flat YAML, fields at the root).

Run iai policies schema to see the current field definitions.

Example

# policy.yaml
id: escalate
name: Escalation Policy
condition: User requests human agent
action: Transfer to human
criticality: HIGH

Examples

  iai policies update safety-rules --file policy.yaml
  iai policies update safety-rules --file policy.yaml --schema-version 2.1.0
  iai policies update safety-rules --file policy.yaml --labels staging,qa

Options

Options inherited from parent commands

SEE ALSO

Last updated

Was this helpful?