Class GoogleGenAiTokenCountEstimator.Builder
java.lang.Object
dev.langchain4j.model.google.genai.GoogleGenAiTokenCountEstimator.Builder
- Enclosing class:
GoogleGenAiTokenCountEstimator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapiEndpoint(String apiEndpoint) build()client(com.google.genai.Client client) customHeaders(Map<String, String> customHeaders) googleCredentials(com.google.auth.oauth2.GoogleCredentials googleCredentials) logRequests(Boolean logRequests) logResponses(Boolean logResponses) maxRetries(Integer maxRetries)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
client
-
apiKey
-
googleCredentials
public GoogleGenAiTokenCountEstimator.Builder googleCredentials(com.google.auth.oauth2.GoogleCredentials googleCredentials) -
projectId
-
location
-
timeout
-
modelName
-
maxRetries
-
logRequests
-
logResponses
-
apiEndpoint
-
customHeaders
-
build
-