Variable phoenixMessageSchemaConst
phoenixMessageSchema: ZodObject<
{
content: ZodUnion<
[
ZodString,
ZodArray<
ZodDiscriminatedUnion<
"type",
[
ZodObject<
{ text: ZodString; type: ZodLiteral<"text"> },
"strip",
ZodTypeAny,
{ text: string; type: "text" },
{ text: string; type: "text" },
>,
ZodObject<
{
tool_call: ZodObject<
{ arguments: ...; name: ...; type: ... },
"strip",
ZodTypeAny,
{ arguments: ...; name: ...; type: ... },
{ arguments: ...; name: ...; type: ... },
>;
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<[(...), (...), (...), (...), (...), (...)]>;
type: ZodLiteral<"tool_result">;
},
"strip",
ZodTypeAny,
{
tool_call_id: string;
tool_result: | null
| string
| number
| boolean
| (...)[]
| Record<(...), (...)>;
type: "tool_result";
},
{
tool_call_id: string;
tool_result: | null
| string
| number
| boolean
| (...)[]
| Record<(...), (...)>;
type: "tool_result";
},
>,
],
>,
"many",
>,
],
>;
role: ZodEnum<
["system", "developer", "user", "assistant", "model", "ai", "tool"],
>;
},
"strip",
ZodTypeAny,
{
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: | null
| string
| number
| boolean
| unknown[]
| Record<string, unknown>;
type: "tool_result";
}
)[];
role: | "user"
| "assistant"
| "model"
| "ai"
| "tool"
| "system"
| "developer";
},
{
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: | null
| string
| number
| boolean
| unknown[]
| Record<string, unknown>;
type: "tool_result";
}
)[];
role: | "user"
| "assistant"
| "model"
| "ai"
| "tool"
| "system"
| "developer";
},
> = ...