|
NeoGraph 0.10.0
A C++17 Graph Agent Engine Library — LangGraph for C++
|
Singleton registry for conditional edge routing functions. More...
#include <loader.h>
Public Member Functions | |
| ConditionFn | get (const std::string &name) const |
| Look up a condition by name. | |
| std::vector< std::string > | names () const |
| List all registered condition names, sorted. | |
| void | register_condition (const std::string &name, ConditionFn fn) |
| Register a named condition function. | |
Static Public Member Functions | |
| static ConditionRegistry & | instance () |
| Get the singleton instance. | |
Singleton registry for conditional edge routing functions.
Maps condition names (used in JSON edge definitions) to ConditionFn implementations. Built-in conditions: "has_tool_calls", "route_channel".
| ConditionFn neograph::graph::ConditionRegistry::get | ( | const std::string & | name | ) | const |
Look up a condition by name.
| name | Condition name. |
|
static |
Get the singleton instance.
| std::vector< std::string > neograph::graph::ConditionRegistry::names | ( | ) | const |
List all registered condition names, sorted.
Introspection accessor for external tooling (e.g. a visual topology editor) that needs to enumerate the available conditional-routing palette.
| void neograph::graph::ConditionRegistry::register_condition | ( | const std::string & | name, |
| ConditionFn | fn | ||
| ) |
Register a named condition function.
| name | Condition name (referenced in JSON edge definitions). |
| fn | Condition function that evaluates state and returns a route key. |