Interface CfnPrompt.ToolChoiceProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnPrompt.ToolChoiceProperty.Jsii$Proxy
- Enclosing class:
CfnPrompt
@Stability(Stable)
public static interface CfnPrompt.ToolChoiceProperty
extends software.amazon.jsii.JsiiSerializable
Determines which tools the model should request in a call to
Converse or ConverseStream .
For more information, see Call a tool with the Converse API 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;
ToolChoiceProperty toolChoiceProperty = ToolChoiceProperty.builder()
.any(any)
.auto(auto)
.tool(SpecificToolChoiceProperty.builder()
.name("name")
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnPrompt.ToolChoicePropertystatic final classAn implementation forCfnPrompt.ToolChoiceProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAny
The model must request at least one tool (no text is generated).- See Also:
-
getAuto
(Default).The Model automatically decides if a tool should be called or whether to generate text instead.
- See Also:
-
getTool
The Model must request the specified tool.Only supported by Anthropic Claude 3 and Amazon Nova models.
Returns union: either
IResolvableorCfnPrompt.SpecificToolChoiceProperty- See Also:
-
builder
-