Interface CfnPromptVersionPropsMixin.ChatPromptTemplateConfigurationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnPromptVersionPropsMixin.ChatPromptTemplateConfigurationProperty.Jsii$Proxy
- Enclosing class:
CfnPromptVersionPropsMixin
@Stability(Stable)
public static interface CfnPromptVersionPropsMixin.ChatPromptTemplateConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
Contains configurations to use a prompt in a conversational format.
For more information, see Create a prompt using Prompt management .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.mixins.preview.services.bedrock.mixins.*;
Object any;
Object auto;
Object json;
ChatPromptTemplateConfigurationProperty chatPromptTemplateConfigurationProperty = ChatPromptTemplateConfigurationProperty.builder()
.inputVariables(List.of(PromptInputVariableProperty.builder()
.name("name")
.build()))
.messages(List.of(MessageProperty.builder()
.content(List.of(ContentBlockProperty.builder()
.cachePoint(CachePointBlockProperty.builder()
.type("type")
.build())
.text("text")
.build()))
.role("role")
.build()))
.system(List.of(SystemContentBlockProperty.builder()
.cachePoint(CachePointBlockProperty.builder()
.type("type")
.build())
.text("text")
.build()))
.toolConfiguration(ToolConfigurationProperty.builder()
.toolChoice(ToolChoiceProperty.builder()
.any(any)
.auto(auto)
.tool(SpecificToolChoiceProperty.builder()
.name("name")
.build())
.build())
.tools(List.of(ToolProperty.builder()
.cachePoint(CachePointBlockProperty.builder()
.type("type")
.build())
.toolSpec(ToolSpecificationProperty.builder()
.description("description")
.inputSchema(ToolInputSchemaProperty.builder()
.json(json)
.build())
.name("name")
.build())
.build()))
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classstatic final classAn implementation forCfnPromptVersionPropsMixin.ChatPromptTemplateConfigurationProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectAn array of the variables in the prompt template.default ObjectContains messages in the chat for the prompt.default ObjectContains system prompts to provide context to the model or to describe how it should behave.default ObjectConfiguration information for the tools that the model can use when generating a response.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getInputVariables
An array of the variables in the prompt template.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnPromptVersionPropsMixin.PromptInputVariableProperty>- See Also:
-
getMessages
Contains messages in the chat for the prompt.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnPromptVersionPropsMixin.MessageProperty>- See Also:
-
getSystem
Contains system prompts to provide context to the model or to describe how it should behave.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnPromptVersionPropsMixin.SystemContentBlockProperty>- See Also:
-
getToolConfiguration
Configuration information for the tools that the model can use when generating a response.Returns union: either
IResolvableorCfnPromptVersionPropsMixin.ToolConfigurationProperty- See Also:
-
builder
@Stability(Stable) static CfnPromptVersionPropsMixin.ChatPromptTemplateConfigurationProperty.Builder builder()
-