ai-sdk-agents  by sslava

Agent orchestration framework extending Vercel AI SDK

created 1 year ago
256 stars

Top 98.5% on SourcePulse

GitHubView on GitHub
Project Summary

This library extends the Vercel AI SDK to enable the creation and orchestration of AI agents, allowing them to call each other as tools. It's designed for developers building complex generative applications requiring multi-step reasoning and flexible flow management.

How It Works

The core approach defines agents with specific models, descriptions, and tool capabilities using a schema-driven output. Agents can be composed, with one agent calling another as a tool, facilitating complex reasoning chains. It supports flexible step management, context persistence, and streaming responses.

Quick Start & Requirements

  • Install: npm install ai-sdk-agents
  • Prerequisites: Vercel AI SDK (ai) and zod.
  • Example Usage: See the provided TypeScript example for defining and composing agents, including a math expert agent used as a tool within an assistant agent.

Highlighted Details

  • Enables agents to call other agents as tools for complex orchestration.
  • Supports flexible flow and step management with context and memory.
  • Features streaming response support for real-time interactions.
  • Includes example projects demonstrating Express integration and context extension.

Maintenance & Community

The project is actively maintained with contributions welcome via Pull Requests. It is built on the Vercel AI SDK and inspired by OpenAI's agent framework and Anthropic's agentic patterns.

Licensing & Compatibility

Licensed under the MIT License, permitting commercial use and integration with closed-source applications.

Limitations & Caveats

The project is still under development, with a TODO list including adding Next.js examples, documenting the public API, and implementing inter-agent memory.

Health Check
Last commit

1 week ago

Responsiveness

Inactive

Pull Requests (30d)
3
Issues (30d)
0
Star History
232 stars in the last 30 days

Explore Similar Projects

Starred by Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), Steven Hao Steven Hao(Cofounder of Cognition), and
7 more.

openai-agents-python by openai

1.6%
14k
Python SDK for multi-agent workflows
created 5 months ago
updated 1 day ago
Feedback? Help us improve.