Skip to content

Variable: ChatContentPartSchema

const ChatContentPartSchema: ZodObject<{ text: ZodOptional<ZodString>; type: ZodOptional<ZodString>; }, $catchall<ZodUnknown>>

One entry of a structured content array. Extra provider keys round-trip through the catch-all.

  • type (optional): Part discriminator, such as text, input_text, or output_text.
  • text (optional): Plain-text payload carried by this part when present.