@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PromptTemplate extends Object implements Serializable, Cloneable, StructuredPojo
Contains the template for the prompt that's sent to the model for response generation. For more information, see Knowledge base prompt templates.
This data type is used in the following API operations:
RetrieveAndGenerate request – in the filter
field
Constructor and Description |
---|
PromptTemplate() |
Modifier and Type | Method and Description |
---|---|
PromptTemplate |
clone() |
boolean |
equals(Object obj) |
String |
getTextPromptTemplate()
The template for the prompt that's sent to the model for response generation.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setTextPromptTemplate(String textPromptTemplate)
The template for the prompt that's sent to the model for response generation.
|
String |
toString()
Returns a string representation of this object.
|
PromptTemplate |
withTextPromptTemplate(String textPromptTemplate)
The template for the prompt that's sent to the model for response generation.
|
public void setTextPromptTemplate(String textPromptTemplate)
The template for the prompt that's sent to the model for response generation. You can include prompt placeholders, which become replaced before the prompt is sent to the model to provide instructions and context to the model. In addition, you can include XML tags to delineate meaningful sections of the prompt template.
For more information, see the following resources:
textPromptTemplate
- The template for the prompt that's sent to the model for response generation. You can include prompt
placeholders, which become replaced before the prompt is sent to the model to provide instructions and
context to the model. In addition, you can include XML tags to delineate meaningful sections of the prompt
template.
For more information, see the following resources:
public String getTextPromptTemplate()
The template for the prompt that's sent to the model for response generation. You can include prompt placeholders, which become replaced before the prompt is sent to the model to provide instructions and context to the model. In addition, you can include XML tags to delineate meaningful sections of the prompt template.
For more information, see the following resources:
For more information, see the following resources:
public PromptTemplate withTextPromptTemplate(String textPromptTemplate)
The template for the prompt that's sent to the model for response generation. You can include prompt placeholders, which become replaced before the prompt is sent to the model to provide instructions and context to the model. In addition, you can include XML tags to delineate meaningful sections of the prompt template.
For more information, see the following resources:
textPromptTemplate
- The template for the prompt that's sent to the model for response generation. You can include prompt
placeholders, which become replaced before the prompt is sent to the model to provide instructions and
context to the model. In addition, you can include XML tags to delineate meaningful sections of the prompt
template.
For more information, see the following resources:
public String toString()
toString
in class Object
Object.toString()
public PromptTemplate clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.