Class GoogleAiGeminiTokenCountEstimator
java.lang.Object
dev.langchain4j.model.googleai.GoogleAiGeminiTokenCountEstimator
- All Implemented Interfaces:
TokenCountEstimator
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionbuilder()intestimateTokenCountInMessage(ChatMessage message) intestimateTokenCountInMessages(Iterable<ChatMessage> messages) intintestimateTokenCountInToolExecutionRequests(Iterable<ToolExecutionRequest> toolExecutionRequests) intestimateTokenCountInToolSpecifications(Iterable<ToolSpecification> toolSpecifications)
-
Constructor Details
-
GoogleAiGeminiTokenCountEstimator
-
-
Method Details
-
builder
-
estimateTokenCountInText
- Specified by:
estimateTokenCountInTextin interfaceTokenCountEstimator
-
estimateTokenCountInMessage
- Specified by:
estimateTokenCountInMessagein interfaceTokenCountEstimator
-
estimateTokenCountInToolExecutionRequests
public int estimateTokenCountInToolExecutionRequests(Iterable<ToolExecutionRequest> toolExecutionRequests) -
estimateTokenCountInMessages
- Specified by:
estimateTokenCountInMessagesin interfaceTokenCountEstimator
-
estimateTokenCountInToolSpecifications
-