Loading AgentsKit ecosystem navigation…
AgentsKit Chat
Get started

Solid quick start

Solid shell with typed render props for AgentsKit Chat.

View canonical Markdown

Solid quick start

Install

code
pnpm add @agentskit/chat @agentskit/core @agentskit/solid solid-js

Shell

code
import { AgentChat } from '@agentskit/chat/solid'
import { createSupportChat } from './support-chat'
import { adapter } from './adapter'

const definition = createSupportChat(adapter)

export function SupportChat() {
  return (
    <AgentChat
      definition={definition}
      placeholder="Ask about the product"
      message={(message) => (
        <article data-role={message.role}>{message.content}</article>
      )}
    />
  )
}

Delegates to useChat from @agentskit/solid.

Next