Convert an array of AssistantMessages to TipTap JSONContent.
Filters out system messages, error messages, and streaming messages. Produces a document with a heading, followed by role-labeled message blocks separated by horizontal rules.
The conversation messages
Optional
Optional document title (defaults to "AI Chat - {date}")
TipTap JSONContent document
Convert an array of AssistantMessages to TipTap JSONContent.
Filters out system messages, error messages, and streaming messages. Produces a document with a heading, followed by role-labeled message blocks separated by horizontal rules.