custom_reducer

command
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 Imports: 4 Imported by: 0

README

Custom Reducer Example

This example demonstrates how to use custom reducers for state management in LangGraphGo.

Overview

Reducers define how updates from nodes are merged into the current state. While AppendReducer is common for lists of messages, you can define custom logic for any state field.

This example shows how to implement a custom reducer that aggregates values or handles complex merge strategies.

Usage

go run main.go

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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