Files
workflows-py/examples
Adrian Lyjak d9fd0d3afd docs: update run-llama/workflows-py references to run-llama/llama-agents (#537)
Repo has been renamed from workflows-py to llama-agents. Update remaining
references in README, docs, CI workflows, and example notebooks.

Co-authored-by: Claude <noreply@anthropic.com>
2026-04-14 22:45:47 +00:00
..
2025-11-18 14:24:17 -05:00
2026-03-17 19:53:33 -04:00
2026-03-17 19:53:33 -04:00

LlamaAgents Examples

A collection of runnable examples showing how to build, serve, and deploy agent workflows with llama-index-workflows and llama-agents-*.

New to the project? Start at the top of the list and work down — each step builds on the previous.

Start here

  1. feature_walkthrough.ipynb — The single best place to begin. A guided tour of workflows, steps, events, context, branching, loops, and streaming, all in one notebook.
  2. agent.ipynb — Build a simple agent as a workflow. Covers tool calling and the agent loop pattern.
  3. document_processing.ipynb — A realistic document pipeline: parsing, extraction, and orchestration.

Serving workflows as an API

  1. server/ — Wrap a workflow as a REST API with WorkflowServer, standalone or mounted inside an existing FastAPI app.
  2. client/ — Call a running workflow server from Python with WorkflowClient, including streaming and human-in-the-loop.

Durability and scale

  1. durable_workflows.ipynb — Save and resume workflow runs using pluggable storage.
  2. dbos/ — Production-grade durability with DBOS: crash recovery, multi-replica servers, and idle release.

Deployment

  1. docker/ — Containerize a workflow server with Docker.
  2. k8s-otel/ — Deploy to Kubernetes with OpenTelemetry, Tilt, and a kind cluster.

Observability and evaluation

  1. observability/ — Trace workflows with Arize Phoenix, Langfuse, and the built-in context logger.
  2. eval_driven_prompt_refinement.ipynb — Iterate on prompts using evaluation-driven feedback loops.

Advanced patterns


For more on the library, see the llama-index-workflows package README and the project root README.