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 TypeMethodDescriptionint
estimateTokenCountInMessage
(ChatMessage message) int
estimateTokenCountInMessages
(Iterable<ChatMessage> messages) int
int
estimateTokenCountInToolExecutionRequests
(Iterable<ToolExecutionRequest> toolExecutionRequests) int
estimateTokenCountInToolSpecifications
(Iterable<ToolSpecification> toolSpecifications) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface dev.langchain4j.model.Tokenizer
estimateTokenCountInForcefulToolExecutionRequest, estimateTokenCountInForcefulToolSpecification, estimateTokenCountInTools, estimateTokenCountInTools
-
Constructor Details
-
QwenTokenizer
-
-
Method Details
-
estimateTokenCountInText
- Specified by:
estimateTokenCountInText
in interfaceTokenizer
-
estimateTokenCountInMessage
- Specified by:
estimateTokenCountInMessage
in interfaceTokenizer
-
estimateTokenCountInMessages
- Specified by:
estimateTokenCountInMessages
in interfaceTokenizer
-
estimateTokenCountInToolSpecifications
- Specified by:
estimateTokenCountInToolSpecifications
in interfaceTokenizer
-
estimateTokenCountInToolExecutionRequests
public int estimateTokenCountInToolExecutionRequests(Iterable<ToolExecutionRequest> toolExecutionRequests) - Specified by:
estimateTokenCountInToolExecutionRequests
in interfaceTokenizer
-