bedrock_create_guardrail: Creates a guardrail to block topics and to implement...

View source: R/bedrock_operations.R

bedrock_create_guardrailR Documentation

Creates a guardrail to block topics and to implement safeguards for your generative AI applications

Description

Creates a guardrail to block topics and to implement safeguards for your generative AI applications.

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,
  contextualGroundingPolicyConfig = 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.

contextualGroundingPolicyConfig

The contextual grounding policy configuration used to create a 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 Sept. 12, 2024, 6:23 a.m.