NeoGraph 0.10.0
A C++17 Graph Agent Engine Library — LangGraph for C++
Loading...
Searching...
No Matches
neograph::graph::Channel Struct Reference

A state channel that holds a value with a reducer and version tracking. More...

#include <types.h>

Public Attributes

std::string name
 Channel name.
 
ReducerFn reducer
 Custom reducer (when type == CUSTOM).
 
ReducerType reducer_type = ReducerType::OVERWRITE
 Merge strategy.
 
json value
 Current channel value.
 
uint64_t version = 0
 Version counter (incremented on each write).
 

Detailed Description

A state channel that holds a value with a reducer and version tracking.

Channels are the primary state storage mechanism in the graph engine. Each channel has a name, a reducer that controls how new values are merged with existing ones, and a version counter.

Definition at line 74 of file types.h.


The documentation for this struct was generated from the following file: