Package dev.langchain4j.guardrail.config
Interface OutputGuardrailsConfig.OutputGuardrailsConfigBuilder
- All Superinterfaces:
GuardrailsConfigBuilder<OutputGuardrailsConfig>
- Enclosing interface:
OutputGuardrailsConfig
public static interface OutputGuardrailsConfig.OutputGuardrailsConfigBuilder
extends GuardrailsConfigBuilder<OutputGuardrailsConfig>
Builder for
OutputGuardrailsConfig
instances.
This is needed so other frameworks (like Quarkus and Spring) can extend the configuration mechanism with their own implementations while also adhering to the interfaces and specs defined here.
-
Method Summary
Modifier and TypeMethodDescriptionmaxRetries
(int maxRetries) Sets the maximum number of retries for output guardrails.Methods inherited from interface dev.langchain4j.guardrail.config.GuardrailsConfigBuilder
build
-
Method Details
-
maxRetries
Sets the maximum number of retries for output guardrails.Defaults to
OutputGuardrailsConfig.maxRetries()
if not set.- Parameters:
maxRetries
- The maximum number of retries for output guardrails- Returns:
- The maximum number of retries for output guardrails
- See Also:
-