Class PromptTemplateConfiguration

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.bedrock.alpha.PromptTemplateConfiguration
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.112.0 (build de1bc80)", date="2025-07-24T11:33:25.574Z") @Stability(Experimental) public abstract class PromptTemplateConfiguration extends software.amazon.jsii.JsiiObject
(experimental) Abstract base class for prompt template configurations.

This provides a high-level abstraction over the underlying CloudFormation template configuration properties, offering a more developer-friendly interface while maintaining full compatibility with the underlying AWS Bedrock service.

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.alpha.*;
 ChatMessage chatMessage;
 Tool tool;
 ToolChoice toolChoice;
 PromptTemplateConfiguration promptTemplateConfiguration = PromptTemplateConfiguration.chat(ChatTemplateConfigurationProps.builder()
         .messages(List.of(chatMessage))
         // the properties below are optional
         .inputVariables(List.of("inputVariables"))
         .system("system")
         .toolConfiguration(ToolConfiguration.builder()
                 .toolChoice(toolChoice)
                 .tools(List.of(tool))
                 .build())
         .build());
 
  • Constructor Details

    • PromptTemplateConfiguration

      protected PromptTemplateConfiguration(software.amazon.jsii.JsiiObjectRef objRef)
    • PromptTemplateConfiguration

      protected PromptTemplateConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • PromptTemplateConfiguration

      @Stability(Experimental) protected PromptTemplateConfiguration()
  • Method Details