@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PromptOverrideConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
Contains configurations to override prompts in different parts of an agent sequence. For more information, see Advanced prompts.
Constructor and Description |
---|
PromptOverrideConfiguration() |
Modifier and Type | Method and Description |
---|---|
PromptOverrideConfiguration |
clone() |
boolean |
equals(Object obj) |
String |
getOverrideLambda()
The ARN of the Lambda function to use when parsing the raw foundation model output in parts of the agent
sequence.
|
List<PromptConfiguration> |
getPromptConfigurations()
Contains configurations to override a prompt template in one part of an agent sequence.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setOverrideLambda(String overrideLambda)
The ARN of the Lambda function to use when parsing the raw foundation model output in parts of the agent
sequence.
|
void |
setPromptConfigurations(Collection<PromptConfiguration> promptConfigurations)
Contains configurations to override a prompt template in one part of an agent sequence.
|
String |
toString()
Returns a string representation of this object.
|
PromptOverrideConfiguration |
withOverrideLambda(String overrideLambda)
The ARN of the Lambda function to use when parsing the raw foundation model output in parts of the agent
sequence.
|
PromptOverrideConfiguration |
withPromptConfigurations(Collection<PromptConfiguration> promptConfigurations)
Contains configurations to override a prompt template in one part of an agent sequence.
|
PromptOverrideConfiguration |
withPromptConfigurations(PromptConfiguration... promptConfigurations)
Contains configurations to override a prompt template in one part of an agent sequence.
|
public void setOverrideLambda(String overrideLambda)
The ARN of the Lambda function to use when parsing the raw foundation model output in parts of the agent
sequence. If you specify this field, at least one of the promptConfigurations
must contain a
parserMode
value that is set to OVERRIDDEN
. For more information, see Parser Lambda function in Agents
for Amazon Bedrock.
overrideLambda
- The ARN of the Lambda function to use when parsing the raw foundation model output in parts of the agent
sequence. If you specify this field, at least one of the promptConfigurations
must contain a
parserMode
value that is set to OVERRIDDEN
. For more information, see Parser Lambda function in
Agents for Amazon Bedrock.public String getOverrideLambda()
The ARN of the Lambda function to use when parsing the raw foundation model output in parts of the agent
sequence. If you specify this field, at least one of the promptConfigurations
must contain a
parserMode
value that is set to OVERRIDDEN
. For more information, see Parser Lambda function in Agents
for Amazon Bedrock.
promptConfigurations
must contain a
parserMode
value that is set to OVERRIDDEN
. For more information, see Parser Lambda function in
Agents for Amazon Bedrock.public PromptOverrideConfiguration withOverrideLambda(String overrideLambda)
The ARN of the Lambda function to use when parsing the raw foundation model output in parts of the agent
sequence. If you specify this field, at least one of the promptConfigurations
must contain a
parserMode
value that is set to OVERRIDDEN
. For more information, see Parser Lambda function in Agents
for Amazon Bedrock.
overrideLambda
- The ARN of the Lambda function to use when parsing the raw foundation model output in parts of the agent
sequence. If you specify this field, at least one of the promptConfigurations
must contain a
parserMode
value that is set to OVERRIDDEN
. For more information, see Parser Lambda function in
Agents for Amazon Bedrock.public List<PromptConfiguration> getPromptConfigurations()
Contains configurations to override a prompt template in one part of an agent sequence. For more information, see Advanced prompts.
public void setPromptConfigurations(Collection<PromptConfiguration> promptConfigurations)
Contains configurations to override a prompt template in one part of an agent sequence. For more information, see Advanced prompts.
promptConfigurations
- Contains configurations to override a prompt template in one part of an agent sequence. For more
information, see Advanced prompts.public PromptOverrideConfiguration withPromptConfigurations(PromptConfiguration... promptConfigurations)
Contains configurations to override a prompt template in one part of an agent sequence. For more information, see Advanced prompts.
NOTE: This method appends the values to the existing list (if any). Use
setPromptConfigurations(java.util.Collection)
or withPromptConfigurations(java.util.Collection)
if you want to override the existing values.
promptConfigurations
- Contains configurations to override a prompt template in one part of an agent sequence. For more
information, see Advanced prompts.public PromptOverrideConfiguration withPromptConfigurations(Collection<PromptConfiguration> promptConfigurations)
Contains configurations to override a prompt template in one part of an agent sequence. For more information, see Advanced prompts.
promptConfigurations
- Contains configurations to override a prompt template in one part of an agent sequence. For more
information, see Advanced prompts.public String toString()
toString
in class Object
Object.toString()
public PromptOverrideConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.