Interface CfnPrompt.ToolConfigurationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnPrompt.ToolConfigurationProperty.Jsii$Proxy
- Enclosing class:
CfnPrompt
@Stability(Stable)
public static interface CfnPrompt.ToolConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
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 software.amazon.awscdk.services.bedrock.*;
Object any;
Object auto;
Object json;
ToolConfigurationProperty toolConfigurationProperty = ToolConfigurationProperty.builder()
.tools(List.of(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()))
// the properties below are optional
.toolChoice(ToolChoiceProperty.builder()
.any(any)
.auto(auto)
.tool(SpecificToolChoiceProperty.builder()
.name("name")
.build())
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnPrompt.ToolConfigurationPropertystatic final classAn implementation forCfnPrompt.ToolConfigurationProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getTools
An array of tools that you want to pass to a model.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnPrompt.ToolProperty>- See Also:
-
getToolChoice
If supported by model, forces the model to request a tool.Returns union: either
IResolvableorCfnPrompt.ToolChoiceProperty- See Also:
-
builder
-