> ## Documentation Index
> Fetch the complete documentation index at: https://iso-topology.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# LangChain agent architecture diagram

> Render a LangChain-style agent architecture from YAML, including runtime, models, retrieval, MCP tools and observability.

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](https://mintcdn.com/iso-topology/i34aIj-BE0ECOg6t/assets/langchain-app.svg?fit=max\&auto=format\&n=i34aIj-BE0ECOg6t\&q=85\&s=c453ed4edf8642c11c2ef768b5b44048)

[Open the full-size SVG](../assets/langchain-app.svg) · [Download PNG](../assets/langchain-app.png) to inspect the connections and labels. The image is generated from the complete source below.

## Get the complete source

The [complete YAML](https://github.com/NexusFox88/iso-topology/blob/main/samples/topology/langchain-app/input.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:

```bash theme={"system"}
git clone https://github.com/NexusFox88/iso-topology
cd iso-topology
git rev-parse HEAD   # record this revision if you need to reproduce it later
go build -o isotopo ./cmd/isotopo
./isotopo render samples/topology/langchain-app/input.yaml ./out-langchain-app
```

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:

```bash theme={"system"}
cp samples/topology/langchain-app/input.yaml my-architecture.yaml
./isotopo serve my-architecture.yaml
```

Open the local Studio URL printed by the command. Parseable source edits automatically save to the bound file. See [Studio](https://iso-topology.mintlify.site/guides/studio.md) 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

```bash theme={"system"}
./isotopo validate my-architecture.yaml
./isotopo render my-architecture.yaml ./out-custom
```

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:

```bash theme={"system"}
resvg --width 1400 out-custom/topology.svg out-custom/topology.png
```

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](https://iso-topology.mintlify.site/concepts/features-and-limits.md) 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

* [Generate and refine diagrams through MCP](https://iso-topology.mintlify.site/agent/MCP.md).
* [Browse other source examples](https://iso-topology.mintlify.site/agent/SAMPLES.md).
* [Style a scene](https://iso-topology.mintlify.site/guides/scene-design.md).

## 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](https://nexusfox88.github.io/iso-topology/?example=mcp). 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](https://github.com/NexusFox88/iso-topology/blob/main/LICENSE). 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.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.