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

iai policies create

Create a policy

Synopsis

Create a new policy in an InteractiveAI project.

Each prompt holds exactly one policy (flat YAML, fields at the root). Content is provided via a YAML file using the --file flag.

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 create safety-rules --file policy.yaml
  iai policies create safety-rules --file policy.yaml --schema-version 2.1.0
  iai policies create safety-rules --file policy.yaml --labels staging
  iai policies create safety-rules --file policy.yaml --tags compliance

Options

Options inherited from parent commands

SEE ALSO

Last updated

Was this helpful?