|
NeoGraph 0.10.0
A C++17 Graph Agent Engine Library — LangGraph for C++
|
Node that runs a compiled GraphEngine as a single node (hierarchical composition). More...
#include <node.h>
Public Member Functions | |
| std::string | get_name () const override |
| Get the node's unique name within the graph. | |
| asio::awaitable< NodeOutput > | run (NodeInput in) override |
v0.4 PR 9a: unified run — drives the child engine via run_async (or run_stream_async when in.stream_cb is non-null), maps channels through input_map / output_map. | |
| SubgraphNode (const std::string &name, std::shared_ptr< GraphEngine > subgraph, std::map< std::string, std::string > input_map={}, std::map< std::string, std::string > output_map={}) | |
| Construct a subgraph node. | |
Node that runs a compiled GraphEngine as a single node (hierarchical composition).
Enables the Supervisor pattern and nested workflows. Channels are mapped between parent and child graphs via input_map and output_map.
| neograph::graph::SubgraphNode::SubgraphNode | ( | const std::string & | name, |
| std::shared_ptr< GraphEngine > | subgraph, | ||
| std::map< std::string, std::string > | input_map = {}, |
||
| std::map< std::string, std::string > | output_map = {} |
||
| ) |
Construct a subgraph node.
| name | Unique node name within the parent graph. |
| subgraph | Compiled GraphEngine to run as a sub-workflow. |
| input_map | Mapping of parent_channel -> child_channel for input. |
| output_map | Mapping of child_channel -> parent_channel for output. |
|
inlineoverridevirtual |
Get the node's unique name within the graph.
Implements neograph::graph::GraphNode.
|
overridevirtual |
v0.4 PR 9a: unified run — drives the child engine via run_async (or run_stream_async when in.stream_cb is non-null), maps channels through input_map / output_map.
in.ctx.cancel_token flows through into the child run's RunConfig so a parent cancel cascades to the subgraph.
Implements neograph::graph::GraphNode.