NeoGraph 0.10.0
A C++17 Graph Agent Engine Library — LangGraph for C++
Loading...
Searching...
No Matches
neograph::graph::GraphCompiler Class Reference

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.
 

Detailed Description

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.

Member Function Documentation

◆ compile()

static CompiledGraph neograph::graph::GraphCompiler::compile ( const json &  definition,
const NodeContext default_context 
)
static

Parse a JSON graph definition into a CompiledGraph.

Parameters
definitionTop-level graph JSON ({name, channels, nodes, edges, interrupt_before, interrupt_after, retry_policy}).
default_contextShared NodeContext forwarded to every NodeFactory-created node.
Returns
Fully parsed CompiledGraph. Safe to std::move into GraphEngine internals.
Exceptions
std::runtime_errorIf a required field is malformed or a referenced node type is unknown.

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