Arize Phoenix TS
    Preparing search index...
    phoenixMessagePartToOpenAI: ZodPipe<
        ZodDiscriminatedUnion<
            [
                ZodObject<{ text: ZodString; type: ZodLiteral<"text"> }, $strip>,
                ZodObject<
                    {
                        tool_call: ZodObject<
                            {
                                arguments: ZodString;
                                name: ZodString;
                                type: ZodLiteral<"function">;
                            },
                            $strip,
                        >;
                        tool_call_id: ZodString;
                        type: ZodLiteral<"tool_call">;
                    },
                    $strip,
                >,
                ZodObject<
                    {
                        tool_call_id: ZodString;
                        tool_result: ZodUnion<
                            readonly [
                                ZodString,
                                ZodNumber,
                                ZodBoolean,
                                ZodNull,
                                ZodRecord<ZodString, ZodUnknown>,
                                ZodArray<ZodUnknown>,
                            ],
                        >;
                        type: ZodLiteral<"tool_result">;
                    },
                    $strip,
                >,
            ],
            "type",
        >,
        ZodTransform<
            { text: string; type: "text" }
            | null,

                | { 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";
                },
        >,
    > = ...