AAI SDK
    Preparing search index...

    Type Alias ToolChoice

    ToolChoice: "auto" | "required" | "none" | { toolName: string; type: "tool" }

    How the LLM should select tools during a turn. Mirrors the Vercel AI SDK's toolChoice.

    • "auto" — The model decides whether to call a tool (default).
    • "required" — The model must call at least one tool each step.
    • "none" — The model may not call tools this session.
    • { type: "tool", toolName } — The model must call the named tool.