Skip to content

shadcn CLI compatible React components for LLM Apps. Works perfectly with Vercel AI SDK.

License

Notifications You must be signed in to change notification settings

morph-data/agents-kit

Repository files navigation

Agents Kit

Born at Builders Weekend Hackathon

What is Agents Kit?

Agents Kit is a collection of components and utilities that help you build chat interfaces. It is designed to be flexible and easy to use, so you can focus on building your AI / chat experience.

Agents Kit is not a component library to be installed via npm, but rather a set of components that you can copy and paste into your project.

Example

'use client';

import { useChat } from '@ai-sdk/react';
import { ChatForm } from '@/components/agents-kit/chat-form';
import { ChatMessages } from '@/components/agents-kit/chat-messages';
import { ScrollArea } from '@/components/ui/scroll-area';

export default function Home() {
  const { messages, input, handleInputChange, handleSubmit } = useChat();

  return (
    <div>
      <ScrollArea style={{ flex: 1 }}>
        <ChatMessages messages={messages} />
      </ScrollArea>
      <ChatForm
        inputValue={input}
        onInputChange={handleInputChange}
        onSubmit={handleSubmit}
      />
    </div>
  );
}

Installation

Everything you need to set up to use Agents Kit.

Dependencies

Agents Kit depents on shadcn/ui. So you need to setup shadcn/ui first. https://ui.shadcn.com/docs/installation

If you are already using shadcn/ui, you can start using Agents Kit right away.

Where to start?

First, take a look at the components and blocks. If you find one you like, feel free to copy and paste it into your project and give it a try.

If you want to see a Next.js + Vercel AI SDK example, visit: https://agents-kit.dev/docs/example/nextjs

Lisence

Morph is Apache 2.0 licensed.

About

shadcn CLI compatible React components for LLM Apps. Works perfectly with Vercel AI SDK.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors