org.llm4s.llmconnect.model.UsageSummary
See theUsageSummary companion class
object UsageSummary
Attributes
- Companion
- class
- Source
- UsageSummary.scala
- Graph
-
- Supertypes
- Self type
-
UsageSummary.type
Members list
Type members
Inherited and Abstract types
The names of the product elements
The name of the type
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
Attributes
- Source
- UsageSummary.scala
In this article
