Skip to content

Type Alias: ChatContentToTextOptions

ChatContentToTextOptions = z.infer<typeof ChatContentToTextOptionsSchema>

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.