Skip to content

TerminationConditionAnalyzer

NexusLabs.Foundry.MicrosoftAgentFramework.Analyzers

TerminationConditionAnalyzer Class

Analyzer that validates termination condition declarations on agent classes.

public sealed class TerminationConditionAnalyzer

Inheritance Microsoft.CodeAnalysis.Diagnostics.DiagnosticAnalyzer 🡒 TerminationConditionAnalyzer

Remarks

\<b>FDRYMAF009\</b> (Warning): [WorkflowRunTerminationCondition] is declared on a class that is not also decorated with [FoundryAgent].
\<b>FDRYMAF010\</b> (Error): The conditionType passed to [WorkflowRunTerminationCondition] or [AgentTerminationCondition] does not implement IWorkflowTerminationCondition.
\<b>FDRYMAF011\</b> (Info): [WorkflowRunTerminationCondition] is declared on a [AgentGroupChatMember]; prefer [AgentTerminationCondition] for group chats.