Class EmbeddingModelRequestContext

java.lang.Object
dev.langchain4j.model.embedding.listener.EmbeddingModelRequestContext

@Experimental public class EmbeddingModelRequestContext extends Object
The context passed to EmbeddingModelListener.onRequest(EmbeddingModelRequestContext) before an embedding call. It gives access to the EmbeddingRequest being embedded (its inputs and per-call parameters), the EmbeddingModel, the ModelProvider, and a mutable attributes map that can be used to pass data to the response/error callbacks of the same listener.
Since:
1.11.0