Skip to content

AgentGraphNodeAttribute

NexusLabs.Needlr.AgentFramework

NexusLabs.Needlr.AgentFramework

AgentGraphNodeAttribute Class

Declares per-node configuration for a graph workflow participant. Apply to agents that receive multiple incoming edges to control join semantics.

public sealed class AgentGraphNodeAttribute : System.Attribute

Inheritance System.Object 🡒 System.Attribute 🡒 AgentGraphNodeAttribute

Example

[NeedlrAiAgent(Instructions = "Synthesize all research findings.")]
[AgentGraphNode("Research", JoinMode = GraphJoinMode.WaitAll)]
public class SummarizerAgent { }

Remarks

This attribute is optional. Agents that do not carry it use the default WaitAll join mode.

Constructors

AgentGraphNodeAttribute(string) Constructor

Initializes a new AgentGraphNodeAttribute.

public AgentGraphNodeAttribute(string graphName);

Parameters

graphName System.String

The graph this node configuration applies to.

Properties

AgentGraphNodeAttribute.GraphName Property

Gets the graph name this node belongs to.

public string GraphName { get; }

Property Value

System.String

AgentGraphNodeAttribute.JoinMode Property

Gets or sets how this node handles multiple incoming edges. Defaults to WaitAll (barrier).

public NexusLabs.Needlr.AgentFramework.GraphJoinMode JoinMode { get; set; }

Property Value

GraphJoinMode