|
NeoGraph 0.16.0
A C++20 Graph Agent Engine Library — LangGraph for C++
|
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. | |
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".
| 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.