Variable phoenixContentPartSchemaConst
phoenixContentPartSchema: ZodDiscriminatedUnion<
"type",
[
ZodObject<
{ text: ZodString; type: ZodLiteral<"text"> },
"strip",
ZodTypeAny,
{ text: string; type: "text" },
{ text: string; type: "text" },
>,
ZodObject<
{
tool_call: ZodObject<
{
arguments: ZodString;
name: ZodString;
type: ZodLiteral<"function">;
},
"strip",
ZodTypeAny,
{ arguments: string; name: string; type: "function" },
{ arguments: string; name: string; type: "function" },
>;
tool_call_id: ZodString;
type: ZodLiteral<"tool_call">;
},
"strip",
ZodTypeAny,
{
tool_call: { arguments: string; name: string; type: "function" };
tool_call_id: string;
type: "tool_call";
},
{
tool_call: { arguments: string; name: string; type: "function" };
tool_call_id: string;
type: "tool_call";
},
>,
ZodObject<
{
tool_call_id: ZodString;
tool_result: ZodUnion<
[
ZodString,
ZodNumber,
ZodBoolean,
ZodNull,
ZodRecord<ZodString, ZodUnknown>,
ZodArray<ZodUnknown, "many">,
],
>;
type: ZodLiteral<"tool_result">;
},
"strip",
ZodTypeAny,
{
tool_call_id: string;
tool_result: | null
| string
| number
| boolean
| unknown[]
| Record<string, unknown>;
type: "tool_result";
},
{
tool_call_id: string;
tool_result: | null
| string
| number
| boolean
| unknown[]
| Record<string, unknown>;
type: "tool_result";
},
>,
],
> = ...