@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) |
GuardrailConfiguration |
getGuardrailConfiguration()
The configuration details for the guardrail.
|
InferenceConfig |
getInferenceConfig()
Configuration settings for inference when using RetrieveAndGenerate to generate responses while using a knowledge
base as a source.
|
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 |
setGuardrailConfiguration(GuardrailConfiguration guardrailConfiguration)
The configuration details for the guardrail.
|
void |
setInferenceConfig(InferenceConfig inferenceConfig)
Configuration settings for inference when using RetrieveAndGenerate to generate responses while using a knowledge
base as a source.
|
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 |
withGuardrailConfiguration(GuardrailConfiguration guardrailConfiguration)
The configuration details for the guardrail.
|
GenerationConfiguration |
withInferenceConfig(InferenceConfig inferenceConfig)
Configuration settings for inference when using RetrieveAndGenerate to generate responses while using a knowledge
base as a source.
|
GenerationConfiguration |
withPromptTemplate(PromptTemplate promptTemplate)
Contains the template for the prompt that's sent to the model for response generation.
|
public void setGuardrailConfiguration(GuardrailConfiguration guardrailConfiguration)
The configuration details for the guardrail.
guardrailConfiguration
- The configuration details for the guardrail.public GuardrailConfiguration getGuardrailConfiguration()
The configuration details for the guardrail.
public GenerationConfiguration withGuardrailConfiguration(GuardrailConfiguration guardrailConfiguration)
The configuration details for the guardrail.
guardrailConfiguration
- The configuration details for the guardrail.public void setInferenceConfig(InferenceConfig inferenceConfig)
Configuration settings for inference when using RetrieveAndGenerate to generate responses while using a knowledge base as a source.
inferenceConfig
- Configuration settings for inference when using RetrieveAndGenerate to generate responses while using a
knowledge base as a source.public InferenceConfig getInferenceConfig()
Configuration settings for inference when using RetrieveAndGenerate to generate responses while using a knowledge base as a source.
public GenerationConfiguration withInferenceConfig(InferenceConfig inferenceConfig)
Configuration settings for inference when using RetrieveAndGenerate to generate responses while using a knowledge base as a source.
inferenceConfig
- Configuration settings for inference when using RetrieveAndGenerate to generate responses while using a
knowledge base as a source.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.