|
NeoGraph 0.10.0
A C++17 Graph Agent Engine Library — LangGraph for C++
|
Stateless JSON → CompiledGraph translator. More...
#include <compiler.h>
Static Public Member Functions | |
| static CompiledGraph | compile (const json &definition, const NodeContext &default_context) |
| Parse a JSON graph definition into a CompiledGraph. | |
Stateless JSON → CompiledGraph translator.
Single static entry point. Separating this stage lets routing / execution tests build a CompiledGraph fixture directly (bypassing JSON) and lets parsing tests run without touching the runtime.
Definition at line 79 of file compiler.h.
|
static |
Parse a JSON graph definition into a CompiledGraph.
| definition | Top-level graph JSON ({name, channels, nodes, edges, interrupt_before, interrupt_after, retry_policy}). |
| default_context | Shared NodeContext forwarded to every NodeFactory-created node. |
std::move into GraphEngine internals. | std::runtime_error | If a required field is malformed or a referenced node type is unknown. |