Package org.springframework.ai.image
Class ImagePrompt
java.lang.Object
org.springframework.ai.image.ImagePrompt
- All Implemented Interfaces:
ModelRequest<List<ImageMessage>>
-
Constructor Summary
ConstructorDescriptionImagePrompt
(String instructions) ImagePrompt
(String instructions, ImageOptions imageOptions) ImagePrompt
(List<ImageMessage> messages) ImagePrompt
(List<ImageMessage> messages, ImageOptions imageModelOptions) ImagePrompt
(ImageMessage imageMessage, ImageOptions imageOptions) -
Method Summary
-
Constructor Details
-
ImagePrompt
-
ImagePrompt
-
ImagePrompt
-
ImagePrompt
-
ImagePrompt
-
-
Method Details
-
getInstructions
Description copied from interface:ModelRequest
Retrieves the instructions or input required by the AI model.- Specified by:
getInstructions
in interfaceModelRequest<List<ImageMessage>>
- Returns:
- the instructions or input required by the AI model
-
getOptions
Description copied from interface:ModelRequest
Retrieves the customizable options for AI model interactions.- Specified by:
getOptions
in interfaceModelRequest<List<ImageMessage>>
- Returns:
- the customizable options for AI model interactions
-
toString
-
equals
-
hashCode
public int hashCode()
-