Class EmbeddingModelResponseContext

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

@Experimental public class EmbeddingModelResponseContext extends Object
The context passed to EmbeddingModelListener.onResponse(EmbeddingModelResponseContext) after a successful embedding call. It gives access to the EmbeddingRequest that was embedded, the resulting EmbeddingResponse (the embeddings and response metadata), the EmbeddingModel, the ModelProvider, and the attributes map shared with the request callback of the same listener.
Since:
1.11.0