Freigeben über


McpToolServerConfigurationService.SendChatHistoryAsync Method

Definition

Overloads

Name Description
SendChatHistoryAsync(ITurnContext, ChatHistoryMessage[], CancellationToken)

Sends chat history to the MCP platform for real-time threat protection.

SendChatHistoryAsync(ITurnContext, ChatHistoryMessage[], ToolOptions, CancellationToken)

Sends chat history to the MCP platform for real-time threat protection.

SendChatHistoryAsync(ITurnContext, ChatHistoryMessage[], CancellationToken)

Source:
McpToolServerConfigurationService.cs

Sends chat history to the MCP platform for real-time threat protection.

public System.Threading.Tasks.Task<Microsoft.Agents.A365.Runtime.OperationResult> SendChatHistoryAsync(Microsoft.Agents.Builder.ITurnContext turnContext, Microsoft.Agents.A365.Tooling.Models.ChatHistoryMessage[] chatHistoryMessages, System.Threading.CancellationToken cancellationToken = default);
abstract member SendChatHistoryAsync : Microsoft.Agents.Builder.ITurnContext * Microsoft.Agents.A365.Tooling.Models.ChatHistoryMessage[] * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Agents.A365.Runtime.OperationResult>
override this.SendChatHistoryAsync : Microsoft.Agents.Builder.ITurnContext * Microsoft.Agents.A365.Tooling.Models.ChatHistoryMessage[] * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Agents.A365.Runtime.OperationResult>
Public Function SendChatHistoryAsync (turnContext As ITurnContext, chatHistoryMessages As ChatHistoryMessage(), Optional cancellationToken As CancellationToken = Nothing) As Task(Of OperationResult)

Parameters

turnContext
ITurnContext

The turn context containing conversation information.

chatHistoryMessages
ChatHistoryMessage[]

The chat history messages to send.

cancellationToken
CancellationToken

A cancellation token to cancel the operation.

Returns

A task representing the asynchronous operation that returns an OperationResult indicating success or failure.

Implements

Applies to

SendChatHistoryAsync(ITurnContext, ChatHistoryMessage[], ToolOptions, CancellationToken)

Source:
McpToolServerConfigurationService.cs

Sends chat history to the MCP platform for real-time threat protection.

public System.Threading.Tasks.Task<Microsoft.Agents.A365.Runtime.OperationResult> SendChatHistoryAsync(Microsoft.Agents.Builder.ITurnContext turnContext, Microsoft.Agents.A365.Tooling.Models.ChatHistoryMessage[] chatHistoryMessages, Microsoft.Agents.A365.Tooling.Models.ToolOptions toolOptions, System.Threading.CancellationToken cancellationToken = default);
abstract member SendChatHistoryAsync : Microsoft.Agents.Builder.ITurnContext * Microsoft.Agents.A365.Tooling.Models.ChatHistoryMessage[] * Microsoft.Agents.A365.Tooling.Models.ToolOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Agents.A365.Runtime.OperationResult>
override this.SendChatHistoryAsync : Microsoft.Agents.Builder.ITurnContext * Microsoft.Agents.A365.Tooling.Models.ChatHistoryMessage[] * Microsoft.Agents.A365.Tooling.Models.ToolOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Agents.A365.Runtime.OperationResult>
Public Function SendChatHistoryAsync (turnContext As ITurnContext, chatHistoryMessages As ChatHistoryMessage(), toolOptions As ToolOptions, Optional cancellationToken As CancellationToken = Nothing) As Task(Of OperationResult)

Parameters

turnContext
ITurnContext

The turn context containing conversation information.

chatHistoryMessages
ChatHistoryMessage[]

The chat history messages to send.

toolOptions
ToolOptions

Tool options for sending chat history.

cancellationToken
CancellationToken

A cancellation token to cancel the operation.

Returns

A task representing the asynchronous operation that returns an OperationResult indicating success or failure.

Implements

Applies to