| Modifier and Type | Field and Description |
|---|---|
| private final ByCharacterTokenEstimator | |
| private final ByWordsTokenEstimator |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private int | |
| public int | estimate(ChatMessage.
Implements org.
|
| public int | estimate(List<ChatMessage> messages)
Implements org.
|
| public TokenEstimatorKind |
| byCharacterTokenizer | back to summary |
|---|---|
| private final ByCharacterTokenEstimator byCharacterTokenizer | |
| byWordsTokenizer | back to summary |
|---|---|
| private final ByWordsTokenEstimator byWordsTokenizer | |
| MinimumTokenEstimator | back to summary |
|---|---|
| public MinimumTokenEstimator() | |
| calculate | back to summary |
|---|---|
| private int calculate(int byWords, int byCharacters) | |
| estimate | back to summary |
|---|---|
| public int estimate(ChatMessage. Implements org.
| |
| estimate | back to summary |
|---|---|
| public int estimate(List<ChatMessage> messages) Implements org.
| |
| getKind | back to summary |
|---|---|
| public TokenEstimatorKind getKind() Implements org.
| |