@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GenerationConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
Contains configurations for response generation based on the knowledge base query results.
This data type is used in the following API operations:
Constructor and Description |
---|
GenerationConfiguration() |
Modifier and Type | Method and Description |
---|---|
GenerationConfiguration |
clone() |
boolean |
equals(Object obj) |
PromptTemplate |
getPromptTemplate()
Contains 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 |
setPromptTemplate(PromptTemplate promptTemplate)
Contains the template for the prompt that's sent to the model for response generation.
|
String |
toString()
Returns a string representation of this object.
|
GenerationConfiguration |
withPromptTemplate(PromptTemplate promptTemplate)
Contains the template for the prompt that's sent to the model for response generation.
|
public void setPromptTemplate(PromptTemplate promptTemplate)
Contains the template for the prompt that's sent to the model for response generation.
promptTemplate
- Contains the template for the prompt that's sent to the model for response generation.public PromptTemplate getPromptTemplate()
Contains the template for the prompt that's sent to the model for response generation.
public GenerationConfiguration withPromptTemplate(PromptTemplate promptTemplate)
Contains the template for the prompt that's sent to the model for response generation.
promptTemplate
- Contains the template for the prompt that's sent to the model for response generation.public String toString()
toString
in class Object
Object.toString()
public GenerationConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.