Skip to content

Latest commit

 

History

History
67 lines (38 loc) · 1.15 KB

File metadata and controls

67 lines (38 loc) · 1.15 KB

@cdklabs/generative-ai-cdk-constructsDocs


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

Interface: PromptProps

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.

encryptionKey?

readonly optional encryptionKey: 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.