Skip to main content

Markdown Chat

Rich formatted responses — headings, tables, code blocks, lists, and blockquotes. AgentsKit's Markdown component renders everything beautifully as it streams.

AI Writer

With AgentsKit

import { useChat, ChatContainer, Message, Markdown, InputBar } from '@agentskit/react'

function Writer() {
const chat = useChat({ adapter })
return (
<ChatContainer>
{chat.messages.map(msg => (
<Message key={msg.id} message={msg}>
<Markdown content={msg.content} streaming={msg.status === 'streaming'} />
</Message>
))}
<InputBar chat={chat} placeholder="Ask for content..." />
</ChatContainer>
)
}