Class Prompt
java.lang.Object
org.springframework.ai.chat.prompt.Prompt
- All Implemented Interfaces:
ModelRequest<List<Message>>
The Prompt class represents a prompt used in AI model requests. A prompt consists of
one or more messages and additional chat options.
- Author:
- Mark Pollack, luocongqiu
-
Constructor Details
-
Prompt
-
Prompt
-
Prompt
-
Prompt
-
Prompt
-
Prompt
-
-
Method Details
-
getContents
-
getOptions
Description copied from interface:ModelRequest
Retrieves the customizable options for AI model interactions.- Specified by:
getOptions
in interfaceModelRequest<List<Message>>
- Returns:
- the customizable options for AI model interactions
-
getInstructions
Description copied from interface:ModelRequest
Retrieves the instructions or input required by the AI model.- Specified by:
getInstructions
in interfaceModelRequest<List<Message>>
- Returns:
- the instructions or input required by the AI model
-
toString
-
equals
-
hashCode
public int hashCode() -
copy
-