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

A state channel that holds a reducer, lifecycle policy, and version. More...

#include <types.h>

Public Attributes

ChannelLifecyclePolicy lifecycle
 Retention and persistence policy.
 
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
 Value of the state's single write counter (GraphState::global_version) at this channel's last write; 0 until the channel is written.
 

Detailed Description

A state channel that holds a reducer, lifecycle policy, and version.

Combination (reducer_type/reducer) happens first. Retention then normalizes the combined value, and persistence controls checkpoint projection. Keeping those stages explicit avoids conflating "append" with "keep forever" or "persist".

Definition at line 113 of file types.h.

Member Data Documentation

◆ version

uint64_t neograph::graph::Channel::version = 0

Value of the state's single write counter (GraphState::global_version) at this channel's last write; 0 until the channel is written.

Every channel shares the counter, so this is not a count of this channel's writes.

Definition at line 122 of file types.h.


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