Class PromptTemplate
java.lang.Object
software.amazon.awssdk.services.bedrockagentruntime.model.PromptTemplate
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<PromptTemplate.Builder,PromptTemplate>
@Generated("software.amazon.awssdk:codegen")
public final class PromptTemplate
extends Object
implements SdkPojo, Serializable, ToCopyableBuilder<PromptTemplate.Builder,PromptTemplate>
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
filterfield
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic PromptTemplate.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()static Class<? extends PromptTemplate.Builder>final StringThe template for the prompt that's sent to the model for response generation.final StringtoString()Returns a string representation of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
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:
- Returns:
- 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:
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<PromptTemplate.Builder,PromptTemplate>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-