Package org.springframework.ai.image
Class ImageResponse
java.lang.Object
org.springframework.ai.image.ImageResponse
- All Implemented Interfaces:
ModelResponse<ImageGeneration>
-
Constructor Summary
ConstructorDescriptionImageResponse
(List<ImageGeneration> generations) ImageResponse
(List<ImageGeneration> generations, ImageResponseMetadata imageResponseMetadata) -
Method Summary
-
Constructor Details
-
ImageResponse
-
ImageResponse
public ImageResponse(List<ImageGeneration> generations, ImageResponseMetadata imageResponseMetadata)
-
-
Method Details
-
getResult
Description copied from interface:ModelResponse
Retrieves the result of the AI model.- Specified by:
getResult
in interfaceModelResponse<ImageGeneration>
- Returns:
- the result generated by the AI model
-
getResults
Description copied from interface:ModelResponse
Retrieves the list of generated outputs by the AI model.- Specified by:
getResults
in interfaceModelResponse<ImageGeneration>
- Returns:
- the list of generated outputs
-
getMetadata
Description copied from interface:ModelResponse
Retrieves the response metadata associated with the AI model's response.- Specified by:
getMetadata
in interfaceModelResponse<ImageGeneration>
- Returns:
- the response metadata
-
toString
-
equals
-
hashCode
public int hashCode()
-