public interface Tokenizer
Modifier and Type | Method and Description |
---|---|
int |
estimateTokenCountInMessage(ChatMessage message) |
int |
estimateTokenCountInMessages(Iterable<ChatMessage> messages) |
int |
estimateTokenCountInText(String text) |
default int |
estimateTokenCountInTools(Iterable<Object> objectsWithTools) |
default int |
estimateTokenCountInTools(Object objectWithTools) |
default int |
estimateTokenCountInToolSpecification(ToolSpecification toolSpecification) |
int |
estimateTokenCountInToolSpecifications(Iterable<ToolSpecification> toolSpecifications) |
int estimateTokenCountInText(String text)
int estimateTokenCountInMessage(ChatMessage message)
int estimateTokenCountInMessages(Iterable<ChatMessage> messages)
default int estimateTokenCountInTools(Object objectWithTools)
default int estimateTokenCountInToolSpecification(ToolSpecification toolSpecification)
int estimateTokenCountInToolSpecifications(Iterable<ToolSpecification> toolSpecifications)
Copyright © 2023. All rights reserved.