Strands Agents Typescript SDK
    Preparing search index...

    Type Alias ToolChoice

    ToolChoice:
        | { auto: Record<string, never> }
        | { any: Record<string, never> }
        | { tool: { name: string } }

    Specifies how the model should choose which tool to use.

    • { auto: {} } - Let the model decide whether to use a tool
    • { any: {} } - Force the model to use one of the available tools
    • { tool: { name: 'name' } } - Force the model to use a specific tool