Skip to content

Bedrock Agent Runtime  >  Unions  >  OptimizedPrompt

OptimizedPrompt

Union Type

OptimizedPrompt module-attribute

Contains information about the optimized prompt.

Union Member Types

OptimizedPromptTextPrompt dataclass

Contains information about the text in the prompt that was optimized.

Attributes

value instance-attribute
value: TextPrompt

OptimizedPromptUnknown dataclass

Represents an unknown variant.

If you receive this value, you will need to update your library to receive the parsed value.

This value may not be deliberately sent.

Attributes

tag instance-attribute
tag: str