ModelUsage

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

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
ModelUsage.type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

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

Implicits

Implicits

implicit val rw: ReadWriter[ModelUsage]