Compartilhar via


IChannelAdapter.ContinueConversationAsync Method

Definition

Overloads

Name Description
ContinueConversationAsync(ClaimsIdentity, ConversationReference, AgentCallbackHandler, CancellationToken)

Continues a conversation in a new Turn. This is typically used for proactive interactions.

ContinueConversationAsync(ClaimsIdentity, IActivity, AgentCallbackHandler, CancellationToken)
Obsolete.

Sends a proactive message to a conversation. See ProcessProactiveAsync(ClaimsIdentity, IActivity, String, AgentCallbackHandler, CancellationToken).

ContinueConversationAsync(String, ConversationReference, AgentCallbackHandler, CancellationToken)
Obsolete.

Continues a conversation in a new Turn. This is typically used for proactive interactions.

ContinueConversationAsync(String, IActivity, AgentCallbackHandler, CancellationToken)
Obsolete.

Continues a conversation in a new Turn. This is typically used for proactive interactions.

ContinueConversationAsync(ClaimsIdentity, ConversationReference, String, AgentCallbackHandler, CancellationToken)

Continues a conversation in a new Turn. This is typically used for proactive interactions.

ContinueConversationAsync(ClaimsIdentity, IActivity, String, AgentCallbackHandler, CancellationToken)
Obsolete.

Continues a conversation in a new Turn. This is typically used for proactive interactions.

ContinueConversationAsync(ClaimsIdentity, ConversationReference, AgentCallbackHandler, CancellationToken)

Continues a conversation in a new Turn. This is typically used for proactive interactions.

public 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
Public 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

Remarks

This is a convenience wrapper for ProcessProactiveAsync(ClaimsIdentity, IActivity, String, AgentCallbackHandler, CancellationToken).

Applies to

ContinueConversationAsync(ClaimsIdentity, IActivity, AgentCallbackHandler, CancellationToken)

Caution

This method will be removed in future versions of the SDK

[System.Obsolete("This method will be removed in future versions of the SDK")]
public 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);
[<System.Obsolete("This method will be removed in future versions of the SDK")>]
abstract member ContinueConversationAsync : System.Security.Claims.ClaimsIdentity * Microsoft.Agents.Core.Models.IActivity * Microsoft.Agents.Builder.AgentCallbackHandler * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public 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.

Attributes

Remarks

This is a convenience wrapper for ProcessProactiveAsync(ClaimsIdentity, IActivity, String, AgentCallbackHandler, CancellationToken).

Applies to

ContinueConversationAsync(String, ConversationReference, AgentCallbackHandler, CancellationToken)

Caution

Use ContinueConversationAsync(ClaimsIdentity, ConversationReference, AgentCallbackHandler, CancellationToken)

Continues a conversation in a new Turn. This is typically used for proactive interactions.

[System.Obsolete("Use ContinueConversationAsync(ClaimsIdentity, ConversationReference, AgentCallbackHandler, CancellationToken)")]
public System.Threading.Tasks.Task ContinueConversationAsync(string agentId, Microsoft.Agents.Core.Models.ConversationReference reference, Microsoft.Agents.Builder.AgentCallbackHandler callback, System.Threading.CancellationToken cancellationToken);
[<System.Obsolete("Use ContinueConversationAsync(ClaimsIdentity, ConversationReference, AgentCallbackHandler, CancellationToken)")>]
abstract member ContinueConversationAsync : string * Microsoft.Agents.Core.Models.ConversationReference * Microsoft.Agents.Builder.AgentCallbackHandler * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public 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

Attributes

Remarks

This is a convenience wrapper for ProcessProactiveAsync(ClaimsIdentity, IActivity, String, AgentCallbackHandler, CancellationToken).

Using this overload will only work against Azure Bot Service and Agentic. For proactive to other agents (including Copilot Studio), use ContinueConversationAsync(ClaimsIdentity, ConversationReference, AgentCallbackHandler, CancellationToken). Use CreateIdentity(String, Boolean, String) to create a ClaimsIdentity with both the audience (your agents ClientId) and appId (the other agents ClientId).

Applies to

ContinueConversationAsync(String, IActivity, AgentCallbackHandler, CancellationToken)

Caution

Use ContinueConversationAsync(ClaimsIdentity, IActivity, AgentCallbackHandler, CancellationToken)

Continues a conversation in a new Turn. This is typically used for proactive interactions.

[System.Obsolete("Use ContinueConversationAsync(ClaimsIdentity, IActivity, AgentCallbackHandler, CancellationToken)")]
public System.Threading.Tasks.Task ContinueConversationAsync(string agentId, Microsoft.Agents.Core.Models.IActivity continuationActivity, Microsoft.Agents.Builder.AgentCallbackHandler callback, System.Threading.CancellationToken cancellationToken);
[<System.Obsolete("Use ContinueConversationAsync(ClaimsIdentity, IActivity, AgentCallbackHandler, CancellationToken)")>]
abstract member ContinueConversationAsync : string * Microsoft.Agents.Core.Models.IActivity * Microsoft.Agents.Builder.AgentCallbackHandler * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public 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

Attributes

Remarks

This is a convenience wrapper for ProcessProactiveAsync(ClaimsIdentity, IActivity, String, AgentCallbackHandler, CancellationToken).

Using this overload will only work against Azure Bot Service and Agentic. For proactive to other agents (including Copilot Studio), use ContinueConversationAsync(ClaimsIdentity, IActivity, AgentCallbackHandler, CancellationToken). Use CreateIdentity(String, Boolean, String) to create a ClaimsIdentity with both the audience (your agents ClientId) and appId (the other agents ClientId).

Applies to

ContinueConversationAsync(ClaimsIdentity, ConversationReference, String, AgentCallbackHandler, CancellationToken)

Continues a conversation in a new Turn. This is typically used for proactive interactions.

public 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
Public 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. This overrides the default use of ClaimsIdentity for the audience.

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

Remarks

This is a convenience wrapper for ProcessProactiveAsync(ClaimsIdentity, IActivity, String, AgentCallbackHandler, CancellationToken).

Applies to

ContinueConversationAsync(ClaimsIdentity, IActivity, String, AgentCallbackHandler, CancellationToken)

Caution

This method will be removed in future versions of the SDK. Use ProcessProactiveAsync instead.

Continues a conversation in a new Turn. This is typically used for proactive interactions.

[System.Obsolete("This method will be removed in future versions of the SDK. Use ProcessProactiveAsync instead.")]
public 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);
[<System.Obsolete("This method will be removed in future versions of the SDK. Use ProcessProactiveAsync instead.")>]
abstract member ContinueConversationAsync : System.Security.Claims.ClaimsIdentity * Microsoft.Agents.Core.Models.IActivity * string * Microsoft.Agents.Builder.AgentCallbackHandler * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public 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.

Returns

Attributes

Remarks

This is a convenience wrapper for ProcessProactiveAsync(ClaimsIdentity, IActivity, String, AgentCallbackHandler, CancellationToken).

Applies to