Package org.springframework.ai.embedding
Class EmbeddingResponseMetadata
java.lang.Object
org.springframework.ai.model.AbstractResponseMetadata
org.springframework.ai.embedding.EmbeddingResponseMetadata
- All Implemented Interfaces:
ResponseMetadata
Common AI provider metadata returned in an embedding response.
- Author:
- Christian Tzolov, Thomas Vitale
-
Field Summary
Fields inherited from class org.springframework.ai.model.AbstractResponseMetadata
AI_METADATA_STRING, map
-
Constructor Summary
-
Method Summary
Methods inherited from class org.springframework.ai.model.AbstractResponseMetadata
containsKey, entrySet, get, getOrDefault, getRequired, isEmpty, keySet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.ai.model.ResponseMetadata
containsKey, entrySet, get, getOrDefault, getOrDefault, getRequired, isEmpty, keySet
-
Constructor Details
-
EmbeddingResponseMetadata
public EmbeddingResponseMetadata() -
EmbeddingResponseMetadata
-
EmbeddingResponseMetadata
-
-
Method Details
-
getModel
The model that handled the request. -
setModel
-
getUsage
The AI provider specific metadata on API usage.- See Also:
-
setUsage
-