ModelUsage

org.llm4s.llmconnect.model.ModelUsage
See theModelUsage companion class
object ModelUsage

Attributes

Companion
class
Source
UsageSummary.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
ModelUsage.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(requestCount: Long, inputTokens: Long, outputTokens: Long, thinkingTokens: Long, totalCost: BigDecimal): ModelUsage

Creates a ModelUsage; every field defaults to zero.

Creates a ModelUsage; every field defaults to zero.

Value parameters

inputTokens

cumulative prompt tokens

outputTokens

cumulative completion tokens

requestCount

number of API calls attributed to this model

thinkingTokens

cumulative extended-thinking tokens

totalCost

cumulative estimated cost in USD

Attributes

Source
UsageSummary.scala

Implicits

Implicits

implicit val rw: ReadWriter[ModelUsage]

Attributes

Source
UsageSummary.scala