@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>
15 lines (12 loc) • 536 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));
return copilotRuntimeNodeHttpEndpoint(options);
}