static GuardrailTopicConfig.Builder |
GuardrailTopicConfig.builder() |
|
GuardrailTopicConfig.Builder |
GuardrailTopicConfig.Builder.definition(String definition) |
A definition of the topic to deny.
|
GuardrailTopicConfig.Builder |
GuardrailTopicConfig.Builder.examples(String... examples) |
A list of prompts, each of which is an example of a prompt that can be categorized as belonging to the topic.
|
GuardrailTopicConfig.Builder |
GuardrailTopicConfig.Builder.examples(Collection<String> examples) |
A list of prompts, each of which is an example of a prompt that can be categorized as belonging to the topic.
|
GuardrailTopicConfig.Builder |
GuardrailTopicConfig.Builder.inputAction(String inputAction) |
Specifies the action to take when harmful content is detected in the input.
|
GuardrailTopicConfig.Builder |
GuardrailTopicConfig.Builder.inputAction(GuardrailTopicAction inputAction) |
Specifies the action to take when harmful content is detected in the input.
|
GuardrailTopicConfig.Builder |
GuardrailTopicConfig.Builder.inputEnabled(Boolean inputEnabled) |
Specifies whether to enable guardrail evaluation on the input.
|
GuardrailTopicConfig.Builder |
GuardrailTopicConfig.Builder.name(String name) |
The name of the topic to deny.
|
GuardrailTopicConfig.Builder |
GuardrailTopicConfig.Builder.outputAction(String outputAction) |
Specifies the action to take when harmful content is detected in the output.
|
GuardrailTopicConfig.Builder |
GuardrailTopicConfig.Builder.outputAction(GuardrailTopicAction outputAction) |
Specifies the action to take when harmful content is detected in the output.
|
GuardrailTopicConfig.Builder |
GuardrailTopicConfig.Builder.outputEnabled(Boolean outputEnabled) |
Specifies whether to enable guardrail evaluation on the output.
|
GuardrailTopicConfig.Builder |
GuardrailTopicConfig.toBuilder() |
|
GuardrailTopicConfig.Builder |
GuardrailTopicConfig.Builder.type(String type) |
Specifies to deny the topic.
|
GuardrailTopicConfig.Builder |
GuardrailTopicConfig.Builder.type(GuardrailTopicType type) |
Specifies to deny the topic.
|