Skip to content

UpdateGuardrailsRequest

Example Usage

typescript
import { UpdateGuardrailsRequest } from "@meetkai/mka1/models/operations";

let value: UpdateGuardrailsRequest = {
  updateGuardrailsRequest: {
    guardrails: [
      {
        mode: "ban_words",
        config: {
          words: [
            "spam",
            "inappropriate",
          ],
          rejectionMessage:
            "I'm sorry, but I can't process this request as it contains content that isn't allowed. Please rephrase your message.",
        },
      },
    ],
  },
};

Fields

FieldTypeRequiredDescriptionExample
xOnBehalfOfstringOptional external end-user identifier forwarded by the API gateway.
updateGuardrailsRequestcomponents.UpdateGuardrailsRequest✔️N/A{
"guardrails": [
{
"mode": "ban_words",
"enabled": true,
"config": {
"words": [
"spam",
"inappropriate"
]
}
}
]
}