Arize Phoenix TS
    Preparing search index...
    • Converts a tool call to the OpenAI format if possible

      Parameters

      • maybeToolCall: unknown

        a tool call from an unknown LlmProvider

      Returns
          | {
              function: { arguments: string; name: string; [key: string]: unknown };
              id: string;
              type: "function";
          }
          | null

      the tool call parsed to the OpenAI format