UsageSummary

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

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self 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, 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

Implicits

Implicits

implicit val rw: ReadWriter[UsageSummary]