Skip to content

MafDiagnosticDescriptors

NexusLabs.Foundry.MicrosoftAgentFramework.Analyzers

MafDiagnosticDescriptors Class

Contains diagnostic descriptors for all Foundry Agent Framework analyzers.

public static class MafDiagnosticDescriptors

Inheritance System.Object 🡒 MafDiagnosticDescriptors

Fields

MafDiagnosticDescriptors.AgentFunctionJsonStringParameter Field

FDRYMAF030: [AgentFunction] string parameter described as JSON could be JsonElement.

public static readonly DiagnosticDescriptor AgentFunctionJsonStringParameter;

Field Value

Microsoft.CodeAnalysis.DiagnosticDescriptor

MafDiagnosticDescriptors.AgentFunctionMissingDescription Field

FDRYMAF012: [AgentFunction] method has no [Description] attribute.

public static readonly DiagnosticDescriptor AgentFunctionMissingDescription;

Field Value

Microsoft.CodeAnalysis.DiagnosticDescriptor

MafDiagnosticDescriptors.AgentFunctionParameterMissingDescription Field

FDRYMAF013: Parameter of an [AgentFunction] method is missing a [Description] attribute.

public static readonly DiagnosticDescriptor AgentFunctionParameterMissingDescription;

Field Value

Microsoft.CodeAnalysis.DiagnosticDescriptor

MafDiagnosticDescriptors.AgentFunctionTypesMiswired Field

FDRYMAF014: A type in FunctionTypes on [FoundryAgent] has no [AgentFunction] methods.

public static readonly DiagnosticDescriptor AgentFunctionTypesMiswired;

Field Value

Microsoft.CodeAnalysis.DiagnosticDescriptor

MafDiagnosticDescriptors.CyclicHandoffChain Field

FDRYMAF004: A cyclic handoff chain was detected.

public static readonly DiagnosticDescriptor CyclicHandoffChain;

Field Value

Microsoft.CodeAnalysis.DiagnosticDescriptor

MafDiagnosticDescriptors.DuplicateSequenceOrder Field

FDRYMAF006: Duplicate Order value within the same [AgentSequenceMember] pipeline.

public static readonly DiagnosticDescriptor DuplicateSequenceOrder;

Field Value

Microsoft.CodeAnalysis.DiagnosticDescriptor

MafDiagnosticDescriptors.GapInSequenceOrder Field

FDRYMAF007: Gap in Order sequence within the same [AgentSequenceMember] pipeline.

public static readonly DiagnosticDescriptor GapInSequenceOrder;

Field Value

Microsoft.CodeAnalysis.DiagnosticDescriptor

MafDiagnosticDescriptors.GraphAllEdgesOptional Field

FDRYMAF024: All edges from a fan-out node are optional.

public static readonly DiagnosticDescriptor GraphAllEdgesOptional;

Field Value

Microsoft.CodeAnalysis.DiagnosticDescriptor

MafDiagnosticDescriptors.GraphConditionMethodInvalid Field

FDRYMAF028: Condition method not found or invalid signature.

public static readonly DiagnosticDescriptor GraphConditionMethodInvalid;

Field Value

Microsoft.CodeAnalysis.DiagnosticDescriptor

MafDiagnosticDescriptors.GraphCycleDetected Field

FDRYMAF016: A cycle was detected in an agent graph.

public static readonly DiagnosticDescriptor GraphCycleDetected;

Field Value

Microsoft.CodeAnalysis.DiagnosticDescriptor

MafDiagnosticDescriptors.GraphEdgeSourceNotAgent Field

FDRYMAF020: A class has [AgentGraphEdge] but is not a declared agent.

public static readonly DiagnosticDescriptor GraphEdgeSourceNotAgent;

Field Value

Microsoft.CodeAnalysis.DiagnosticDescriptor

MafDiagnosticDescriptors.GraphEdgeTargetNotAgent Field

FDRYMAF019: An [AgentGraphEdge] references a target that is not a declared agent.

public static readonly DiagnosticDescriptor GraphEdgeTargetNotAgent;

Field Value

Microsoft.CodeAnalysis.DiagnosticDescriptor

MafDiagnosticDescriptors.GraphEntryPointNotAgent Field

FDRYMAF021: A class has [AgentGraphEntry] but is not a declared agent.

public static readonly DiagnosticDescriptor GraphEntryPointNotAgent;

Field Value

Microsoft.CodeAnalysis.DiagnosticDescriptor

MafDiagnosticDescriptors.GraphMultipleEntryPoints Field

FDRYMAF018: A named agent graph has multiple entry points.

public static readonly DiagnosticDescriptor GraphMultipleEntryPoints;

Field Value

Microsoft.CodeAnalysis.DiagnosticDescriptor

MafDiagnosticDescriptors.GraphNoEntryPoint Field

FDRYMAF017: A named agent graph has no entry point.

public static readonly DiagnosticDescriptor GraphNoEntryPoint;

Field Value

Microsoft.CodeAnalysis.DiagnosticDescriptor

MafDiagnosticDescriptors.GraphReducerMethodInvalid Field

FDRYMAF029: Reducer method not found or invalid signature.

public static readonly DiagnosticDescriptor GraphReducerMethodInvalid;

Field Value

Microsoft.CodeAnalysis.DiagnosticDescriptor

MafDiagnosticDescriptors.GraphTerminalNodeHasOutgoingEdges Field

FDRYMAF027: A terminal node has outgoing edges.

public static readonly DiagnosticDescriptor GraphTerminalNodeHasOutgoingEdges;

Field Value

Microsoft.CodeAnalysis.DiagnosticDescriptor

MafDiagnosticDescriptors.GraphUnreachableAgent Field

FDRYMAF022: An agent graph contains unreachable agents.

public static readonly DiagnosticDescriptor GraphUnreachableAgent;

Field Value

Microsoft.CodeAnalysis.DiagnosticDescriptor

MafDiagnosticDescriptors.GroupChatTooFewMembers Field

FDRYMAF002: [AgentGroupChatMember("g")] group "g" has fewer than two members.

public static readonly DiagnosticDescriptor GroupChatTooFewMembers;

Field Value

Microsoft.CodeAnalysis.DiagnosticDescriptor

MafDiagnosticDescriptors.HandoffsToSourceNotFoundryAgent Field

FDRYMAF003: A class has [AgentHandoffsTo] but is not decorated with [FoundryAgent].

public static readonly DiagnosticDescriptor HandoffsToSourceNotFoundryAgent;

Field Value

Microsoft.CodeAnalysis.DiagnosticDescriptor

MafDiagnosticDescriptors.HandoffsToTargetNotFoundryAgent Field

FDRYMAF001: [AgentHandoffsTo(typeof(X))] target type X is not decorated with [FoundryAgent].

public static readonly DiagnosticDescriptor HandoffsToTargetNotFoundryAgent;

Field Value

Microsoft.CodeAnalysis.DiagnosticDescriptor

MafDiagnosticDescriptors.OrphanAgent Field

FDRYMAF008: Agent participates in no topology declaration.

public static readonly DiagnosticDescriptor OrphanAgent;

Field Value

Microsoft.CodeAnalysis.DiagnosticDescriptor

MafDiagnosticDescriptors.PreferAgentTerminationConditionForGroupChat Field

FDRYMAF011: Prefer [AgentTerminationCondition] over [WorkflowRunTerminationCondition] for group chat members.

public static readonly DiagnosticDescriptor PreferAgentTerminationConditionForGroupChat;

Field Value

Microsoft.CodeAnalysis.DiagnosticDescriptor

MafDiagnosticDescriptors.TerminationConditionTypeInvalid Field

FDRYMAF010: Condition type does not implement IWorkflowTerminationCondition.

public static readonly DiagnosticDescriptor TerminationConditionTypeInvalid;

Field Value

Microsoft.CodeAnalysis.DiagnosticDescriptor

MafDiagnosticDescriptors.ToolResultToStringCall Field

FDRYMAF015: .ToString() is called on a tool result property that may contain a JsonElement. Use ToolResultSerializer.Serialize() instead.

public static readonly DiagnosticDescriptor ToolResultToStringCall;

Field Value

Microsoft.CodeAnalysis.DiagnosticDescriptor

MafDiagnosticDescriptors.UnresolvedFunctionGroupReference Field

FDRYMAF005: An agent declares a FunctionGroups entry with no matching [AgentFunctionGroup] class.

public static readonly DiagnosticDescriptor UnresolvedFunctionGroupReference;

Field Value

Microsoft.CodeAnalysis.DiagnosticDescriptor

MafDiagnosticDescriptors.WaitAnyIncompatibleWithCreateGraphWorkflow Field

FDRYMAF025: CreateGraphWorkflow called on a graph that has WaitAny nodes.

public static readonly DiagnosticDescriptor WaitAnyIncompatibleWithCreateGraphWorkflow;

Field Value

Microsoft.CodeAnalysis.DiagnosticDescriptor

MafDiagnosticDescriptors.WorkflowRunTerminationConditionOnNonAgent Field

FDRYMAF009: [WorkflowRunTerminationCondition] declared on a non-agent class.

public static readonly DiagnosticDescriptor WorkflowRunTerminationConditionOnNonAgent;

Field Value

Microsoft.CodeAnalysis.DiagnosticDescriptor