GeneratedAgentFunctionScanner
NexusLabs.Foundry.MicrosoftAgentFramework¶
NexusLabs.Foundry.MicrosoftAgentFramework.FunctionScanners¶
GeneratedAgentFunctionScanner Class¶
Source-generation-friendly agent function scanner that uses compile-time generated function type lists.
public sealed class GeneratedAgentFunctionScanner : NexusLabs.Foundry.MicrosoftAgentFramework.IAgentFrameworkFunctionScanner
Inheritance System.Object 🡒 GeneratedAgentFunctionScanner
Implements IAgentFrameworkFunctionScanner
Remarks¶
When using source generation, the generator emits a
NexusLabs.Foundry.Generated.AgentFrameworkFunctions class with
AllFunctionTypes containing all types with AgentFunctionAttribute methods.
For AOT/trimmed applications, use AddAgentFunctionsFromGenerated(this AgentFrameworkBuilder, IReadOnlyList<Type>) directly (which requires no reflection for discovery) rather than this scanner.