IMcpToolRegistrationService.AddToolServersToAgentAsync 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.
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
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