flows-ai  by callstackincubator

Type-safe AI workflow orchestrator

Created 9 months ago
257 stars

Top 98.4% on SourcePulse

GitHubView on GitHub
Project Summary

Summary

Flows AI is a lightweight, type-safe AI workflow orchestrator for TypeScript, inspired by Anthropic's agent patterns and built on the Vercel AI SDK. It addresses the challenge of connecting LLM nodes with flexible input/output contracts, enabling deterministic AI agent systems. The library provides a functional approach for developers to define and execute complex AI tasks, either explicitly or dynamically, simplifying the orchestration of AI-driven workflows.

How It Works

Flows AI models AI agent systems as workflows where individual LLM calls function as nodes. It provides an orchestration layer to connect these nodes, particularly addressing the challenge of integrating agents with flexible or incompatible input/output contracts. Developers define agents declaratively, specifying models (e.g., openai('gpt-4o')) and system prompts. Workflows are constructed using constructs like sequence for linear execution, allowing explicit definition of task flow, including loops and conditionals. Alternatively, an orchestrator agent can dynamically break down complex tasks, offering a more adaptive approach. The library champions a functional programming style, deliberately avoiding classes and explicit state management to promote simplicity, determinism, and ease of reasoning about AI execution paths.

Quick Start & Requirements

  • Installation: npm install flows-ai
  • Prerequisites: Node.js, TypeScript. Requires API keys for LLM providers (e.g., OpenAI).
  • Documentation: Links to official docs and examples are mentioned in the README but not provided.

Highlighted Details

  • Type-Safe Orchestration: Ensures robust AI workflow construction through TypeScript's static typing.
  • Anthropic Agent Pattern Inspiration: Adopts patterns from advanced agent frameworks for structured task decomposition.
  • Vercel AI SDK Integration: Built upon the Vercel AI SDK, leveraging its capabilities for LLM interactions.
  • Functional Design: Employs a class-free, state-less approach for enhanced simplicity and predictability.
  • Deterministic Workflows: Facilitates building more predictable and debuggable AI systems compared to purely dynamic approaches.

Maintenance & Community

The provided README does not contain information regarding contributors, sponsorships, community channels, roadmaps, or social media presence.

Licensing & Compatibility

  • License: MIT.
  • Compatibility: The MIT license is highly permissive, allowing for broad compatibility with commercial and closed-source projects.

Limitations & Caveats

The README does not specify any limitations, alpha status, known bugs, or unsupported platforms.

Health Check
Last Commit

4 months ago

Responsiveness

Inactive

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

Explore Similar Projects

Starred by Tobi Lutke Tobi Lutke(Cofounder of Shopify), Boris Cherny Boris Cherny(Creator of Claude Code; MTS at Anthropic), and
17 more.

marvin by PrefectHQ

0.2%
6k
Python framework for agentic AI workflows
Created 2 years ago
Updated 1 day ago
Starred by Andrew Ng Andrew Ng(Founder of DeepLearning.AI; Cofounder of Coursera; Professor at Stanford), Thomas Wolf Thomas Wolf(Cofounder of Hugging Face), and
4 more.

ag2 by ag2ai

1.1%
4k
AgentOS for building AI agents and facilitating multi-agent cooperation
Created 11 months ago
Updated 14 hours ago
Starred by Elvis Saravia Elvis Saravia(Founder of DAIR.AI), Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), and
5 more.

activepieces by activepieces

0.7%
19k
Open-source Zapier alternative for AI workflow automation
Created 2 years ago
Updated 14 hours ago
Feedback? Help us improve.