Class GoogleAiGeminiDecisionResponseMetadata.Builder
java.lang.Object
dev.langchain4j.model.decision.response.DecisionResponseMetadata.Builder<GoogleAiGeminiDecisionResponseMetadata.Builder>
dev.langchain4j.model.googleai.GoogleAiGeminiDecisionResponseMetadata.Builder
- Enclosing class:
GoogleAiGeminiDecisionResponseMetadata
public static class GoogleAiGeminiDecisionResponseMetadata.Builder
extends DecisionResponseMetadata.Builder<GoogleAiGeminiDecisionResponseMetadata.Builder>
- Since:
- 1.24.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionblockMessage(@Nullable String blockMessage) Gemini's explanation of why it blocked the input.blockReason(@Nullable String blockReason) Why Gemini blocked the input.build()rawHttpResponse(@Nullable SuccessfulHttpResponse rawHttpResponse) The raw HTTP response.Methods inherited from class DecisionResponseMetadata.Builder
modelName, self, tokenUsage
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
blockReason
Why Gemini blocked the input.nullmeans that the input was not blocked. -
blockMessage
Gemini's explanation of why it blocked the input.nullmeans that there is none. -
rawHttpResponse
public GoogleAiGeminiDecisionResponseMetadata.Builder rawHttpResponse(@Nullable SuccessfulHttpResponse rawHttpResponse) The raw HTTP response.nullmeans that there is none, for example because Gemini rejected blocked input with an HTTP 400 error. -
build
- Overrides:
buildin classDecisionResponseMetadata.Builder<GoogleAiGeminiDecisionResponseMetadata.Builder>
-