|
NeoGraph 0.16.0
A C++20 Graph Agent Engine Library — LangGraph for C++
|
Graph node implementations: base class and built-in node types. More...
#include <neograph/api.h>#include <neograph/graph/run_context.h>#include <neograph/graph/types.h>#include <neograph/graph/state.h>#include <neograph/runtime_interposition_consumer.h>#include <asio/awaitable.hpp>#include <stdexcept>#include <mutex>#include <set>#include <string_view>Go to the source code of this file.
Classes | |
| class | neograph::graph::GraphNode |
| Abstract base class for all graph nodes. More... | |
| class | neograph::graph::IntentClassifierNode |
| Node that classifies user intent via LLM and routes execution. More... | |
| class | neograph::graph::LLMCallNode |
| Node that makes LLM completion calls. More... | |
| struct | neograph::graph::NodeInput |
Per-call input bundle for the unified run() virtual. More... | |
| class | neograph::graph::SubgraphNode |
| Node that runs a compiled GraphEngine as a single node (hierarchical composition). More... | |
| class | neograph::graph::SyncGraphNode |
| Adapter for CPU-light synchronous custom nodes. More... | |
| class | neograph::graph::ToolDispatchNode |
| Node that dispatches and executes pending tool calls. More... | |
Typedefs | |
| using | neograph::graph::NodeOutput = NodeResult |
Output of the unified run() virtual. | |
Enumerations | |
| enum class | neograph::graph::SubgraphPersistence { Legacy , PerInvocation , PerThread , Stateless } |
| A subgraph's checkpoint lifetime. Legacy preserves the pre-#238 wire identity. More... | |
Graph node implementations: base class and built-in node types.
Defines the abstract GraphNode base class and all built-in node types:
Custom nodes implement the single coroutine-native run(NodeInput) -> awaitable<NodeOutput> virtual. The pre-v1 execute* virtual cross-product has been removed; see docs/migration-v0.4-to-v1.0.md for before/after examples.
The engine threads RunContext through NodeInput::ctx. Nodes can use cancellation, usage accounting, thread/step/stream metadata, Store access, resume values, and C++ RunMetadata deadline/trace metadata.
Example overrides that match the v0.4.x surface:
examples/01_react_agent.cpp — basic ReAct agentexamples/02_custom_graph.cpp — custom node subclassexamples/05_parallel_fanout.cpp — Send / Command patternDefinition in file node.h.
| using neograph::graph::NodeOutput = typedef NodeResult |
|
strong |
A subgraph's checkpoint lifetime. Legacy preserves the pre-#238 wire identity.