Skip to content

GraphTopologyRegistration

NexusLabs.Needlr.AgentFramework

NexusLabs.Needlr.AgentFramework

GraphTopologyRegistration Class

Compile-time graph topology data registered by the source generator. Each instance captures the entry point, edges, nodes, and optional reducer for one named graph.

public sealed class GraphTopologyRegistration

Inheritance System.Object 🡒 GraphTopologyRegistration

Properties

GraphTopologyRegistration.Edges Property

All declared edges: source agent type, target agent type, optional condition string, required flag, and optional per-node routing mode override.

public System.Collections.Generic.IReadOnlyList<(System.Type Source,System.Type Target,string? Condition,bool IsRequired,System.Nullable<int> NodeRoutingMode)> Edges { get; }

Property Value

System.Collections.Generic.IReadOnlyList<<System.Type,System.Type,System.String,System.Boolean,System.Nullable<System.Int32>>>

GraphTopologyRegistration.EntryType Property

The entry-point agent type for this graph.

public System.Type? EntryType { get; }

Property Value

System.Type

GraphTopologyRegistration.Nodes Property

All explicitly declared node join modes.

public System.Collections.Generic.IReadOnlyList<(System.Type NodeType,int JoinMode)> Nodes { get; }

Property Value

System.Collections.Generic.IReadOnlyList<<System.Type,System.Int32>>

GraphTopologyRegistration.Reducer Property

The reducer type and static method name, if declared.

public System.Nullable<(System.Type ReducerType,string ReducerMethod)> Reducer { get; }

Property Value

System.Nullable<<System.Type,System.String>>

GraphTopologyRegistration.RoutingMode Property

The graph-level routing mode as an integer (maps to GraphRoutingMode).

public int RoutingMode { get; }

Property Value

System.Int32