Package dev.langchain4j.model.dashscope
Class QwenTokenizer
java.lang.Object
dev.langchain4j.model.dashscope.QwenTokenizer
- All Implemented Interfaces:
Tokenizer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintestimateTokenCountInMessage(ChatMessage message) intestimateTokenCountInMessages(Iterable<ChatMessage> messages) intintestimateTokenCountInToolExecutionRequests(Iterable<ToolExecutionRequest> toolExecutionRequests) intestimateTokenCountInToolSpecifications(Iterable<ToolSpecification> toolSpecifications) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.langchain4j.model.Tokenizer
estimateTokenCountInForcefulToolExecutionRequest, estimateTokenCountInForcefulToolSpecification, estimateTokenCountInTools, estimateTokenCountInTools
-
Constructor Details
-
QwenTokenizer
-
-
Method Details
-
estimateTokenCountInText
- Specified by:
estimateTokenCountInTextin interfaceTokenizer
-
estimateTokenCountInMessage
- Specified by:
estimateTokenCountInMessagein interfaceTokenizer
-
estimateTokenCountInMessages
- Specified by:
estimateTokenCountInMessagesin interfaceTokenizer
-
estimateTokenCountInToolSpecifications
- Specified by:
estimateTokenCountInToolSpecificationsin interfaceTokenizer
-
estimateTokenCountInToolExecutionRequests
public int estimateTokenCountInToolExecutionRequests(Iterable<ToolExecutionRequest> toolExecutionRequests) - Specified by:
estimateTokenCountInToolExecutionRequestsin interfaceTokenizer
-