Interface CfnPromptVersion.ToolProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnPromptVersion.ToolProperty.Jsii$Proxy
- Enclosing class:
CfnPromptVersion
@Stability(Stable)
public static interface CfnPromptVersion.ToolProperty
extends software.amazon.jsii.JsiiSerializable
Information about a tool that you can use with the Converse API.
For more information, see Call a tool with the Converse API in the Amazon Bedrock User Guide.
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 json;
ToolProperty toolProperty = ToolProperty.builder()
.cachePoint(CachePointBlockProperty.builder()
.type("type")
.build())
.toolSpec(ToolSpecificationProperty.builder()
.inputSchema(ToolInputSchemaProperty.builder()
.json(json)
.build())
.name("name")
// the properties below are optional
.description("description")
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnPromptVersion.ToolPropertystatic final classAn implementation forCfnPromptVersion.ToolProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getCachePoint
CachePoint to include in the tool configuration.Returns union: either
IResolvableorCfnPromptVersion.CachePointBlockProperty- See Also:
-
getToolSpec
The specfication for the tool.Returns union: either
IResolvableorCfnPromptVersion.ToolSpecificationProperty- See Also:
-
builder
-