llama-index-workflows
An event-driven, async-first, step-based way to control the execution flow of AI applications like Agents.
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-workflowsuv
uv add llama-index-workflowspoetry
poetry add llama-index-workflowsInstalling 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
More Application Frameworks packages
FastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
textualTextual is a Python framework for building…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
mcpBuild and connect to Model Context Protocol…
permissive · top 1,000 on PyPI
WerkzeugWerkzeug is a WSGI utility library providing…
permissive · top 1,000 on PyPI
llama-index-multi-modal-llms-openaiIntegrates OpenAI's multi-modal language models…
permissive · top 5,000 on PyPI
llama-indexLlamaIndex is a data framework that connects…
permissive · top 5,000 on PyPI
llama-index-llms-vertexIntegrates Google Vertex AI's LLM capabilities…
permissive · top 15,000 on PyPI
llama-index-agent-openaiIntegrates OpenAI language models with…
permissive · top 5,000 on PyPI
llama-index-utils-workflowProvides visualization tools for LlamaIndex…
unclear · top 15,000 on PyPI
llama-index-tools-mcpConnects LlamaIndex agents to MCP (Model…
permissive · top 15,000 on PyPI
llama-index-llms-openai-likeProvides a thin wrapper to use…
permissive · top 15,000 on PyPI
llama-index-program-openaiIntegrates OpenAI-powered program synthesis…
permissive · top 5,000 on PyPI
llama-index-question-gen-openaiGenerates follow-up questions from documents or…
permissive · top 5,000 on PyPI
eventkiteventkit provides an event-driven framework for…
permissive · top 5,000 on PyPI