AgentGroupChatMemberAttribute
NexusLabs.Needlr.AgentFramework¶
NexusLabs.Needlr.AgentFramework¶
AgentGroupChatMemberAttribute Class¶
Declares that a NeedlrAiAgentAttribute-annotated agent participates in a named group chat workflow. Apply this attribute to include the agent in a round-robin group chat created via CreateGroupChatWorkflow(string, int).
Inheritance System.Object 🡒 System.Attribute 🡒 AgentGroupChatMemberAttribute
Remarks¶
When the NexusLabs.Needlr.AgentFramework.Generators package is referenced, the source
generator emits a strongly-typed extension method (e.g. CreateCodeReviewGroupChatWorkflow)
on IWorkflowFactory for each unique group name declared across all agent types.
The generated method encapsulates the group name string so the composition root never references
it directly.
Constructors¶
AgentGroupChatMemberAttribute(string) Constructor¶
Initializes a new instance of AgentGroupChatMemberAttribute.
Parameters¶
groupName System.String
The name of the group chat this agent participates in. Must match exactly (case-sensitive) when calling CreateGroupChatWorkflow(string, int). Use the generated extension method to avoid referencing the string directly.
Properties¶
AgentGroupChatMemberAttribute.GroupName Property¶
Gets the name of the group chat this agent participates in.