AiDownloadConversation

Download Conversation

Export a conversation to a Markdown file.

user: What is retrieval-augmented generation?
assistant: RAG combines a retriever with a language model so answers are grounded in your own documents instead of the model's parametric memory.
user: When should I use it over fine-tuning?
assistant: Prefer RAG when knowledge changes often or must be cited; prefer fine-tuning to change style or behavior.

Usage

<AiDownloadConversation :messages="messages" filename="chat.md">
  <template #default="{ download, disabled }">
    <button :disabled="disabled" @click="download">Download</button>
  </template>
</AiDownloadConversation>

Props

Prop Type Default Description
messages*AiMessageLike[]Messages to serialize ({ role, content } or UIMessage parts)
filenamestring'conversation.md'

Events

Event Payload
@downloadstring

Slots

  • default
  • label