Package dev.langchain4j.model
Interface Tokenizer
public interface Tokenizer
-
Method Summary
Modifier and TypeMethodDescriptionint
countTokens
(ChatMessage message) int
countTokens
(Iterable<ChatMessage> messages) int
countTokens
(String text)
-
Method Details
-
countTokens
-
countTokens
-
countTokens
-