ChannelAdapter.ContinueConversationAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ContinueConversationAsync(ClaimsIdentity, ConversationReference, AgentCallbackHandler, CancellationToken)
Continues a conversation in a new Turn. This is typically used for proactive interactions.
public virtual System.Threading.Tasks.Task ContinueConversationAsync(System.Security.Claims.ClaimsIdentity claimsIdentity, Microsoft.Agents.Core.Models.ConversationReference reference, Microsoft.Agents.Builder.AgentCallbackHandler callback, System.Threading.CancellationToken cancellationToken);
abstract member ContinueConversationAsync : System.Security.Claims.ClaimsIdentity * Microsoft.Agents.Core.Models.ConversationReference * Microsoft.Agents.Builder.AgentCallbackHandler * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.ContinueConversationAsync : System.Security.Claims.ClaimsIdentity * Microsoft.Agents.Core.Models.ConversationReference * Microsoft.Agents.Builder.AgentCallbackHandler * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function ContinueConversationAsync (claimsIdentity As ClaimsIdentity, reference As ConversationReference, callback As AgentCallbackHandler, cancellationToken As CancellationToken) As Task
Parameters
- claimsIdentity
- ClaimsIdentity
A ClaimsIdentity for the conversation.
- reference
- ConversationReference
A reference to the conversation to continue.
- callback
- AgentCallbackHandler
The method to call for the resulting Agent turn.
- cancellationToken
- CancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Returns
Implements
Applies to
ContinueConversationAsync(ClaimsIdentity, IActivity, AgentCallbackHandler, CancellationToken)
Sends a proactive message to a conversation. See ProcessProactiveAsync(ClaimsIdentity, IActivity, String, AgentCallbackHandler, CancellationToken).
public virtual System.Threading.Tasks.Task ContinueConversationAsync(System.Security.Claims.ClaimsIdentity claimsIdentity, Microsoft.Agents.Core.Models.IActivity continuationActivity, Microsoft.Agents.Builder.AgentCallbackHandler callback, System.Threading.CancellationToken cancellationToken);
abstract member ContinueConversationAsync : System.Security.Claims.ClaimsIdentity * Microsoft.Agents.Core.Models.IActivity * Microsoft.Agents.Builder.AgentCallbackHandler * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.ContinueConversationAsync : System.Security.Claims.ClaimsIdentity * Microsoft.Agents.Core.Models.IActivity * Microsoft.Agents.Builder.AgentCallbackHandler * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function ContinueConversationAsync (claimsIdentity As ClaimsIdentity, continuationActivity As IActivity, callback As AgentCallbackHandler, cancellationToken As CancellationToken) As Task
Parameters
- claimsIdentity
- ClaimsIdentity
A ClaimsIdentity for the conversation.
- continuationActivity
- IActivity
An Activity with the appropriate ConversationReference with which to continue the conversation.
- callback
- AgentCallbackHandler
The method to call for the resulting Agent turn.
- cancellationToken
- CancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Returns
A task that represents the work queued to execute.
Implements
Applies to
ContinueConversationAsync(String, ConversationReference, AgentCallbackHandler, CancellationToken)
Continues a conversation in a new Turn. This is typically used for proactive interactions.
public virtual System.Threading.Tasks.Task ContinueConversationAsync(string agentId, Microsoft.Agents.Core.Models.ConversationReference reference, Microsoft.Agents.Builder.AgentCallbackHandler callback, System.Threading.CancellationToken cancellationToken);
abstract member ContinueConversationAsync : string * Microsoft.Agents.Core.Models.ConversationReference * Microsoft.Agents.Builder.AgentCallbackHandler * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.ContinueConversationAsync : string * Microsoft.Agents.Core.Models.ConversationReference * Microsoft.Agents.Builder.AgentCallbackHandler * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function ContinueConversationAsync (agentId As String, reference As ConversationReference, callback As AgentCallbackHandler, cancellationToken As CancellationToken) As Task
Parameters
- agentId
- String
The application ID of the Agent.
- reference
- ConversationReference
A reference to the conversation to continue.
- callback
- AgentCallbackHandler
The method to call for the resulting Agent turn.
- cancellationToken
- CancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Returns
Implements
Applies to
ContinueConversationAsync(String, IActivity, AgentCallbackHandler, CancellationToken)
Continues a conversation in a new Turn. This is typically used for proactive interactions.
public virtual System.Threading.Tasks.Task ContinueConversationAsync(string agentId, Microsoft.Agents.Core.Models.IActivity continuationActivity, Microsoft.Agents.Builder.AgentCallbackHandler callback, System.Threading.CancellationToken cancellationToken);
abstract member ContinueConversationAsync : string * Microsoft.Agents.Core.Models.IActivity * Microsoft.Agents.Builder.AgentCallbackHandler * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.ContinueConversationAsync : string * Microsoft.Agents.Core.Models.IActivity * Microsoft.Agents.Builder.AgentCallbackHandler * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function ContinueConversationAsync (agentId As String, continuationActivity As IActivity, callback As AgentCallbackHandler, cancellationToken As CancellationToken) As Task
Parameters
- agentId
- String
The application ID of the Agent.
- continuationActivity
- IActivity
An Activity with the appropriate ConversationReference with which to continue the conversation.
- callback
- AgentCallbackHandler
The method to call for the resulting Agent turn.
- cancellationToken
- CancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Returns
Implements
Applies to
ContinueConversationAsync(ClaimsIdentity, ConversationReference, String, AgentCallbackHandler, CancellationToken)
Continues a conversation in a new Turn. This is typically used for proactive interactions.
public virtual System.Threading.Tasks.Task ContinueConversationAsync(System.Security.Claims.ClaimsIdentity claimsIdentity, Microsoft.Agents.Core.Models.ConversationReference reference, string audience, Microsoft.Agents.Builder.AgentCallbackHandler callback, System.Threading.CancellationToken cancellationToken);
abstract member ContinueConversationAsync : System.Security.Claims.ClaimsIdentity * Microsoft.Agents.Core.Models.ConversationReference * string * Microsoft.Agents.Builder.AgentCallbackHandler * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.ContinueConversationAsync : System.Security.Claims.ClaimsIdentity * Microsoft.Agents.Core.Models.ConversationReference * string * Microsoft.Agents.Builder.AgentCallbackHandler * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function ContinueConversationAsync (claimsIdentity As ClaimsIdentity, reference As ConversationReference, audience As String, callback As AgentCallbackHandler, cancellationToken As CancellationToken) As Task
Parameters
- claimsIdentity
- ClaimsIdentity
A ClaimsIdentity for the conversation.
- reference
- ConversationReference
A reference to the conversation to continue.
- audience
- String
A value signifying the recipient of the proactive message.
- callback
- AgentCallbackHandler
The method to call for the resulting Agent turn.
- cancellationToken
- CancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Returns
Implements
Applies to
ContinueConversationAsync(ClaimsIdentity, IActivity, String, AgentCallbackHandler, CancellationToken)
Continues a conversation in a new Turn. This is typically used for proactive interactions.
public virtual System.Threading.Tasks.Task ContinueConversationAsync(System.Security.Claims.ClaimsIdentity claimsIdentity, Microsoft.Agents.Core.Models.IActivity continuationActivity, string audience, Microsoft.Agents.Builder.AgentCallbackHandler callback, System.Threading.CancellationToken cancellationToken);
abstract member ContinueConversationAsync : System.Security.Claims.ClaimsIdentity * Microsoft.Agents.Core.Models.IActivity * string * Microsoft.Agents.Builder.AgentCallbackHandler * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.ContinueConversationAsync : System.Security.Claims.ClaimsIdentity * Microsoft.Agents.Core.Models.IActivity * string * Microsoft.Agents.Builder.AgentCallbackHandler * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function ContinueConversationAsync (claimsIdentity As ClaimsIdentity, continuationActivity As IActivity, audience As String, callback As AgentCallbackHandler, cancellationToken As CancellationToken) As Task
Parameters
- claimsIdentity
- ClaimsIdentity
A ClaimsIdentity for the conversation.
- continuationActivity
- IActivity
An Activity with the appropriate ConversationReference with which to continue the conversation.
- audience
- String
A value signifying the recipient of the proactive message.
- callback
- AgentCallbackHandler
The method to call for the resulting Agent turn.
- cancellationToken
- CancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation.