CacheHit

org.llm4s.trace.TraceEvent.CacheHit
See theCacheHit companion object
final case class CacheHit extends TraceEvent

Cache hit event for semantic caching

Attributes

Companion
object
Source
TraceEvent.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait TraceEvent
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

Attributes

Source
TraceEvent.scala
def toJson: Value

Attributes

Source
TraceEvent.scala
def withSimilarity(similarity: Double): CacheHit

Attributes

Source
TraceEvent.scala
def withThreshold(threshold: Double): CacheHit

Attributes

Source
TraceEvent.scala
def withTimestamp(timestamp: Instant): CacheHit

Attributes

Source
TraceEvent.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Where this event sits in a trace, when its emitter places it in one (design 4.58): the span it is, that span's parent and when it started; the event's timestamp is its end. None for an event traced on its own. Only TraceEvent.CustomEvent, TraceEvent.TokenUsageRecorded, TraceEvent.ErrorOccurred and TraceEvent.AgentRunEnded carry one.

Where this event sits in a trace, when its emitter places it in one (design 4.58): the span it is, that span's parent and when it started; the event's timestamp is its end. None for an event traced on its own. Only TraceEvent.CustomEvent, TraceEvent.TokenUsageRecorded, TraceEvent.ErrorOccurred and TraceEvent.AgentRunEnded carry one.

Attributes

Inherited from:
TraceEvent
Source
TraceEvent.scala