AI Agents Collaboration
This is a Next.js application that allows you to create specialized AI agents and have them collaborate to solve complex tasks.

Features
- Create Custom Agents: Define agents with unique names, descriptions, expertise, and personalities.
- Multi-Agent Collaboration: Select multiple agents to work together on a given task.
- Streaming UI: Watch the agents collaborate in real-time through a chat interface.
- File-Based Storage: Agents and collaborations are stored as JSON files in the
datadirectory.
Getting Started
Prerequisites
- Node.js 22+
- npm
- OpenAI API Key
Installation
Clone the repository:
Install dependencies:
npm installSet up environment variables:
Create a
.env.localfile in the root of the project and add your OpenAI API key:OPENAI_API_KEY=your_openai_api_key_hereRun the development server:
npm run devOpen http://localhost:3000 in your browser to see the application.
How to Use
Manage Agents:
- Navigate to the "Manage Agents" page.
- Fill out the form to create a new agent by describing its purpose.
Start a Collaboration:
- Go to the "Collaborate" page.
- Select two or more agents to participate.
- Give the collaboration a name and description, then start the chat.
Interact with Agents:
- In the chat interface, provide a prompt or task for the agents.
- The agents will work together, each contributing based on its expertise, to provide a comprehensive solution.
Project Structure
src/app/: Next.js App Router pages.src/components/: React components for the UI.src/lib/: Core application logic.actions/: Server Actions for creating and managing agents and collaborations.aiService.ts: Integration with the OpenAI API.fileSystem.ts: Utilities for reading and writing to the file system.
src/types/: TypeScript type definitions.data/: Stores agent and collaboration data in JSON files.
Project details 0 0
View on GitHub