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