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.113.0 (build fc68b25)", date="2025-09-02T11:25:42.850Z") @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