bedrock_create_guardrail: Creates a guardrail to block topics and to filter out harmful...

View source: R/bedrock_operations.R

bedrock_create_guardrailR Documentation

Creates a guardrail to block topics and to filter out harmful content

Description

Creates a guardrail to block topics and to filter out harmful content.

See https://www.paws-r-sdk.com/docs/bedrock_create_guardrail/ for full documentation.

Usage

bedrock_create_guardrail(
  name,
  description = NULL,
  topicPolicyConfig = NULL,
  contentPolicyConfig = NULL,
  wordPolicyConfig = NULL,
  sensitiveInformationPolicyConfig = NULL,
  blockedInputMessaging,
  blockedOutputsMessaging,
  kmsKeyId = NULL,
  tags = NULL,
  clientRequestToken = NULL
)

Arguments

name

[required] The name to give the guardrail.

description

A description of the guardrail.

topicPolicyConfig

The topic policies to configure for the guardrail.

contentPolicyConfig

The content filter policies to configure for the guardrail.

wordPolicyConfig

The word policy you configure for the guardrail.

sensitiveInformationPolicyConfig

The sensitive information policy to configure for the guardrail.

blockedInputMessaging

[required] The message to return when the guardrail blocks a prompt.

blockedOutputsMessaging

[required] The message to return when the guardrail blocks a model response.

kmsKeyId

The ARN of the KMS key that you use to encrypt the guardrail.

tags

The tags that you want to attach to the guardrail.

clientRequestToken

A unique, case-sensitive identifier to ensure that the API request completes no more than once. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency in the Amazon S3 User Guide.


paws.machine.learning documentation built on May 29, 2024, 9:43 a.m.