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

Output of a node: a write to a named channel. More...

#include <types.h>

Public Types

enum class  Mode { Reduce , Overwrite }
 What the write means for the channel's current value (issue #91). More...
 

Public Attributes

std::string channel
 Target channel name.
 
Mode mode = Mode::Reduce
 Default preserves the pre-#91 behavior.
 
std::shared_ptr< const std::vector< sp::Message > > native_messages
 Authoritative ordered provider messages paired with this portable write.
 
json value
 Value to write.
 

Detailed Description

Output of a node: a write to a named channel.

Definition at line 128 of file types.h.

Member Enumeration Documentation

◆ Mode

What the write means for the channel's current value (issue #91).

Enumerator
Reduce 

Feed the value through the channel's reducer.

The default, and what every write did before this existed.

Overwrite 

Replace the channel's value outright, ignoring the reducer.

Use this to trim conversation history, drop a poisoned message, or reset a scratchpad; the channel's retention policy still applies afterward.

Definition at line 130 of file types.h.


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