Interface CfnPrompt.PromptTemplateConfigurationProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnPrompt.PromptTemplateConfigurationProperty.Jsii$Proxy
Enclosing class:
CfnPrompt

@Stability(Stable) public static interface CfnPrompt.PromptTemplateConfigurationProperty extends software.amazon.jsii.JsiiSerializable
Contains the message for a prompt.

For more information, see Construct and store reusable prompts with Prompt management in Amazon Bedrock .

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.bedrock.*;
 Object any;
 Object auto;
 Object json;
 PromptTemplateConfigurationProperty promptTemplateConfigurationProperty = PromptTemplateConfigurationProperty.builder()
         .chat(ChatPromptTemplateConfigurationProperty.builder()
                 .messages(List.of(MessageProperty.builder()
                         .content(List.of(ContentBlockProperty.builder()
                                 .text("text")
                                 .build()))
                         .role("role")
                         .build()))
                 // the properties below are optional
                 .inputVariables(List.of(PromptInputVariableProperty.builder()
                         .name("name")
                         .build()))
                 .system(List.of(SystemContentBlockProperty.builder()
                         .text("text")
                         .build()))
                 .toolConfiguration(ToolConfigurationProperty.builder()
                         .tools(List.of(ToolProperty.builder()
                                 .toolSpec(ToolSpecificationProperty.builder()
                                         .inputSchema(ToolInputSchemaProperty.builder()
                                                 .json(json)
                                                 .build())
                                         .name("name")
                                         // the properties below are optional
                                         .description("description")
                                         .build())
                                 .build()))
                         // the properties below are optional
                         .toolChoice(ToolChoiceProperty.builder()
                                 .any(any)
                                 .auto(auto)
                                 .tool(SpecificToolChoiceProperty.builder()
                                         .name("name")
                                         .build())
                                 .build())
                         .build())
                 .build())
         .text(TextPromptTemplateConfigurationProperty.builder()
                 .inputVariables(List.of(PromptInputVariableProperty.builder()
                         .name("name")
                         .build()))
                 .text("text")
                 .textS3Location(TextS3LocationProperty.builder()
                         .bucket("bucket")
                         .key("key")
                         // the properties below are optional
                         .version("version")
                         .build())
                 .build())
         .build();
 

See Also: