Skip to content

Variable: ChatContentToTextOptionsSchema

const ChatContentToTextOptionsSchema: ZodObject<{ separator: ZodOptional<ZodString>; types: ZodOptional<ZodArray<ZodString>>; }, $strip>

Options for flattening structured chat content to plain text.

  • separator (optional): Placed between parts. Defaults to empty, which reassembles transport-split text.
  • types (optional): Restrict flattening to these part type values when set.