Gateway Generation Info
class GatewayGenerationInfo(val id: String, val totalCost: Double, val upstreamInferenceCost: Double, val usage: Double, val createdAt: String, val model: String, val isByok: Boolean, val providerName: String, val streamed: Boolean, val finishReason: String, val latency: Int, val generationTime: Int, val promptTokens: Int, val completionTokens: Int, val reasoningTokens: Int, val cachedTokens: Int, val cacheCreationTokens: Int, val billableWebSearchCalls: Int)(source)
Since
0.3.0-beta01
Constructors
Link copied to clipboard
constructor(id: String, totalCost: Double, upstreamInferenceCost: Double, usage: Double, createdAt: String, model: String, isByok: Boolean, providerName: String, streamed: Boolean, finishReason: String, latency: Int, generationTime: Int, promptTokens: Int, completionTokens: Int, reasoningTokens: Int, cachedTokens: Int, cacheCreationTokens: Int, billableWebSearchCalls: Int)