UsageSummary

org.llm4s.llmconnect.model.UsageSummary
See theUsageSummary companion class
object UsageSummary

Attributes

Companion
class
Source
UsageSummary.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self 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, byModel: Map[String, ModelUsage]): UsageSummary

Creates a UsageSummary; every field defaults to zero or empty.

Creates a UsageSummary; every field defaults to zero or empty.

Value parameters

byModel

per-model breakdown, keyed by model identifier

inputTokens

total prompt tokens across all models

outputTokens

total completion tokens across all models

requestCount

total API calls across all models

thinkingTokens

total extended-thinking tokens

totalCost

total estimated cost in USD

Attributes

Source
UsageSummary.scala

Implicits

Implicits

implicit val rw: ReadWriter[UsageSummary]

Attributes

Source
UsageSummary.scala