Class EmbeddingModelCall

java.lang.Object
dev.langchain4j.test.service.ModelCall
dev.langchain4j.test.service.EmbeddingModelCall

@Experimental public final class EmbeddingModelCall extends ModelCall
A call to a embedding model made during an AI Service invocation (see ModelCall).
  • Method Details

    • request

      public EmbeddingRequest request()
      Returns the request sent to the embedding model.
      Specified by:
      request in class ModelCall
    • response

      public EmbeddingResponse response()
      Returns the response of the embedding model, or null if the call failed or had not ended when the invocation finished.
      Specified by:
      response in class ModelCall