agentskit.js
Examples

Markdown Chat

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

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>
  )
}
✎ Edit this page on GitHub·Found a problem? Open an issue →·How to contribute →

On this page