Skip to content

Bedrock Runtime  >  Unions  >  PromptVariableValues

PromptVariableValues

Union Type

PromptVariableValues module-attribute

PromptVariableValues = Union[PromptVariableValuesText | PromptVariableValuesUnknown]

Contains a map of variables in a prompt from Prompt management to an object containing the values to fill in for them when running model invocation. For more information, see How Prompt management works.

Union Member Types

PromptVariableValuesText dataclass

The text value that the variable maps to.

Attributes

value instance-attribute
value: str

PromptVariableValuesUnknown 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