@cdklabs/generative-ai-cdk-constructs
@cdklabs/generative-ai-cdk-constructs / bedrock / ToolChoice
new ToolChoice(
any
,auto
,tool
?):ToolChoice
any
any
string
readonly
optional
any:any
readonly
optional
auto:any
readonly
optional
tool:string
readonly
static
ANY:ToolChoice
The model must request at least one tool (no text is generated)
readonly
static
AUTO:ToolChoice
(Default). The Model automatically decides if a tool should be called or whether to generate text instead.
__render():
ToolChoiceProperty
Internal
ToolChoiceProperty
static
specificTool(toolName
):ToolChoice
The Model must request the specified tool. Only supported by some models like Anthropic Claude 3 models.
string