EmbeddingModelCallEvent

class EmbeddingModelCallEvent(val embeddingMetadata: <Error class: unknown class>, val id: String, val request: <Error class: unknown class>, val timestamp: Instant = Instant.now()) : EmbeddingEvent

Spring AI low level event: embedding model call.

Emitted at the actual EmbeddingModel.call(EmbeddingRequest) point, capturing the fully-built Spring AI request (with its options) sent to the provider.

Independent of any AgentProcess so callers without an active agent (HTTP controllers, batch jobs, schedulers) still see it.

Constructors

Link copied to clipboard
constructor(embeddingMetadata: <Error class: unknown class>, id: String, request: <Error class: unknown class>, 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
val request: <Error class: unknown class>
Link copied to clipboard
open val timestamp: Instant

Functions

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