@copilotkit/runtime
Version:
<div align="center"> <a href="https://copilotkit.ai" target="_blank"> <img src="https://github.com/copilotkit/copilotkit/raw/main/assets/banner.png" alt="CopilotKit Logo"> </a>
18 lines (15 loc) • 557 B
text/typescript
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.runtime),
);
return copilotRuntimeNodeHttpEndpoint(options);
}