@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ExternalSourcesGenerationConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
Contains the generation configuration of the external source wrapper object.
Constructor and Description |
---|
ExternalSourcesGenerationConfiguration() |
Modifier and Type | Method and Description |
---|---|
ExternalSourcesGenerationConfiguration |
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 an external
source.
|
PromptTemplate |
getPromptTemplate()
Contain the textPromptTemplate string for the external source wrapper object.
|
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 an external
source.
|
void |
setPromptTemplate(PromptTemplate promptTemplate)
Contain the textPromptTemplate string for the external source wrapper object.
|
String |
toString()
Returns a string representation of this object.
|
ExternalSourcesGenerationConfiguration |
withGuardrailConfiguration(GuardrailConfiguration guardrailConfiguration)
The configuration details for the guardrail.
|
ExternalSourcesGenerationConfiguration |
withInferenceConfig(InferenceConfig inferenceConfig)
Configuration settings for inference when using RetrieveAndGenerate to generate responses while using an external
source.
|
ExternalSourcesGenerationConfiguration |
withPromptTemplate(PromptTemplate promptTemplate)
Contain the textPromptTemplate string for the external source wrapper object.
|
public ExternalSourcesGenerationConfiguration()
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 ExternalSourcesGenerationConfiguration 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 an external source.
inferenceConfig
- Configuration settings for inference when using RetrieveAndGenerate to generate responses while using an
external source.public InferenceConfig getInferenceConfig()
Configuration settings for inference when using RetrieveAndGenerate to generate responses while using an external source.
public ExternalSourcesGenerationConfiguration withInferenceConfig(InferenceConfig inferenceConfig)
Configuration settings for inference when using RetrieveAndGenerate to generate responses while using an external source.
inferenceConfig
- Configuration settings for inference when using RetrieveAndGenerate to generate responses while using an
external source.public void setPromptTemplate(PromptTemplate promptTemplate)
Contain the textPromptTemplate string for the external source wrapper object.
promptTemplate
- Contain the textPromptTemplate string for the external source wrapper object.public PromptTemplate getPromptTemplate()
Contain the textPromptTemplate string for the external source wrapper object.
public ExternalSourcesGenerationConfiguration withPromptTemplate(PromptTemplate promptTemplate)
Contain the textPromptTemplate string for the external source wrapper object.
promptTemplate
- Contain the textPromptTemplate string for the external source wrapper object.public String toString()
toString
in class Object
Object.toString()
public ExternalSourcesGenerationConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.