Package org.springframework.ai.image
Class ImageResponseMetadata
java.lang.Object
org.springframework.ai.model.MutableResponseMetadata
org.springframework.ai.image.ImageResponseMetadata
- All Implemented Interfaces:
ResponseMetadata
- Direct Known Subclasses:
OpenAiImageResponseMetadata
Represents metadata associated with an image response. It provides additional
information about the generative response from an AI model, including the creation
timestamp of the generated image.
- Since:
- 1.0.0
- Author:
- Mark Pollack, Thomas Vitale
-
Constructor Summary
ConstructorsConstructorDescriptionImageResponseMetadata(Long created) ImageResponseMetadata(Long created, Usage usage) Create a newImageResponseMetadata. -
Method Summary
Methods inherited from class org.springframework.ai.model.MutableResponseMetadata
clear, computeIfAbsent, containsKey, entrySet, get, getOrDefault, getRawMap, getRequired, isEmpty, keySet, put, removeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.ai.model.ResponseMetadata
getOrDefault
-
Constructor Details
-
ImageResponseMetadata
public ImageResponseMetadata() -
ImageResponseMetadata
-
ImageResponseMetadata
Create a newImageResponseMetadata.- Parameters:
created- the creation timestampusage- the token usage associated with the image response- Since:
- 2.0.1
-
-
Method Details
-
getCreated
-
getUsage
Return the token usage associated with the image response.- Since:
- 2.0.1
-
setUsage
Set the token usage associated with the image response.- Since:
- 2.0.1
-