Tutorials
Build something runnable, step by step
Sort: Recently updated
Building Agents
Wire a model, tools, and a loop into a working agent
· 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.
· 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.
· 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.
· 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.