NeoGraph 0.16.0
A C++20 Graph Agent Engine Library — LangGraph for C++
Loading...
Searching...
No Matches
loader.h File Reference

Legacy process-global registries for graph executables. More...

#include <neograph/api.h>
#include <neograph/graph/types.h>
#include <mutex>
#include <unordered_map>
#include <optional>
#include <string>
#include <vector>
Include dependency graph for loader.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  neograph::graph::ConditionSpec
 Singleton registry for conditional edge routing functions. More...
 
class  neograph::graph::NodeFactory
 Singleton factory for creating graph nodes by type name. More...
 
class  neograph::graph::ReducerRegistry
 Singleton registry for channel reducer functions. More...
 

Typedefs

using neograph::graph::NodeFactoryFn = std::function< std::unique_ptr< GraphNode >(const std::string &name, const json &config, const NodeContext &ctx)>
 Factory function signature for creating graph nodes.
 

Detailed Description

Legacy process-global registries for graph executables.

Built-in entries are registered automatically. New engines can use an isolated GraphRegistry via EngineResources; these singleton APIs remain a process-wide convenience for legacy calls and explicit GlobalFallback.

Definition in file loader.h.

Typedef Documentation

◆ NodeFactoryFn

using neograph::graph::NodeFactoryFn = typedef std::function<std::unique_ptr<GraphNode>( const std::string& name, const json& config, const NodeContext& ctx)>

Factory function signature for creating graph nodes.

Parameters
nameNode name within the graph.
configNode-specific configuration from the JSON definition.
ctxNode context with provider, tools, and model.
Returns
A unique_ptr to the created GraphNode.

Definition at line 172 of file loader.h.