Skip to content

AgentFrameworkFunctionRegistryGenerator

NexusLabs.Needlr.AgentFramework.Generators

AgentFrameworkFunctionRegistryGenerator Class

Source generator for Microsoft Agent Framework functions. Discovers classes with [AgentFunction] methods and generates a compile-time type registry. Also discovers classes with [AgentFunctionGroup] attributes and generates a group registry. Also discovers classes with [NeedlrAiAgent] attributes and generates an agent registry. Always emits a [ModuleInitializer] that auto-registers all discovered types with AgentFrameworkGeneratedBootstrap on assembly load.

public class AgentFrameworkFunctionRegistryGenerator

Inheritance System.Object 🡒 Microsoft.CodeAnalysis.IIncrementalGenerator 🡒 AgentFrameworkFunctionRegistryGenerator