TokenUsage

org.llm4s.llmconnect.model.TokenUsage
See theTokenUsage companion class
object TokenUsage

Attributes

Companion
class
Source
Completion.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
TokenUsage.type

Members list

Type members

Inherited and Abstract types

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
Source
Mirror.scala

The name of the type

The name of the type

Attributes

Inherited from:
Mirror
Source
Mirror.scala

Value members

Concrete methods

def apply(promptTokens: Int, completionTokens: Int, totalTokens: Int, thinkingTokens: Option[Int], cachedTokens: Option[Int], cacheCreationTokens: Option[Int]): TokenUsage

Creates a TokenUsage. Named arguments are the supported way to construct one.

Creates a TokenUsage. Named arguments are the supported way to construct one.

Attributes

Source
Completion.scala