Class EmbeddingModelErrorContext

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

@Experimental public class EmbeddingModelErrorContext extends Object
The context passed to EmbeddingModelListener.onError(EmbeddingModelErrorContext) when an embedding call fails. It gives access to the Throwable that was thrown, the EmbeddingRequest that was being embedded, the EmbeddingModel, the ModelProvider, and the attributes map shared with the request callback of the same listener.
Since:
1.11.0