Skip to content

AgentTopologyAnalyzer

NexusLabs.Foundry.MicrosoftAgentFramework.Analyzers

AgentTopologyAnalyzer Class

Analyzer that validates [AgentHandoffsTo] topology declarations.

public sealed class AgentTopologyAnalyzer

Inheritance Microsoft.CodeAnalysis.Diagnostics.DiagnosticAnalyzer 🡒 AgentTopologyAnalyzer

Remarks

FDRYMAF001 (Error): The target type referenced by [AgentHandoffsTo(typeof(X))] is not decorated with [FoundryAgent]. Handoff targets must be registered agent types.

FDRYMAF003 (Warning): The class carrying [AgentHandoffsTo] is not itself decorated with [FoundryAgent]. The initial agent in a handoff workflow must be a declared agent.