examples/

directory
v0.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2025 License: MIT

README

LangGraphGo Examples

This directory contains various examples demonstrating the features of LangGraphGo.

Basic Concepts

Advanced Features

  • Parallel Execution: Fan-out/Fan-in execution with state merging.
  • Configuration: Using runtime configuration to pass metadata and settings.
  • Custom Reducer: Defining custom state reducers for complex merge logic.
  • State Schema: Managing complex state updates with Schema and Reducers.
  • Subgraphs: Composing graphs within graphs (New).
  • Streaming Modes: Advanced streaming with updates, values, and messages modes.
  • Smart Messages: Intelligent message merging with ID-based upserts.
  • Command API: Dynamic control flow and state updates from nodes.
  • Ephemeral Channels: Managing temporary state that clears after each step.
  • Listeners: Attaching event listeners to the graph.

Persistence (Checkpointing)

  • Memory: In-memory checkpointing.
  • PostgreSQL: Persistent state using PostgreSQL.
  • SQLite: Persistent state using SQLite.
  • Redis: Persistent state using Redis.
  • Durable Execution: Crash recovery and resuming execution from checkpoints.

Human-in-the-loop

Pre-built Agents

  • Create Agent: Easy way to create an agent with options.
  • Dynamic Skill Agent: Agent with dynamic skill discovery and selection.
  • ReAct Agent: Reason and Action agent using tools.
  • Supervisor: Multi-agent orchestration using a supervisor.
  • Swarm: Multi-agent collaboration using handoffs.

Memory

RAG (Retrieval Augmented Generation)

Other

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL