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());
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
protected
PromptTemplateConfiguration
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
PromptTemplateConfiguration
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionstatic PromptTemplateConfiguration
(experimental) Creates a chat template configuration.static PromptTemplateConfiguration
(experimental) Creates a text template configuration.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
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
-
chat
@Stability(Experimental) @NotNull public static PromptTemplateConfiguration chat(@NotNull ChatTemplateConfigurationProps props) (experimental) Creates a chat template configuration.- Parameters:
props
- This parameter is required.
-
text
@Stability(Experimental) @NotNull public static PromptTemplateConfiguration text(@NotNull TextTemplateConfigurationProps props) (experimental) Creates a text template configuration.- Parameters:
props
- This parameter is required.
-