Skip to content

MafDiagnosticDescriptors

NexusLabs.Needlr.AgentFramework.Analyzers

MafDiagnosticDescriptors Class

Contains diagnostic descriptors for all Needlr Agent Framework analyzers.

public static class MafDiagnosticDescriptors

Inheritance System.Object 🡒 MafDiagnosticDescriptors

Fields

MafDiagnosticDescriptors.AgentFunctionMissingDescription Field

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

public static readonly DiagnosticDescriptor AgentFunctionMissingDescription;

Field Value

Microsoft.CodeAnalysis.DiagnosticDescriptor

MafDiagnosticDescriptors.AgentFunctionParameterMissingDescription Field

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

public static readonly DiagnosticDescriptor AgentFunctionParameterMissingDescription;

Field Value

Microsoft.CodeAnalysis.DiagnosticDescriptor

MafDiagnosticDescriptors.AgentFunctionTypesMiswired Field

NDLRMAF014: A type in FunctionTypes on [NeedlrAiAgent] has no [AgentFunction] methods.

public static readonly DiagnosticDescriptor AgentFunctionTypesMiswired;

Field Value

Microsoft.CodeAnalysis.DiagnosticDescriptor

MafDiagnosticDescriptors.CyclicHandoffChain Field

NDLRMAF004: A cyclic handoff chain was detected.

public static readonly DiagnosticDescriptor CyclicHandoffChain;

Field Value

Microsoft.CodeAnalysis.DiagnosticDescriptor

MafDiagnosticDescriptors.DuplicateSequenceOrder Field

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

public static readonly DiagnosticDescriptor DuplicateSequenceOrder;

Field Value

Microsoft.CodeAnalysis.DiagnosticDescriptor

MafDiagnosticDescriptors.GapInSequenceOrder Field

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

public static readonly DiagnosticDescriptor GapInSequenceOrder;

Field Value

Microsoft.CodeAnalysis.DiagnosticDescriptor

MafDiagnosticDescriptors.GroupChatTooFewMembers Field

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

public static readonly DiagnosticDescriptor GroupChatTooFewMembers;

Field Value

Microsoft.CodeAnalysis.DiagnosticDescriptor

MafDiagnosticDescriptors.HandoffsToSourceNotNeedlrAgent Field

NDLRMAF003: A class has [AgentHandoffsTo] but is not decorated with [NeedlrAiAgent].

public static readonly DiagnosticDescriptor HandoffsToSourceNotNeedlrAgent;

Field Value

Microsoft.CodeAnalysis.DiagnosticDescriptor

MafDiagnosticDescriptors.HandoffsToTargetNotNeedlrAgent Field

NDLRMAF001: [AgentHandoffsTo(typeof(X))] target type X is not decorated with [NeedlrAiAgent].

public static readonly DiagnosticDescriptor HandoffsToTargetNotNeedlrAgent;

Field Value

Microsoft.CodeAnalysis.DiagnosticDescriptor

MafDiagnosticDescriptors.OrphanAgent Field

NDLRMAF008: Agent participates in no topology declaration.

public static readonly DiagnosticDescriptor OrphanAgent;

Field Value

Microsoft.CodeAnalysis.DiagnosticDescriptor

MafDiagnosticDescriptors.PreferAgentTerminationConditionForGroupChat Field

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

public static readonly DiagnosticDescriptor PreferAgentTerminationConditionForGroupChat;

Field Value

Microsoft.CodeAnalysis.DiagnosticDescriptor

MafDiagnosticDescriptors.TerminationConditionTypeInvalid Field

NDLRMAF010: Condition type does not implement IWorkflowTerminationCondition.

public static readonly DiagnosticDescriptor TerminationConditionTypeInvalid;

Field Value

Microsoft.CodeAnalysis.DiagnosticDescriptor

MafDiagnosticDescriptors.UnresolvedFunctionGroupReference Field

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

public static readonly DiagnosticDescriptor UnresolvedFunctionGroupReference;

Field Value

Microsoft.CodeAnalysis.DiagnosticDescriptor

MafDiagnosticDescriptors.WorkflowRunTerminationConditionOnNonAgent Field

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

public static readonly DiagnosticDescriptor WorkflowRunTerminationConditionOnNonAgent;

Field Value

Microsoft.CodeAnalysis.DiagnosticDescriptor