Files
copilotkit__copilotkit/examples/v2/vue/demo/server/utils/endpoints.ts
enekesabel bdd0532b1c feat(vue-demo): add Nuxt demo app
Nuxt 3 demo application with CopilotKit integration
showcasing popup, sidebar, single-agent, MCP apps, and
A2UI demo pages with Hono-based API endpoints.
2026-05-13 15:50:12 -07:00

25 lines
684 B
TypeScript

import {
createCopilotEndpoint,
createCopilotEndpointSingleRoute,
} from "@copilotkit/runtime/v2";
import { createDefaultRuntime, createMcpRuntime } from "./runtime";
const defaultRuntime = createDefaultRuntime();
const singleRuntime = createDefaultRuntime();
const mcpRuntime = createMcpRuntime();
export const copilotEndpoint = createCopilotEndpoint({
runtime: defaultRuntime,
basePath: "/api/copilotkit",
});
export const copilotSingleEndpoint = createCopilotEndpointSingleRoute({
runtime: singleRuntime,
basePath: "/api/copilotkit-single",
});
export const copilotMcpEndpoint = createCopilotEndpoint({
runtime: mcpRuntime,
basePath: "/api/copilotkit-mcp",
});