LlamaIndex Agents and Workflows are the agent-building parts of the open source LlamaIndex framework from LlamaIndex Inc.: prebuilt agent classes such as FunctionAgent and AgentWorkflow sit on top of Agent Workflows, an event-driven orchestration library for async Python. The names are easy to mix up, because the company also sells LlamaParse, a commercial document platform, and now ships deployment tooling under the LlamaAgents name. This page sets out what each piece does, which packages and versions are current, how the agent API changed in 2025, how workflows are made durable, where agents can be deployed and what the paid platform costs. It is written for developers, architects and the people who approve frameworks for a team. Every fact comes from LlamaIndex's own documentation, repositories, changelog and pricing page. Last checked: 2026-11-15.
This is an independent guide from NHI Mgmt Group, based on LlamaIndex's public documentation as of November 2026. It is not sponsored or reviewed by LlamaIndex. Product features change, so confirm settings against LlamaIndex's current documentation.
Key takeaways
- Agents are workflows.
FunctionAgent,ReActAgent,CodeActAgentandAgentWorkfloware prebuilt workflows, so anything you learn about Workflows (events, Context, streaming, human input) applies to agents too. - The legacy agent API is gone.
llama-index-core0.13.0 (30 July 2025) removedAgentRunner,OpenAIAgent,FunctionCallingAgent, the oldReActAgentand the step workers, so older tutorials no longer run. - Workflows are now a separate package.
llama-index-workflows(2.26.1 on main) lives in therun-llama/llama-agentsrepository, whilellama-index-corekeeps thellama_index.core.workflowimport path for compatibility. - Durability is opt-in. Workflows are ephemeral by default; you either snapshot the
Contextyourself or plug in the DBOS-backed runtime, and resume is at-least-once. - The code is free; LlamaParse is the paid layer. Both repositories carry the MIT licence. LlamaParse plans run from Pay-as-you-go ($0 with 10K credits) to Pro ($500 per month) and custom Enterprise.
What is LlamaIndex Agents and Workflows?
LlamaIndex's documentation defines an agent as "a semi-autonomous piece of software powered by an LLM that is given a task and executes a series of steps towards solving that task". It picks from a set of tools at each step, which can be plain Python functions or whole LlamaIndex query engines, and after each step decides whether the task is complete. The module guide narrows this to a system "that uses an LLM, memory, and tools, to handle inputs from outside users", and contrasts it with "agentic", a wider term for any system with LLM decision making in it.
Agent Workflows is the orchestration layer underneath. The docs describe a workflow as "an event-driven, step-based way to control the execution flow of an application": a step receives an event, does some work and returns another event, which triggers the next step whose type annotation accepts it. Branches are ordinary if statements, loops are steps that return an event handled earlier, and fan-out is a step returning list[Event]. LlamaIndex says it moved to this model after finding that directed acyclic graphs made loops and branches hard to read.
The company's own focus has shifted. The framework README says the current focus is document parsing and extraction through LlamaParse, and that the open source framework, first launched in 2023, remains "available as an open toolkit". The workflows repository now presents itself as LlamaAgents, "an open-source framework for building and shipping document-centric agents in Python".
| Layer (LlamaIndex's terms) | Package | What it adds | Use it when |
|---|---|---|---|
| Orchestration | llama-index-workflows | Events, steps, Context state, streaming, retries | You want explicit control flow in plain async Python |
| Framework | llama-index-core (or the llama-index starter) | Prebuilt agents, tools, memory, indexes, query engines | You want a working agent in a few lines, often over your own data |
| Serving | llama-agents-server, llama-agents-client | REST API with streaming, persistence and human input; typed client | Other services need to call a workflow |
| Deployment | llamactl | Templates, local serve, cloud deployments | You want to ship an agent app to LlamaCloud or your own infrastructure |
| Platform | LlamaParse (SaaS, not open source) | Parse, Extract, Classify, Split, Index, agent hosting | You need managed document primitives |
Key facts at a glance
As of 15 November 2026, from the repositories' main branches and the framework changelog.
| Field | Value |
|---|---|
| Developer | LlamaIndex Inc. (framework copyright held by Jerry Liu) |
| Licence | MIT (run-llama/llama_index and run-llama/llama-agents) |
| Language | Python |
llama-index-core | 0.14.26 (changelog entry dated 13 November 2026); requires Python 3.11 or later |
llama-index-workflows | 2.26.1; requires Python 3.10 or later |
llama-agents-server / llama-agents-client | 0.8.0 / 0.4.1 |
llamactl | 0.10.4 |
llama-agents-dbos | 0.7.0 |
| Prebuilt agents | FunctionAgent, ReActAgent, CodeActAgent, AgentWorkflow |
| Integrations | Over 300 integration packages, per the README |
| Cloud deployment status | "Beta preview", per the llamactl docs |
Note the version split: core stays on 0.x minor releases, while Workflows has its own 2.x numbering. Pin both in lock files.
Plans and pricing
The framework, Workflows, the server, the client and llamactl are free under MIT. You pay your model provider for tokens, and you pay LlamaIndex only if you use LlamaParse or deploy to LlamaCloud. The pricing page's FAQ says LlamaParse "is not open source" and names LlamaIndex and Workflows as the open source projects.
| LlamaParse plan | Monthly price (USD) | Included credits | Additional credits | Users / projects | Concurrent jobs |
|---|---|---|---|---|---|
| Pay-as-you-go | $0 | 10K free | $1.50 per 1K | 100 / 1 | 5 |
| Pro | $500 | 400K | $1.25 per 1K | 100 / 5 | 20 |
| Enterprise | Custom | Custom | Volume discount | Not stated by LlamaIndex | 100 |
As of 15 November 2026, from llamaindex.ai/pricing. The Pro card also advertised a limited-time bonus for business email domains, and the page states that unused bonus credits expire immediately on downgrade. The comparison table lists an Agents section (a natural-language-to-code workflow builder, starter templates and one-click deploy from GitHub) but does not show which plans include it. Enterprise lists SaaS or hybrid cloud deployment.
Models available
LlamaIndex is model-agnostic. You choose an LLM integration package (for example llama-index-llms-openai or llama-index-llms-ollama) and pass the LLM object to the agent. The tutorials use OpenAI's gpt-4o-mini and point to examples for Mistral, Anthropic's Claude, Google's Gemini and local models. The docs warn that "agents require capable models, so smaller models may be less reliable".
The agent class you pick depends on what the model supports:
- FunctionAgent: uses the provider's native function or tool calling. This is the default choice for models that support it.
- ReActAgent: uses a reasoning and acting prompt strategy instead of native tool calling, useful for models without a tool-calling API.
- CodeActAgent: has the model write Python inside
<execute>tags. It requires acode_execute_fnthat you supply, so where and how code runs is your decision. - Streaming: on by default. If a model does not support streaming, set
streaming=False. - Multimodal input: since April 2025 all four agent types accept chat messages with
ImageBlockandTextBlockcontent for models that support images.
Features and modes
The agent loop
Calling an agent gets the latest message and chat history, sends the tool schemas and history to the model, and either returns a direct answer or runs each requested tool call, appends the results and calls the model again. Tool selection depends heavily on each tool's name, description and type hints, so docstrings matter.
Tools
- FunctionTool: wraps any sync or async function and infers its schema;
Annotatedtypes add argument descriptions. - QueryEngineTool: wraps a query engine, which is how agents use indexes over your data. Because agents inherit from
BaseQueryEngine, this can also wrap another agent. - ToolSpecs: community bundles of tools for one service (for example
GmailToolSpecinllama-index-tools-google), shipped as separate packages.
Memory and state
| Mechanism | What it holds | Key settings (documented defaults) |
|---|---|---|
ChatMemoryBuffer | Recent chat history; the current default | Marked deprecated; to be replaced by Memory |
Memory (short-term) | FIFO queue of messages within a token budget | token_limit 30000, chat_history_token_ratio 0.7, token_flush_size 3000 |
| Memory blocks (long-term) | Flushed messages, processed and merged back on retrieval | StaticMemoryBlock, FactExtractionMemoryBlock, VectorMemoryBlock |
Context | Workflow state within and between runs, including the shared state dict | Serialise with JsonSerializer or JsonPickleSerializer |
AgentWorkflow is stateless between runs unless you pass the same Context. Tools that take ctx: Context as their first parameter can read and edit shared state through ctx.store.edit_state().
Multi-agent patterns
The docs describe three patterns, each trading convenience for flexibility:
| Pattern | How control moves | When the docs suggest it | What you write |
|---|---|---|---|
AgentWorkflow ("linear swarm") | A root agent receives the message; any agent may hand off to those named in its can_handoff_to list, or return to the user | You want multi-agent behaviour with almost no extra code and accept the default hand-off heuristics | Agents, a root_agent and optional initial_state |
| Orchestrator (sub-agents as tools) | One top-level agent decides every step and calls each specialist's run through a tool | You want one place that decides each step so you can inject custom logic | Wrapper tools that call sub-agents and update shared state |
| Custom planner | Your own prompt produces a plan (often XML or JSON) and your code invokes agents imperatively | You need full control over planning and execution order | The planning prompt, the parser and the execution loop |
Because the orchestrator and planner patterns keep sequencing in your code, they are also easier to audit: each call to a specialist is a point where you can log, check permissions or ask for approval.
Human in the loop
A tool calls ctx.wait_for_event() for a HumanResponseEvent and emits an InputRequiredEvent; the caller handles it in the event stream and replies with send_event. For long waits, serialise the Context and resume later.
Workflow runtime features
- Retries:
retry_policy()on a step retries all exceptions up to 3 attempts with a 5-second fixed delay by default, with composable retry, wait and stop conditions. - Durability: snapshot with
Context.to_dict()and resume withContext.from_dict(), or usellama-agents-dbos, which persists every step transition (SQLite by default) so a crashed run resumes where it stopped. - Observability: internal
StepStateChangedevents viastream_events(expose_internal=True), and OpenTelemetry export throughllama-index-observability-otel.
Supported IDEs and platforms
LlamaIndex is a library, so it runs wherever Python runs: scripts, notebooks, FastAPI or Starlette apps. Deployment options documented as of November 2026:
| Option | How | Notes from the docs |
|---|---|---|
| In-process library | await workflow.run(...) | Async first; use a single async entry point in scripts |
| Workflow server | WorkflowServer or python -m llama_agents.server | Binds 0.0.0.0:8080 by default (WORKFLOWS_PY_SERVER_HOST, WORKFLOWS_PY_SERVER_PORT); debugger UI mounted at / |
| LlamaCloud | llamactl deployments create or click-to-deploy templates | Beta preview; built from a git repository |
| Amazon Bedrock AgentCore | AgentCoreRuntime adapter (llama-index-tools-aws-bedrock-agentcore) | Needs AWS credentials and bedrock-agentcore IAM permissions |
| Your own infrastructure | llamactl export or self-hosted server | Agents can be headless services, MCP servers or full-stack apps |
llamactl needs uv and git, plus Node.js for templates with a frontend. Windows support is described as experimental, with WSL2 recommended.
Enterprise and admin controls
The open source libraries have no admin console: access control, quotas and authentication belong to the application you build. LlamaIndex's security policy is explicit that authentication, authorisation, rate limiting and input validation are the hosting application's responsibility. On the platform side, llamactl authenticates by browser login or with LLAMA_CLOUD_API_KEY and LLAMA_AGENTS_PROJECT_ID for CI, deployments take secrets at deploy time, and Enterprise plans list SaaS or hybrid deployment. Roles, API keys and self-hosted LlamaParse are covered in the LlamaIndex Security Guide.
Data handling and privacy
With the open source libraries, documents, prompts and memory stay in your process and in whatever stores you configure; data leaves only to the model provider, vector store or tool endpoints you call. Two points need deliberate choices:
- Serialised state: a saved Context or memory holds chat history and tool outputs. Treat snapshot files and databases as sensitive, and prefer
JsonSerializer;JsonPickleSerializeruses pickle, so only load snapshots you wrote. - Long-term memory: fact extraction and vector memory blocks keep information beyond a session, so set retention for them like any other personal data store. See the AI Agent Memory Security Guide.
LlamaParse is a hosted service with its own data terms, which the security guide summarises.
Release history
| Date (changelog entry) | Release | Change |
|---|---|---|
| 31 July 2024 | llama-index-core | Workflows introduced for event-driven orchestration |
| 22 August 2024 | core 0.11.0 | New minor line |
| 17 November 2024 | core 0.12.0 | New minor line |
| 20 January 2025 | llama-index-core | AgentWorkflow added for single and multi-agent workflows |
| 1 April 2025 | llama-index-core | Multimodal input for all four workflow agents |
| 18 June 2025 | llama-index-core | Workflows code moved to llama-index-workflows, with backward compatibility |
| 30 July 2025 | core 0.13.0 | Deprecated agent classes removed; migrate to workflow agents |
| 8 September 2025 | core 0.14.0 | Current minor line |
| 13 November 2026 | core 0.14.26 | Integrations raised their minimum Python versions for security fixes (marked breaking) |
Limits and known constraints
- Async only in practice: agents and workflows are async; plain scripts need an
asyncio.run()wrapper. - At-least-once resume: a step that was running when state was captured runs again from the top, and retries re-run the whole step body, so side effects must be safe to repeat.
- No built-in checkpointer: without DBOS you write the snapshot loop yourself, and a crash loses work since the last snapshot.
- Python floors differ: core needs 3.11 or later, Workflows 3.10 or later, and integrations raised floors in November 2026.
- Beta cloud: LlamaCloud deployments of LlamaAgents are a beta preview.
- Migration debt: code written for
AgentRunnerorOpenAIAgentmust be rewritten for workflow agents.
Security guidance
LlamaIndex's threat model treats the library as code running in a trusted environment: once you put it behind a network-facing API, input validation, authentication and rate limiting are yours. Its bug bounty covers only the llama-index umbrella package and first-degree dependencies (llama-index-core, llama-index-embeddings-openai, llama-index-llms-openai, llama-index-cli); other integrations can still be reported through GitHub. For agents specifically:
- CodeActAgent: run
code_execute_fnin an isolated sandbox, never the host interpreter. See the AI Agent Sandboxing and Code Execution Guide. - Workflow server: the default bind is all interfaces with a debugger UI at
/; put it behind authentication or bind to localhost. - Risky tools: gate destructive tools with
InputRequiredEventapproval. See the Human-in-the-Loop for AI Agents Guide. - Retrieved content: QueryEngineTool output is untrusted input to the model. See the RAG Security Guide.
Loader, query engine and LlamaParse hardening is in the LlamaIndex Security Guide, and is not repeated here.
Practitioner checklist
- Search the codebase for
AgentRunner,OpenAIAgentandFunctionCallingAgentand plan the move to workflow agents before upgrading core past 0.12. - Pin
llama-index-core,llama-index-workflowsand each integration in a lock file, and confirm Python 3.11 or later. - Choose
FunctionAgentfor tool-calling models andReActAgentotherwise; useCodeActAgentonly with a sandboxed executor. - Move from
ChatMemoryBuffertoMemoryand set explicit token limits and retention for long-term blocks. - Decide on durability: manual snapshots or
llama-agents-dbos, and make step side effects idempotent either way. - Bind
WorkflowServerdeliberately and put authentication in front of it before exposing it. - Export traces with
llama-index-observability-otelso every step, LLM call and tool call is visible. - Keep
LLAMA_CLOUD_API_KEYin a secrets manager for CI and scope deployments by project.
Standards and references
- LlamaIndex: Building an agent
- LlamaIndex: Agent Workflows introduction
- LlamaIndex: llamactl getting started
- LlamaIndex: Framework changelog
- LlamaIndex: Security policy
- LlamaIndex: Framework licence
- LlamaIndex: LlamaAgents repository
- LlamaIndex: Pricing
Related NHI Mgmt Group resources: LlamaIndex Security Guide · Securing Agent Frameworks Guide · Agent Frameworks vs Workflow Orchestration · OpenTelemetry GenAI Semantic Conventions for Security Teams