Docs de AgentLoom Examples

Esta documentación solo está disponible en inglés por el momento.

Examples

Thirty-nine workflows in the repository’s examples/ folder, from a single LLM call to pipelines with parallel checks, routing, subworkflows and human approval. Seven of them run offline, against recordings committed next to them.

Running the examples

Clone the repository, install it, and run the examples from its root: recordings, agent definitions and data files are found from there.

Terminal window
git clone https://github.com/cchinchilla-dev/agentloom.git
cd agentloom
pip install -e . # the package that matches these examples
Terminal window
agentloom run examples/41_agent.yaml --lite

Examples 35 to 41 name the mock provider and replay a recording from recordings/: no key, no network, the same answers every time. --lite skips the observability exporter.

Terminal window
export OPENAI_API_KEY=sk-...
agentloom run examples/02_chain_of_thought.yaml

Most examples name OpenAI’s gpt-4o-mini in their config; the list below says which need another provider or files of their own.

Terminal window
export ANTHROPIC_API_KEY=sk-ant-...
agentloom run examples/02_chain_of_thought.yaml --provider anthropic --model claude-haiku-4-5-20251001

Pass the model too: the model name picks the provider.

Terminal window
ollama pull phi4
agentloom run examples/02_chain_of_thought.yaml --provider ollama --model phi4

Free and local; small models follow long prompts less closely than the ones the examples were written for.

Before a run, agentloom validate examples/<file> checks a file and agentloom visualize examples/<file> draws its DAG.

Basics

One idea each: the shape of a workflow, a chain, a branch, a tool.

Pipelines

Realistic workflows: parallel checks that join, a router at the end, subworkflows for repeated tracks. They use placeholder APIs, so the HTTP steps show the shape rather than real data.

Tools

The built-in tools, and tools of your own.

Resilience and sandbox

How failures surface, and what the sandbox lets a tool do.

Attachments

Images, PDFs and audio sent with a prompt. Providers lists which provider takes which.

Streaming

State, checkpoints and approval

Testing and replay

Model features

Conversations and agents

Docs de agentloom 0.5.0. Ver el código fuente de esta página Informar de un problema