Package org.springframework.ai.image
Class ImageGeneration
java.lang.Object
org.springframework.ai.image.ImageGeneration
- All Implemented Interfaces:
ModelResult<Image>
-
Constructor Summary
ConstructorDescriptionImageGeneration
(Image image) ImageGeneration
(Image image, ImageGenerationMetadata imageGenerationMetadata) -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the metadata associated with the result of an AI model.Retrieves the output generated by the AI model.toString()
-
Constructor Details
-
ImageGeneration
-
ImageGeneration
-
-
Method Details
-
getOutput
Description copied from interface:ModelResult
Retrieves the output generated by the AI model.- Specified by:
getOutput
in interfaceModelResult<Image>
- Returns:
- the output generated by the AI model
-
getMetadata
Description copied from interface:ModelResult
Retrieves the metadata associated with the result of an AI model.- Specified by:
getMetadata
in interfaceModelResult<Image>
- Returns:
- the metadata associated with the result
-
toString
-