Skip to content

MafDiagnosticIds

NexusLabs.Needlr.AgentFramework.Analyzers

MafDiagnosticIds Class

Contains diagnostic IDs for all Needlr Agent Framework analyzers.

public static class MafDiagnosticIds

Inheritance System.Object 🡒 MafDiagnosticIds

Remarks

Agent Framework analyzer codes use the NDLRMAF prefix.

Fields

MafDiagnosticIds.AgentFunctionMissingDescription Field

NDLRMAF012: A method decorated with [AgentFunction] has no [System.ComponentModel.Description] attribute.

public const string AgentFunctionMissingDescription = "NDLRMAF012";

Field Value

System.String

MafDiagnosticIds.AgentFunctionParameterMissingDescription Field

NDLRMAF013: A parameter of an [AgentFunction] method (other than CancellationToken) has no [System.ComponentModel.Description] attribute.

public const string AgentFunctionParameterMissingDescription = "NDLRMAF013";

Field Value

System.String

MafDiagnosticIds.AgentFunctionTypesMiswired Field

NDLRMAF014: A type listed in FunctionTypes on a [NeedlrAiAgent] has no methods decorated with [AgentFunction], so the agent silently receives zero tools from that type.

public const string AgentFunctionTypesMiswired = "NDLRMAF014";

Field Value

System.String

MafDiagnosticIds.CyclicHandoffChain Field

NDLRMAF004: A cyclic handoff chain was detected (e.g. A → B → A).

public const string CyclicHandoffChain = "NDLRMAF004";

Field Value

System.String

MafDiagnosticIds.DuplicateSequenceOrder Field

NDLRMAF006: Two or more agents in the same [AgentSequenceMember] pipeline declare the same Order value.

public const string DuplicateSequenceOrder = "NDLRMAF006";

Field Value

System.String

MafDiagnosticIds.GapInSequenceOrder Field

NDLRMAF007: The Order values within a named [AgentSequenceMember] pipeline are not contiguous (a gap exists).

public const string GapInSequenceOrder = "NDLRMAF007";

Field Value

System.String

MafDiagnosticIds.GroupChatTooFewMembers Field

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

public const string GroupChatTooFewMembers = "NDLRMAF002";

Field Value

System.String

MafDiagnosticIds.HandoffsToSourceNotNeedlrAgent Field

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

public const string HandoffsToSourceNotNeedlrAgent = "NDLRMAF003";

Field Value

System.String

MafDiagnosticIds.HandoffsToTargetNotNeedlrAgent Field

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

public const string HandoffsToTargetNotNeedlrAgent = "NDLRMAF001";

Field Value

System.String

MafDiagnosticIds.OrphanAgent Field

NDLRMAF008: A class decorated with [NeedlrAiAgent] participates in no topology declaration ([AgentHandoffsTo], [AgentGroupChatMember], or [AgentSequenceMember]).

public const string OrphanAgent = "NDLRMAF008";

Field Value

System.String

MafDiagnosticIds.PreferAgentTerminationConditionForGroupChat Field

NDLRMAF011: [WorkflowRunTerminationCondition] is declared on a [AgentGroupChatMember] class; prefer [AgentTerminationCondition] for group chat members.

public const string PreferAgentTerminationConditionForGroupChat = "NDLRMAF011";

Field Value

System.String

MafDiagnosticIds.TerminationConditionTypeInvalid Field

NDLRMAF010: The conditionType passed to [WorkflowRunTerminationCondition] or [AgentTerminationCondition] does not implement IWorkflowTerminationCondition.

public const string TerminationConditionTypeInvalid = "NDLRMAF010";

Field Value

System.String

MafDiagnosticIds.UnresolvedFunctionGroupReference Field

NDLRMAF005: An agent declares a FunctionGroups entry whose name has no matching [AgentFunctionGroup("name")] class in this compilation.

public const string UnresolvedFunctionGroupReference = "NDLRMAF005";

Field Value

System.String

MafDiagnosticIds.WorkflowRunTerminationConditionOnNonAgent Field

NDLRMAF009: [WorkflowRunTerminationCondition] is declared on a class that is not decorated with [NeedlrAiAgent].

public const string WorkflowRunTerminationConditionOnNonAgent = "NDLRMAF009";

Field Value

System.String