utils 套件

Microsoft Agent 365 Tooling SDK 的工具模組。

模組

constants

提供整個工具元件中使用的恆定數值。

utility

提供工具元件的實用功能。

類別

Constants

提供整個工具元件中使用的恆定數值。

函式

build_mcp_server_url

利用基礎 URL 與伺服器名稱建構完整的 MCP 伺服器 URL。

build_mcp_server_url(server_name: str) -> str

參數

名稱 Description
server_name
必要
str

MCP 伺服器名稱。

傳回

類型 Description
str

完整的 MCP 伺服器網址。

get_mcp_base_url

取得 MCP 伺服器的基礎網址。

get_mcp_base_url() -> str

傳回

類型 Description
str

MCP 伺服器的基礎網址。

get_mcp_platform_authentication_scope

取得 MCP 平台的認證範圍。

get_mcp_platform_authentication_scope() -> list[str]

傳回

類型 Description

包含適當 MCP 平台認證範圍的清單。

get_tooling_gateway_for_digital_worker

取得指定數位工作者的工具閘道網址。

get_tooling_gateway_for_digital_worker(agentic_app_id: str) -> str

參數

名稱 Description
agentic_app_id
必要
str

數位工作者的代理應用程式識別碼。

傳回

類型 Description
str

數位工作者的工具閘道網址。