Skip to content

GuardrailsPolicy ​

Example Usage ​

typescript
import { GuardrailsPolicy } from "@meetkai/mka1/models/components";

let value: GuardrailsPolicy = {
  teamId: "<id>",
  guardrails: [
    {
      mode: "classifier",
      enabled: true,
      config: {
        model: "Colorado",
        prompt: "<value>",
        onError: "fail_closed",
        rejectionMessage:
          "This request is not allowed by your organization's content policy.",
      },
    },
  ],
  updatedAt: 3973,
};

Fields ​

FieldTypeRequiredDescription
teamIdstring✔️Team this policy targets; null for the org-wide policy
guardrailscomponents.GuardrailConfig[]✔️N/A
updatedAtnumber✔️Unix timestamp of when the policy was last updated