Class OutputGuardrailRequest.Builder
java.lang.Object
dev.langchain4j.guardrail.OutputGuardrailRequest.Builder
- Enclosing class:
OutputGuardrailRequest
Builder for
OutputGuardrailRequest.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newOutputGuardrailRequest.chatExecutor(ChatExecutor chatExecutor) Sets the chat executor.requestParams(GuardrailRequestParams requestParams) Sets the common parameters.responseFromLLM(ChatResponse responseFromLLM) Sets the response from the LLM.
-
Method Details
-
responseFromLLM
Sets the response from the LLM.- Parameters:
responseFromLLM- the response from the LLM- Returns:
- this builder
-
chatExecutor
Sets the chat executor.- Parameters:
chatExecutor- the chat executor- Returns:
- this builder
-
requestParams
Sets the common parameters.- Parameters:
requestParams- the common parameters- Returns:
- this builder
-
build
Builds a newOutputGuardrailRequest.- Returns:
- a new
OutputGuardrailRequest
-