mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
bdd0532b1c
Nuxt 3 demo application with CopilotKit integration showcasing popup, sidebar, single-agent, MCP apps, and A2UI demo pages with Hono-based API endpoints.
25 lines
684 B
TypeScript
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",
|
|
});
|