Building Agents

Wire a model, tools, and a loop into a working agent

Sort: Recently updated
The code-sandbox agent, hand-wired with LiteLLM + LangGraph — no LangChain.

· Doc version 1.0

The code-sandbox agent, no LangChain — LiteLLM + LangGraph wired by hand

The same code-sandbox agent, rebuilt without LangChain. A hand-written tool schema and explicit StateGraph wiring, with just two dependencies: LiteLLM and LangGraph.

sandbox docker agent tutorial
A code-sandbox agent — running model code in Docker.

· Doc version 1.0

Building a code-sandbox agent: model-written code in Docker

Running model-written code straight on the host is risky. We build a LangGraph agent with one run_python tool that pens the code into a throwaway Docker container.

sandbox docker agent tutorial
A web-scraping agent — a docs page to Markdown.

· Doc version 1.0

Building a web-scraping agent: a docs page to Markdown

A model can't see past a link. We build a LangGraph agent with a single Firecrawl scrape tool to fetch a page as Markdown and read it.

tools scraping agent tutorial
A web-search agent — asking today's FX rate.

· Doc version 1.0

Building a web-search agent: asking today's FX rate

"Today's FX rate?" is something a model can't answer alone. We build a LangGraph agent with a single Tavily web-search tool to see how a tool bridges past the training cutoff.

tools web-search agent tutorial