skillfed

llama-index-workflows

An event-driven, async-first, step-based way to control the execution flow of AI applications like Agents.

llama-index-workflows v2.23.1 12.2M downloads/30d#1,335 on PyPI
Permissive license MIT Active released

What it is and what it does

LlamaIndex Workflows is a framework for building complex, multi-step AI applications using an async-first, event-driven architecture. It lets you define workflows as a series of steps—async functions that process events and emit new events to other steps—with built-in state management so each workflow run is self-contained and can be serialed and resumed. The framework handles routing between capabilities, parallel processing, looping, and state persistence, and automatically instruments workflows for observability with tools like Arize Phoenix and OpenTelemetry.

You define workflows by subclassing Workflow and decorating async methods with @step, specifying which events they accept and which they emit. Steps that accept StartEvent run first, steps that emit StopEvent end the workflow, and intermediate events pass data between steps. A Context object lets you share state and information across steps within a single run. The async-first design means workflows integrate naturally with async frameworks like FastAPI and Jupyter Notebooks.

Use it for:

  • Build AI agents that reason, make decisions, and take actions across multiple steps with state preservation.
  • Create document processing pipelines that ingest, analyze, summarize, and route documents through processing stages.
  • Coordinate between different AI models (LLMs, vision models) to solve complex tasks in a single workflow.
  • Develop research assistants that search, analyze, synthesize information, and provide comprehensive answers.
  • Build customer support automation systems that route, categorize, and respond to inquiries intelligently.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

An async-first, event-driven framework for orchestrating multi-step AI workflows with state management and built-in observability instrumentation.

Yes. The package is actively maintained, has low install friction, carries a permissive MIT license, and fills a clear need for orchestrating complex AI workflows. It's well-suited for production AI applications that require multi-step reasoning, state management, and observability. Start with it if you're building agents, document pipelines, or multi-model AI systems that need reliable async coordination.

Install

llama-index-workflows on PyPI

pip

pip install llama-index-workflows

uv

uv add llama-index-workflows

poetry

poetry add llama-index-workflows

Installing llama-index-workflows

Before you install

Low friction installation with only three runtime dependencies (pydantic, llama-index-instrumentation, typing-extensions). Package is actively maintained with a recent release.

License in practice

MIT license permits unrestricted use, modification, and distribution in both open-source and commercial projects.

Quickstart

pip install llama-index-workflows

import asyncio
from pydantic import BaseModel
from workflows import Context, Workflow, step
from workflows.events import StartEvent, StopEvent

class MyWorkflow(Workflow):
    @step
    async def start(self, ctx, ev: StartEvent) -> StopEvent:
        return StopEvent(result=ev.input_msg)

asyncio.run(MyWorkflow().run(input_msg="test"))

Requires Python 3.10 or later; workflows are async-first and work best in async contexts like FastAPI or Jupyter Notebooks.

Verify before relying

  • Whether llama-index-instrumentation is a required dependency or optional for observability features
  • Performance characteristics and scalability limits for large numbers of concurrent workflow runs
  • Integration requirements with Arize Phoenix and OpenTelemetry mentioned in the description

Package facts

License MIT (permissive)
Python support supports the current Python release (>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 3 — llama-index-instrumentation, pydantic, typing-extensions
Maintenance actively maintained — 2 days since the last release
First released
Downloads 12,207,324/month — #1,335 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: llama_index_workflows-2.23.1-py3-none-any.whl

Tags

async workflow orchestrationevent-driven AI pipelinemulti-step process automationAI agent frameworkstate management workflowsasync task coordinationstep-based execution control
async-orchestrationai-workflowsevent-driven

More Application Frameworks packages

fastapi

FastAPI is a Python web framework for building…

permissive · top 100 on PyPI

annotated-doc

Provides a way to document function parameters,…

permissive · top 100 on PyPI

textual

Textual is a Python framework for building…

permissive · top 100 on PyPI

typer

Typer builds command-line applications from…

permissive · top 1,000 on PyPI

mcp

Build and connect to Model Context Protocol…

permissive · top 1,000 on PyPI

Werkzeug

Werkzeug is a WSGI utility library providing…

permissive · top 1,000 on PyPI

llama-index-multi-modal-llms-openai

Integrates OpenAI's multi-modal language models…

permissive · top 5,000 on PyPI

llama-index

LlamaIndex is a data framework that connects…

permissive · top 5,000 on PyPI

llama-index-llms-vertex

Integrates Google Vertex AI's LLM capabilities…

permissive · top 15,000 on PyPI

llama-index-agent-openai

Integrates OpenAI language models with…

permissive · top 5,000 on PyPI

llama-index-utils-workflow

Provides visualization tools for LlamaIndex…

unclear · top 15,000 on PyPI

llama-index-tools-mcp

Connects LlamaIndex agents to MCP (Model…

permissive · top 15,000 on PyPI

llama-index-llms-openai-like

Provides a thin wrapper to use…

permissive · top 15,000 on PyPI

llama-index-program-openai

Integrates OpenAI-powered program synthesis…

permissive · top 5,000 on PyPI

llama-index-question-gen-openai

Generates follow-up questions from documents or…

permissive · top 5,000 on PyPI

eventkit

eventkit provides an event-driven framework for…

permissive · top 5,000 on PyPI

Further reading