Verified Owner
Top Methods
org.jabref.logic.ai.tokenization.logic

public Interface TokenEstimator

Known Direct Implementers
org.jabref.logic.ai.tokenization.logic.AverageTokenEstimator, org.jabref.logic.ai.tokenization.logic.ByCharacterTokenEstimator, org.jabref.logic.ai.tokenization.logic.ByWordsTokenEstimator, org.jabref.logic.ai.tokenization.logic.MaximumTokenEstimator, org.jabref.logic.ai.tokenization.logic.MinimumTokenEstimator
Imports
java.util.List, org.jabref.model.ai.chatting.ChatMessage, org.jabref.model.ai.tokenization.TokenEstimatorKind

Method Summary

Modifier and TypeMethod and Description
public int
public int
public TokenEstimatorKind

Method Detail

estimateback to summary
public int estimate(ChatMessage.Role role, String content)
estimateback to summary
public int estimate(List<ChatMessage> messages)
getKindback to summary
public TokenEstimatorKind getKind()