EmbeddingResponseEvent

class EmbeddingResponseEvent(val request: EmbeddingRequestEvent, val usage: Usage, val runningTime: Duration, val timestamp: Instant = Instant.now()) : EmbeddingEvent

Emitted after an embedding service call.

Carries token usage only — raw vectors are intentionally excluded from the event payload (large, potentially sensitive, irrelevant to observability consumers). Use the service response directly to get the vectors.

Constructors

Link copied to clipboard
constructor(request: EmbeddingRequestEvent, usage: Usage, runningTime: Duration, timestamp: Instant = Instant.now())

Properties

Link copied to clipboard
open override val embeddingMetadata: <Error class: unknown class>

Embedding model that produced this event.

Link copied to clipboard
open override val id: String

Correlation id for this embedding interaction. Shared across the request, model-call and response events for a single call.

Link copied to clipboard
open override val inputs: List<String>

Texts being embedded.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val timestamp: Instant
Link copied to clipboard

Functions

Link copied to clipboard
open override fun toString(): String