generative-ai-cdk-constructs

@cdklabs/generative-ai-cdk-constructsDocs


@cdklabs/generative-ai-cdk-constructs / bedrock / PromptProps

Interface: PromptProps


                   PROPS FOR NEW CONSTRUCT ***************************************************************************

Properties

defaultVariant?

readonly optional defaultVariant: PromptVariant

The Prompt Variant that will be used by default.

Default

- No default variant provided.

description?

readonly optional description: string

A description of what the prompt does.

Default

- No description provided.

kmsKey?

readonly optional kmsKey: IKey

The KMS key that the prompt is encrypted with.

Default

- AWS owned and managed key.

promptName

readonly promptName: string

The name of the prompt.


variants?

readonly optional variants: PromptVariant[]

The variants of your prompt. Variants can use different messages, models, or configurations so that you can compare their outputs to decide the best variant for your use case. Maximum of 3 variants.