ContinueConversationRoute<TAgent> Constructors

Definition

Overloads

Name Description
ContinueConversationRoute<TAgent>(String, String)

Initializes a new instance of the ContinueConversationRoute class using the specified delegate name and a comma-delimited list of token handler names.

ContinueConversationRoute<TAgent>(String, String[])

Initializes a new instance of the ContinueConversationRoute class with the specified delegate method name and optional token handlers.

ContinueConversationRoute<TAgent>(String, String)

Initializes a new instance of the ContinueConversationRoute class using the specified delegate name and a comma-delimited list of token handler names.

public ContinueConversationRoute(string delegateName, string delimitedTokenHandlers = default);
new Microsoft.Agents.Builder.App.Proactive.ContinueConversationRoute<'Agent (requires 'Agent :> Microsoft.Agents.Builder.App.AgentApplication)> : string * string -> Microsoft.Agents.Builder.App.Proactive.ContinueConversationRoute<'Agent (requires 'Agent :> Microsoft.Agents.Builder.App.AgentApplication)>
Public Sub New (delegateName As String, Optional delimitedTokenHandlers As String = Nothing)

Parameters

delegateName
String

The name of the delegate to be used for continuing the conversation. Cannot be null or empty.

delimitedTokenHandlers
String

A comma-separated string containing the names of token handlers to associate with the route. If null or empty, no token handlers are assigned.

Remarks

If multiple token handler names are provided in the delimitedTokenHandlers parameter, they are split and trimmed before being assigned. This constructor is useful when token handler names are provided as a single string rather than an array.

Applies to

ContinueConversationRoute<TAgent>(String, String[])

Initializes a new instance of the ContinueConversationRoute class with the specified delegate method name and optional token handlers.

public ContinueConversationRoute(string delegateName, string[] tokenHandlers = default);
new Microsoft.Agents.Builder.App.Proactive.ContinueConversationRoute<'Agent (requires 'Agent :> Microsoft.Agents.Builder.App.AgentApplication)> : string * string[] -> Microsoft.Agents.Builder.App.Proactive.ContinueConversationRoute<'Agent (requires 'Agent :> Microsoft.Agents.Builder.App.AgentApplication)>
Public Sub New (delegateName As String, Optional tokenHandlers As String() = Nothing)

Parameters

delegateName
String

The name of the method on the agent type to be used as the continue route handler. This method must exist on the agent and can be public or non-public.

tokenHandlers
String[]

An optional array of token handler names to associate with this route. May be null if no token handlers are required.

Exceptions

Thrown if a method with the specified name does not exist on the agent type.

Applies to