TokenBreakdown

org.llm4s.context.TokenBreakdown
See theTokenBreakdown companion object
@Stable
final case class TokenBreakdown

Detailed breakdown of token usage in a conversation

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def prettyPrint(): String

Sets the per-message token information.

Sets the per-message token information.

Attributes

def withOverhead(overhead: Int): TokenBreakdown

Sets the conversation overhead in tokens.

Sets the conversation overhead in tokens.

Attributes

def withTotalTokens(totalTokens: Int): TokenBreakdown

Sets the total token count.

Sets the total token count.

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product