Skip to content
masterclass Buddy

LangGraph · Class

BinaryOperatorAggregate

BinaryOperatorAggregate is a LangGraph channel for keeping a persistent value and combining new updates with a binary operator. It is useful for running aggregates across Pregel steps.

Last updated

Since
v1.2

Syntax

BinaryOperatorAggregate(typ: type[Value], operator: Callable[[Value, Value], Value])

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • Pregel
  • EphemeralValue
  • Topic
  • BaseChannel

Source: BinaryOperatorAggregate | langgraph. Checked 2026-11-03.