Skip to main content
This example separates an agent application into client/API, runtime and memory, model providers, retrieval, tools/MCP, and observability. Solid arrows show runtime relationships; the dashed LangSmith connection distinguishes observation from the other connections. It is an illustrative architecture, not an executable LangChain application or a prescription to use every provider shown. LangChain agent architecture diagram generated from the linked YAML source Open the full-size SVG · Download PNG to inspect the connections and labels. The image is generated from the complete source below.

Get the complete source

The complete YAML is the maintained source for this example. It includes all presets, parts and connectors; no hidden configuration is required. This tutorial uses the current main source, not a guarantee of feature parity with an older release. With Go 1.25 or later and Git installed:
On Windows, build isotopo.exe and use that executable name. Open out-langchain-app/topology.html to inspect the output; embed out-langchain-app/topology.svg in your documentation. For a pinned build, check out a tested tag or commit before building.

How the scene is organized

The runtime group contains the agent and memory tiles. Other groups use container layouts for models, retrieval and tools. The heroBlue and trayHero presets distinguish the runtime from supporting components. Some connectors use explicit waypoints; changing group placement may require updating those routes.

Adapt it to your system

Work on a copy of the source so you can compare changes:
Open the local Studio URL printed by the command. Parseable source edits automatically save to the bound file. See Studio for supported operations.
  1. Rename the agent label to match your runtime.
  2. Remove model providers you do not use from the models group.
  3. Rename retrieval and tool tiles to match your application boundaries.
  4. Change the heroBlue preset to adjust runtime styling, then re-render.
  5. Inspect labels and explicit routes after each structural edit.

Validate and publish

Validation uses exit code 0 for clean, 2 for warnings and 3 for errors. Read the reported findings; a generated SVG is not a guarantee that every detail is readable. Explicit routes and dense labels can still need manual adjustment. For the unedited example, the committed source and expected.svg form a byte-level rendering regression fixture. This checks reproducibility, not that all visual defects have been eliminated. If resvg is installed, create a PNG for a presentation or visual review:
The SVG on this page is generated from the linked sample with the current renderer. PNG exports and pixel checks use a pinned resvg build and bundled fonts. Core SVG rendering does not require resvg. See features and limits for font, export and repair constraints. The dense LangSmith group in this sample has a caption close to its tracing and evaluation tiles. At small display sizes these can be hard to distinguish; use a larger image or simplify that group before embedding it in a narrow document.

Continue

A five-minute editing task

Open your copied YAML in local Studio, select the agent node and change its label to Support Agent. Keep its ID unchanged so existing connectors still reference the same component. Render the saved file again and check that the new label appears in both the isometric and top-down output, with the same incoming and outgoing relationships. Run isotopo validate my-architecture.yaml and inspect any warnings before publishing. For a smaller no-install introduction, try the browser playground. Its starter scene is deliberately simpler than the full diagram on this page. Use the local path above for this complete sample. The project-authored diagram source is available under Apache-2.0. When reusing it, retain applicable license and notice requirements. A helpful attribution is “Adapted from iso-topology — langchain-agent-architecture”; attribution does not imply endorsement by the depicted products. Third-party logos and names retain their respective rights.