Variable ChatMessageSchemaConst Internal
ChatMessageSchema: ZodObject<
{
content: ZodUnion<readonly [ZodString, ZodArray<ZodAny>, ZodNull]>;
name: ZodOptional<ZodString>;
role: ZodEnum<
{
assistant: "assistant";
system: "system";
tool: "tool";
user: "user";
},
>;
tool_call_id: ZodOptional<ZodString>;
tool_calls: ZodOptional<
ZodArray<
ZodObject<
{
function: ZodObject<
{ arguments: ZodString; name: ZodString },
$strip,
>;
id: ZodString;
type: ZodLiteral<"function">;
},
$strip,
>,
>,
>;
},
$strip,
> = ...
A chat message in a conversation.