interface ToolConfigurationProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.Bedrock.CfnPromptPropsMixin.ToolConfigurationProperty |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awsbedrock#CfnPromptPropsMixin_ToolConfigurationProperty |
Java | software.amazon.awscdk.cfnpropertymixins.services.bedrock.CfnPromptPropsMixin.ToolConfigurationProperty |
Python | aws_cdk.cfn_property_mixins.aws_bedrock.CfnPromptPropsMixin.ToolConfigurationProperty |
TypeScript | @aws-cdk/cfn-property-mixins » aws_bedrock » CfnPromptPropsMixin » ToolConfigurationProperty |
Configuration information for the tools that you pass to a model.
For more information, see Tool use (function calling) 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 { aws_bedrock as bedrock } from '@aws-cdk/cfn-property-mixins';
declare const any: any;
declare const auto: any;
declare const json: any;
const toolConfigurationProperty: bedrock.CfnPromptPropsMixin.ToolConfigurationProperty = {
toolChoice: {
any: any,
auto: auto,
tool: {
name: 'name',
},
},
tools: [{
cachePoint: {
type: 'type',
},
toolSpec: {
description: 'description',
inputSchema: {
json: json,
},
name: 'name',
},
}],
};
Properties
| Name | Type | Description |
|---|---|---|
| tool | IResolvable | Tool | If supported by model, forces the model to request a tool. |
| tools? | IResolvable | (IResolvable | Tool)[] | An array of tools that you want to pass to a model. |
toolChoice?
Type:
IResolvable | Tool
(optional)
If supported by model, forces the model to request a tool.
tools?
Type:
IResolvable | (IResolvable | Tool)[]
(optional)
An array of tools that you want to pass to a model.

.NET
Go
Java
Python
TypeScript