Class EmbeddingResponseMetadata

java.lang.Object
org.springframework.ai.model.AbstractResponseMetadata
org.springframework.ai.embedding.EmbeddingResponseMetadata
All Implemented Interfaces:
ResponseMetadata

public class EmbeddingResponseMetadata extends AbstractResponseMetadata implements ResponseMetadata
Common AI provider metadata returned in an embedding response.
Author:
Christian Tzolov, Thomas Vitale
  • Constructor Details

    • EmbeddingResponseMetadata

      public EmbeddingResponseMetadata()
    • EmbeddingResponseMetadata

      public EmbeddingResponseMetadata(String model, Usage usage)
    • EmbeddingResponseMetadata

      public EmbeddingResponseMetadata(String model, Usage usage, Map<String,Object> metadata)
  • Method Details

    • getModel

      public String getModel()
      The model that handled the request.
    • setModel

      public void setModel(String model)
    • getUsage

      public Usage getUsage()
      The AI provider specific metadata on API usage.
      See Also:
    • setUsage

      public void setUsage(Usage usage)