Condividi tramite


McpToolRegistrationService.AddToolServersToAgentAsync Method

Definition

Adds the A365 MCP Tool Servers

public System.Threading.Tasks.Task AddToolServersToAgentAsync(Microsoft.SemanticKernel.Kernel kernel, Microsoft.Agents.Builder.App.UserAuth.UserAuthorization userAuthorization, string authHandlerName, Microsoft.Agents.Builder.ITurnContext turnContext, string? authToken = default);
abstract member AddToolServersToAgentAsync : Microsoft.SemanticKernel.Kernel * Microsoft.Agents.Builder.App.UserAuth.UserAuthorization * string * Microsoft.Agents.Builder.ITurnContext * string -> System.Threading.Tasks.Task
override this.AddToolServersToAgentAsync : Microsoft.SemanticKernel.Kernel * Microsoft.Agents.Builder.App.UserAuth.UserAuthorization * string * Microsoft.Agents.Builder.ITurnContext * string -> System.Threading.Tasks.Task
Public Function AddToolServersToAgentAsync (kernel As Kernel, userAuthorization As UserAuthorization, authHandlerName As String, turnContext As ITurnContext, Optional authToken As String = Nothing) As Task

Parameters

kernel
Kernel

The kernel to which the tools will be added.

userAuthorization
UserAuthorization

Agents SDK UserAuthorization System

authHandlerName
String

Authentication Handler Name for use with the UserAuthorization System

turnContext
ITurnContext
authToken
String

Auth token to access the MCP servers

Returns

Returns a new object of the kernel

Implements

Applies to