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
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
xOnBehalfOf | string | ➖ | Optional external end-user identifier forwarded by the API gateway. | |
updateGuardrailsRequest | components.UpdateGuardrailsRequest | ✔️ | N/A | { "guardrails": [ { "mode": "ban_words", "enabled": true, "config": { "words": [ "spam", "inappropriate" ] } } ] } |