Skip to content

Interface: ChatContentToTextOptions

Options for chatContentToText.

optional separator?: string

Placed between parts. Defaults to "", which reassembles a message that was split purely for transport; pass "\n\n" when the parts are separate paragraphs that a human will read.


optional types?: readonly string[]

Restrict to these type values. Defaults to accepting any part carrying text, which covers the input_text / output_text / text spellings different APIs use for the same thing.