Interface CfnPromptVersion.ToolConfigurationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnPromptVersion.ToolConfigurationProperty.Jsii$Proxy
- Enclosing class:
CfnPromptVersion
@Stability(Stable)
public static interface CfnPromptVersion.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 class
A builder forCfnPromptVersion.ToolConfigurationProperty
static final class
An implementation forCfnPromptVersion.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.- See Also:
-
getToolChoice
If supported by model, forces the model to request a tool.- See Also:
-
builder
-