mirror of
https://github.com/run-llama/workflows-py.git
synced 2026-07-16 05:31:56 -04:00
d9fd0d3afd
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>
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
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.agent.ipynb— Build a simple agent as a workflow. Covers tool calling and the agent loop pattern.document_processing.ipynb— A realistic document pipeline: parsing, extraction, and orchestration.
Serving workflows as an API
server/— Wrap a workflow as a REST API withWorkflowServer, standalone or mounted inside an existing FastAPI app.client/— Call a running workflow server from Python withWorkflowClient, including streaming and human-in-the-loop.
Durability and scale
durable_workflows.ipynb— Save and resume workflow runs using pluggable storage.dbos/— Production-grade durability with DBOS: crash recovery, multi-replica servers, and idle release.
Deployment
docker/— Containerize a workflow server with Docker.k8s-otel/— Deploy to Kubernetes with OpenTelemetry, Tilt, and a kind cluster.
Observability and evaluation
observability/— Trace workflows with Arize Phoenix, Langfuse, and the built-in context logger.eval_driven_prompt_refinement.ipynb— Iterate on prompts using evaluation-driven feedback loops.
Advanced patterns
streaming_internal_events.ipynb— Stream intermediate events from nested workflow steps.state_management_with_vector_databases.ipynb— Persist workflow state in a vector database.document_agents/— A finance triage agent built with document workflows.visualization/— Visualize workflow graphs, including resource nodes.
For more on the library, see the llama-index-workflows package README and the project root README.