ToolConfigurationProperty Struct
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
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 any: any;
declare const auto: any;
declare const json: any;
const toolConfigurationProperty: bedrock.CfnPrompt.ToolConfigurationProperty = {
tools: [{
cachePoint: {
type: 'type',
},
toolSpec: {
inputSchema: {
json: json,
},
name: 'name',
// the properties below are optional
description: 'description',
},
}],
// the properties below are optional
toolChoice: {
any: any,
auto: auto,
tool: {
name: 'name',
},
},
};
Properties
toolChoiceoptionalIResolvable | CfnPrompt.ToolChoicePropertytool_choiceoptionaltyping.Union[IResolvable, ToolChoiceProperty]toolChoiceoptionalIResolvableToolChoiceoptionalIResolvableToolChoiceoptionalinterface{}#If supported by model, forces the model to request a tool.
toolsIResolvable | IResolvable | CfnPrompt.ToolProperty[]toolstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ToolProperty]]]toolsIResolvableToolsIResolvableToolsinterface{}required#An array of tools that you want to pass to a model.