Arize Phoenix TS
    Preparing search index...
    • Converts a tool choice to the OpenAI format

      Parameters

      • toolChoice: unknown

        a tool choice from an unknown LlmProvider

      Returns
          | "none"
          | "auto"
          | "required"
          | { function: { name: string }; type: "function" }
          | null

      the tool choice parsed to the OpenAI format