interface ToolConfigurationProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Bedrock.Mixins.CfnPromptPropsMixin.ToolConfigurationProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsbedrock/mixins#CfnPromptPropsMixin_ToolConfigurationProperty |
Java | software.amazon.awscdk.mixins.preview.services.bedrock.mixins.CfnPromptPropsMixin.ToolConfigurationProperty |
Python | aws_cdk.mixins_preview.aws_bedrock.mixins.CfnPromptPropsMixin.ToolConfigurationProperty |
TypeScript | @aws-cdk/mixins-preview » aws_bedrock » mixins » 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 { mixins as bedrock_mixins } from '@aws-cdk/mixins-preview/aws-bedrock';
declare const any: any;
declare const auto: any;
declare const json: any;
const toolConfigurationProperty: bedrock_mixins.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