Commands
Drive the transcript from outside.
{messages.map((message) => {
const isUserMessage = message.role === "user"
const text = getMessageText(message)
return (
{text
.split(/\n\s*\n/)
.map((paragraph) => paragraph.trim())
.filter(Boolean)
.map((paragraph, index) => (
{paragraph}
))}
)
})}
Use the controls to jump to any message in the conversation.