Assistants, threads and runs
A deployed graph is used through three resources. See what an assistant, a thread and a run each hold, how one run joins the other two, and what changes when you run with no thread at all.
11 minPro
Checking your access…
Inside this lesson
- An animation you play, pause and step through, with each part saying what it is doing.
- The real code beside it, with the lines for each step lit up.
- Practice mode, where you route each message yourself, and a short quiz.
- About 11 minutes.
Written from the official documentation
In this module: Deploy
- App structure and local serverlanggraph.json, the CLI and running Agent Server with langgraph dev.Pro
- Deploy an Agent ServerShip a graph to LangSmith Cloud or host the server yourself.Pro
- Assistants, threads and runsThe three resources of the Agent Server API and how they relate.Pro
- Double textingEnqueue, reject, interrupt or roll back when a new message lands.Pro
- Cron jobs and webhooksSchedule runs on a thread and get a callback when a run ends.Pro
- RemoteGraph, MCP and A2A endpointsCall a deployed graph from code, an MCP client or another agent.Pro
- Authentication and access controlCustom auth handlers and per user access to threads and store.Pro
- Changing graphs in productionUpdate nodes, edges and state without breaking paused threads.Pro
- Frontends with useStreamRender node progress, custom channels and a ready made chat UI.Pro