UNPKG

@microsoft/agents-m365copilot-core

Version:

Core functionalities for the Microsoft Agents M365 Copilot JavaScript SDK

22 lines 1.02 kB
import { HttpClient } from "@microsoft/kiota-http-fetchlibrary"; import { getDefaultMiddlewares } from "../middleware/index.js"; /** * Specialized version of the HTTP client for the Agents M365 Copilot API that bootstraps telemetry, /me replacement, and other aspects */ export class AgentsM365CopilotHttpClient extends HttpClient { /** * Creates a new instance of the AgentsM365CopilotHttpClient class * @param agentsM365CopilotTelemetryOption The options for telemetry * @param customFetch The custom fetch implementation to use * @param middlewares The middlewares to use */ constructor(agentsM365CopilotTelemetryOption, customFetch, ...middlewares) { super(customFetch, ...((middlewares !== null && middlewares !== void 0 ? middlewares : []).length > 0 ? middlewares : getDefaultMiddlewares({ customFetch, agentsM365CopilotTelemetryOption, }))); } } //# sourceMappingURL=agentsM365CopilotHttpClient.js.map