Class BedrockGuardrailConfiguration.Builder
java.lang.Object
dev.langchain4j.model.bedrock.BedrockGuardrailConfiguration.Builder
- Enclosing class:
BedrockGuardrailConfiguration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()guardrailIdentifier(String guardrailIdentifier) Sets the identifier for the guardrail.guardrailVersion(String guardrailVersion) Sets the version of the guardrail.streamProcessingMode(BedrockGuardrailConfiguration.ProcessingMode streamProcessingMode) Sets the processing mode for converse streaming.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
guardrailIdentifier
Sets the identifier for the guardrail.- Parameters:
guardrailIdentifier- The identifier for the guardrail.- Returns:
- this builder
-
guardrailVersion
Sets the version of the guardrail.- Parameters:
guardrailVersion- The version of the guardrail.- Returns:
- this builder
-
streamProcessingMode
public BedrockGuardrailConfiguration.Builder streamProcessingMode(BedrockGuardrailConfiguration.ProcessingMode streamProcessingMode) Sets the processing mode for converse streaming. See Configure streaming response behavior.- Parameters:
streamProcessingMode- The processing mode.- Returns:
- this builder
-
build
-