Skip to content

GeneratedAgentFunctionScanner

NexusLabs.Needlr.AgentFramework

NexusLabs.Needlr.AgentFramework.FunctionScanners

GeneratedAgentFunctionScanner Class

Source-generation-friendly agent function scanner that uses compile-time generated function type lists.

public sealed class GeneratedAgentFunctionScanner : NexusLabs.Needlr.AgentFramework.IAgentFrameworkFunctionScanner

Inheritance System.Object 🡒 GeneratedAgentFunctionScanner

Implements IAgentFrameworkFunctionScanner

Remarks

When using source generation, the generator emits a NexusLabs.Needlr.Generated.AgentFrameworkFunctions class with AllFunctionTypes containing all types with AgentFunctionAttribute methods.

For AOT/trimmed applications, use AddAgentFunctionsFromGenerated(this AgentFrameworkSyringe, IReadOnlyList<Type>) directly (which requires no reflection for discovery) rather than this scanner.