llama-agents is an open-source agent framework for document scenarios. It is positioned to solve orchestration challenges in document processing pipelines: OCR, LLM calls, structured extraction, classification, custom validation, and human review often need to run in sequence, the steps are slow and data-heavy, and much of the work is in-process Python code, making it costly to build persistent orchestration yourself. LlamaAgents is based on Agent Workflows (an event-driven async orchestration library), writing each step as an async Python function that can send and receive events, implementing branching, loops, parallelism, state persistence, and failure recovery in pure Python without introducing a DSL.
Main capabilities and usage: First, use as a library: install with pip install llama-index-workflows, define a workflow, then await workflow.run(...); it has few dependencies and can be embedded in scripts, notebooks, and services; persistence is pluggable, supporting saving and restoring runs from files or connecting to a database. Second, mount onto an existing application: llama-agents-server can wrap any workflow as a REST API with streaming, persistence, and human-in-the-loop, and can be placed in an existing Starlette/FastAPI application or run standalone; llama-agents-client is the companion async client for other services to call workflows. Third, publish as a deployable agent: llamactl is a CLI for end-to-end building and deployment, from initializing from a template and local hot-reload development to deploying to LlamaParse, AWS Bedrock AgentCore, or your own infrastructure; agents can be headless workflow services, MCP servers, or full-stack applications with a UI. In addition, it works with LlamaParse to plug in heavy document primitives such as OCR, structured extraction, classification, and splitting as steps, letting agent code focus on orchestration, business logic, and review.
Applicable scenarios include: in the prototyping stage, processing a small number of contracts in a notebook; in the production stage, processing a large number of invoices per month inside the customer's firewall; and continuously iterating on extraction quality and frequently releasing new versions. The framework's design goal is that the same set of workflow code can be progressively upgraded from a function to a server, to a coordinated backend, and to replicated scaling without rewriting. Limitations: official materials do not provide pricing, license type, performance metrics, or detailed deployment step information; none is currently available.