Class CfnPrompt.ToolConfigurationProperty
Configuration information for the tools that you pass to a model.
Inheritance
Implements
Namespace: Amazon.CDK.AwsBedrock
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ToolConfigurationProperty : Object, CfnPrompt.IToolConfigurationProperty
Syntax (vb)
Public Class ToolConfigurationProperty
Inherits Object
Implements CfnPrompt.IToolConfigurationProperty
Remarks
For more information, see Tool use (function calling) in the Amazon Bedrock User Guide.
ExampleMetadata: fixture=_generated
Examples
// 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 any;
var auto;
var json;
var toolConfigurationProperty = new ToolConfigurationProperty {
Tools = new [] { new ToolProperty {
CachePoint = new CachePointBlockProperty {
Type = "type"
},
ToolSpec = new ToolSpecificationProperty {
InputSchema = new ToolInputSchemaProperty {
Json = json
},
Name = "name",
// the properties below are optional
Description = "description"
}
} },
// the properties below are optional
ToolChoice = new ToolChoiceProperty {
Any = any,
Auto = auto,
Tool = new SpecificToolChoiceProperty {
Name = "name"
}
}
};
Synopsis
Constructors
Tool |
Properties
Tool |
If supported by model, forces the model to request a tool. |
Tools | An array of tools that you want to pass to a model. |
Constructors
ToolConfigurationProperty()
public ToolConfigurationProperty()
Properties
ToolChoice
If supported by model, forces the model to request a tool.
public object ToolChoice { get; set; }
Property Value
System.
Remarks
Tools
An array of tools that you want to pass to a model.
public object Tools { get; set; }
Property Value
System.