EmbeddingUsageRecorded

org.llm4s.trace.TraceEvent.EmbeddingUsageRecorded
case class EmbeddingUsageRecorded(usage: EmbeddingUsage, model: String, operation: String, inputCount: Int, timestamp: Instant) extends TraceEvent

Tracks embedding token usage for cost analysis.

Value parameters

inputCount

Number of texts embedded in this operation

model

Embedding model name (e.g., "text-embedding-3-small")

operation

Type of operation: "indexing", "query", "evaluation"

usage

Token usage statistics from embedding operation

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait TraceEvent
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def eventType: String
def toJson: Value

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product