UNPKG

@copilotkit/runtime

Version:

<img src="https://github.com/user-attachments/assets/0a6b64d9-e193-4940-a3f6-60334ac34084" alt="banner" style="border-radius: 12px; border: 2px solid #d6d4fa;" />

15 lines (12 loc) 536 B
import { CreateCopilotRuntimeServerOptions } from "../shared"; import { copilotRuntimeNodeHttpEndpoint } from "../node-http"; import telemetry, { getRuntimeInstanceTelemetryInfo } from "../../telemetry-client"; export function copilotRuntimeNestEndpoint(options: CreateCopilotRuntimeServerOptions) { telemetry.setGlobalProperties({ runtime: { framework: "nest", }, }); telemetry.capture("oss.runtime.instance_created", getRuntimeInstanceTelemetryInfo(options)); return copilotRuntimeNodeHttpEndpoint(options); }