Arize Phoenix TS
    Preparing search index...
    phoenixMessageToOpenAI: ZodPipe<
        ZodObject<
            {
                content: ZodUnion<
                    readonly [
                        ZodString,
                        ZodArray<
                            ZodDiscriminatedUnion<
                                [
                                    ZodObject<{ text: ZodString; type: ZodLiteral<(...)> }, $strip>,
                                    ZodObject<
                                        {
                                            tool_call: ZodObject<(...), (...)>;
                                            tool_call_id: ZodString;
                                            type: ZodLiteral<(...)>;
                                        },
                                        $strip,
                                    >,
                                    ZodObject<
                                        {
                                            tool_call_id: ZodString;
                                            tool_result: ZodUnion<(...)>;
                                            type: ZodLiteral<(...)>;
                                        },
                                        $strip,
                                    >,
                                ],
                                "type",
                            >,
                        >,
                    ],
                >;
                role: ZodEnum<
                    {
                        ai: "ai";
                        assistant: "assistant";
                        developer: "developer";
                        model: "model";
                        system: "system";
                        tool: "tool";
                        user: "user";
                    },
                >;
            },
            $strip,
        >,
        ZodTransform<
            | {
                content: string;
                role: "tool";
                tool_call_id: string;
                tool_calls?: undefined;
            }
            | {
                content: { text: string; type: "text" }[];
                role: "system";
                tool_call_id?: undefined;
                tool_calls?: undefined;
            }
            | {
                content: { text: string; type: "text" }[];
                role: "user";
                tool_call_id?: undefined;
                tool_calls?: undefined;
            }
            | {
                content: { text: string; type: "text" }[];
                role: "assistant";
                tool_call_id?: undefined;
                tool_calls:
                    | {
                        function: {
                            arguments: string;
                            name: string;
                            [key: string]: unknown;
                        };
                        id: string;
                        type: "function";
                    }[]
                    | undefined;
            },
            {
                content: | string
                | (
                    | { text: string; type: "text" }
                    | {
                        tool_call: { arguments: string; name: string; type: "function" };
                        tool_call_id: string;
                        type: "tool_call";
                    }
                    | {
                        tool_call_id: string;
                        tool_result: | string
                        | number
                        | boolean
                        | unknown[]
                        | Record<string, unknown>
                        | null;
                        type: "tool_result";
                    }
                )[];
                role: | "user"
                | "assistant"
                | "model"
                | "ai"
                | "tool"
                | "system"
                | "developer";
            },
        >,
    > = ...

    Spoke → Hub: Convert a Prompt message to OpenAI format