Partager via


RegexTerminationStrategy Constructors

Definition

Overloads

RegexTerminationStrategy(String[])

Initializes a new instance of the RegexTerminationStrategy class.

RegexTerminationStrategy(Regex[])

Initializes a new instance of the RegexTerminationStrategy class.

RegexTerminationStrategy(String[])

Initializes a new instance of the RegexTerminationStrategy class.

public RegexTerminationStrategy (params string[] expressions);
new Microsoft.SemanticKernel.Agents.Chat.RegexTerminationStrategy : string[] -> Microsoft.SemanticKernel.Agents.Chat.RegexTerminationStrategy
Public Sub New (ParamArray expressions As String())

Parameters

expressions
String[]

A list of regular expressions to match against an agent's last message to determine whether processing should terminate.

Applies to

RegexTerminationStrategy(Regex[])

Initializes a new instance of the RegexTerminationStrategy class.

public RegexTerminationStrategy (params System.Text.RegularExpressions.Regex[] expressions);
new Microsoft.SemanticKernel.Agents.Chat.RegexTerminationStrategy : System.Text.RegularExpressions.Regex[] -> Microsoft.SemanticKernel.Agents.Chat.RegexTerminationStrategy
Public Sub New (ParamArray expressions As Regex())

Parameters

expressions
Regex[]

A list of regular expressions to match against an agent's last message to determine whether processing should terminate.

Applies to