@ag-ui/crewai
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

@ag-ui/crewai

Implementation of the AG-UI protocol for CrewAI.

Connects CrewAI Flows and Crews to frontend applications via the AG-UI protocol. Supports both TypeScript HTTP clients and Python FastAPI server integration with streaming crew execution.

Installation

npm install @ag-ui/crewai
pnpm add @ag-ui/crewai
yarn add @ag-ui/crewai

Usage

import { CrewAIAgent } from "@ag-ui/crewai";

// Create an AG-UI compatible agent
const agent = new CrewAIAgent({
  url: "http://localhost:8000/crew-endpoint",
  headers: { "Content-Type": "application/json" },
});

// Run with streaming
const result = await agent.runAgent({
  messages: [{ role: "user", content: "Execute the research crew" }],
});

Features

  • HTTP connectivity – Connect to CrewAI FastAPI servers
  • Flow & Crew support – Works with both CrewAI Flows and traditional Crews
  • Step tracking – Real-time crew execution progress
  • Python integration – Full FastAPI server implementation included

To run the example server in the dojo

cd typescript-sdk/integrations/crewai/python
poetry install && poetry run dev

Readme

Keywords

none

Package Sidebar

Install

npm i @ag-ui/crewai

Weekly Downloads

122

Version

0.0.2

License

none

Unpacked Size

4.69 kB

Total Files

9

Last publish

Collaborators

  • _mme
  • copilotkit