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.
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.
Parameters¶
graphName System.String
The graph this node configuration applies to.
Properties¶
AgentGraphNodeAttribute.GraphName Property¶
Gets the graph name this node belongs to.
Property Value¶
AgentGraphNodeAttribute.JoinMode Property¶
Gets or sets how this node handles multiple incoming edges. Defaults to WaitAll (barrier).