CommonPromptVariantProps

class aws_cdk.aws_bedrock_alpha.CommonPromptVariantProps(*, model, variant_name, prompt_variables=None)

Bases: object

(experimental) Common properties for all prompt variants.

Parameters:
  • model (IBedrockInvokable) – (experimental) The model which is used to run the prompt. The model could be a foundation model, a custom model, or a provisioned model.

  • variant_name (str) – (experimental) The name of the prompt variant.

  • prompt_variables (Optional[Sequence[str]]) – (experimental) The variables in the prompt template that can be filled in at runtime. Default: - No variables defined.

Stability:

experimental

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_bedrock_alpha as bedrock_alpha

# bedrock_invokable: bedrock_alpha.IBedrockInvokable

common_prompt_variant_props = bedrock_alpha.CommonPromptVariantProps(
    model=bedrock_invokable,
    variant_name="variantName",

    # the properties below are optional
    prompt_variables=["promptVariables"]
)

Attributes

model

(experimental) The model which is used to run the prompt.

The model could be a foundation model, a custom model, or a provisioned model.

Stability:

experimental

prompt_variables

(experimental) The variables in the prompt template that can be filled in at runtime.

Default:
  • No variables defined.

Stability:

experimental

variant_name

(experimental) The name of the prompt variant.

Stability:

experimental