Skip to content

Bedrock Agent  >  Structures  >  PromptOverrideConfiguration

PromptOverrideConfiguration

Structure Class

PromptOverrideConfiguration dataclass

Contains configurations to override prompts in different parts of an agent sequence. For more information, see Advanced prompts.

Attributes

override_lambda class-attribute instance-attribute
override_lambda: str | None = None

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 Amazon Bedrock Agents.

prompt_configurations instance-attribute
prompt_configurations: list[PromptConfiguration]

Contains configurations to override a prompt template in one part of an agent sequence. For more information, see Advanced prompts.