NDC Conferences

Agents & Arbiters - An Adventurer’s Guide to Multi-Agent Collaboration with LangGraph.js - Guy Royse

Published 2026-09-01 · Duration 59:56

Summary

The talk introduces multi-agent collaboration using LangGraph.js as an advanced pattern for building complex, interactive systems that move beyond fragile, scripted logic. Instead of anticipating every user action with nested `if` statements, the system uses autonomous agents (LLMs) to contribute perspectives and make decisions. The architecture is built around a graph structure that orchestrates specialized nodes—including routers, experts, arbiters, and committers—to manage state changes and generate coherent responses.

Download summary

Key takeaways

  1. Agent Definition 24:28

    An agent is defined as an LLM with a system prompt defining its purpose, coupled with a collection of tools that allow it to interact with the world. These agents are composable within a graph structure.

  2. Graph Workflow Components 34:05

    The system uses an orchestration workflow (router, classifier, agents, arbiter, committer) to manage complex interactions. The router determines which specialized nodes are relevant for a given input, and the arbiter reconciles conflicting suggestions from multiple agents.

  3. Conditional Edges 38:38

    Conditional edges allow the graph's flow to be determined by an LLM's reasoning over the current state, enabling patterns like the Supervisor pattern and the ReAct (Reasoning and Acting) cycle. This is crucial for dynamic decision-making.

  4. State Persistence and Memory 48:50

    To solve context loss, the architecture utilizes a dedicated Agent Memory Server (a library/Docker image) that automatically compacts message history and extracts long-term facts asynchronously, providing continuous memory across sessions.

Technical details

  • LangGraph.js Architecture 1740s

    The core mechanism involves defining nodes (functions) and connecting them via edges in a graph structure. The state is managed by a simple JavaScript object, allowing nodes to read and modify the global state.

  • State Management 1860s

    The system uses specialized annotations (e.g., `messages` annotation) to define how the graph's state evolves, allowing for complex logic like appending new messages or merging parallel updates.

  • Tool Use 2530s

    Tools are implemented as functions that take a tool definition (including name, description, and input schema) and can be invoked by the LLM when necessary. This allows agents to perform actions like mathematical calculations or database lookups.

  • Backend Stack 1580s

    The implementation uses TypeScript, runs on Azure (or Docker), and stores all game state data in Redis using JSON documents. The AI layer leverages OpenAI's GPT-4 mini via LangChain/LangGraph.

Mentioned resources

Channel & topics

Watch on YouTube · Back to latest

This independent, AI-assisted summary is provided for commentary and informational purposes. It may contain errors or omit important context. Please watch the original video for the creator's complete presentation. Video, thumbnail, and related copyrights belong to their respective owners.