ToolProperty Struct
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.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrock as bedrock } from 'aws-cdk-lib';
declare const json: any;
const toolProperty: bedrock.CfnPromptVersion.ToolProperty = {
cachePoint: {
type: 'type',
},
toolSpec: {
inputSchema: {
json: json,
},
name: 'name',
// the properties below are optional
description: 'description',
},
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_bedrock as bedrock
# json: Any
tool_property = bedrock.CfnPromptVersion.ToolProperty(
cache_point=bedrock.CfnPromptVersion.CachePointBlockProperty(
type="type"
),
tool_spec=bedrock.CfnPromptVersion.ToolSpecificationProperty(
input_schema=bedrock.CfnPromptVersion.ToolInputSchemaProperty(
json=json
),
name="name",
# the properties below are optional
description="description"
)
)
java
// 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();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Bedrock;
var json;
var toolProperty = new ToolProperty {
CachePoint = new CachePointBlockProperty {
Type = "type"
},
ToolSpec = new ToolSpecificationProperty {
InputSchema = new ToolInputSchemaProperty {
Json = json
},
Name = "name",
// the properties below are optional
Description = "description"
}
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
var json interface{}
toolProperty := &ToolProperty{
CachePoint: &CachePointBlockProperty{
Type: jsii.String("type"),
},
ToolSpec: &ToolSpecificationProperty{
InputSchema: &ToolInputSchemaProperty{
Json: json,
},
Name: jsii.String("name"),
// the properties below are optional
Description: jsii.String("description"),
},
}
Properties
cachePointoptionalIResolvable | CfnPromptVersion.cache_pointoptionaltyping.Union[IResolvable, CachePointBlockProperty]cachePointoptionalIResolvableCachePointoptionalIResolvableCachePointoptionalinterface{} #CachePoint to include in the tool configuration.
toolSpecoptionalIResolvable | CfnPromptVersion.tool_specoptionaltyping.Union[IResolvable, ToolSpecificationProperty]toolSpecoptionalIResolvableToolSpecoptionalIResolvableToolSpecoptionalinterface{} #The specfication for the tool.