@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;" />
35 lines (30 loc) • 1.57 kB
TypeScript
import { b as CreateCopilotRuntimeServerOptions, G as GraphQLContext } from '../../shared-96b46379.js';
export { e as CommonConfig, C as CopilotRequestContextProperties, a as addCustomHeaderPlugin, d as buildSchema, c as createContext, g as getCommonConfig } from '../../shared-96b46379.js';
import * as graphql_yoga from 'graphql-yoga';
import { YogaServerInstance } from 'graphql-yoga';
export { copilotRuntimeNodeHttpEndpoint } from './node-http/index.js';
export { copilotRuntimeNodeExpressEndpoint } from './node-express/index.js';
export { copilotRuntimeNestEndpoint } from './nest/index.js';
import 'graphql';
import 'pino';
import '@copilotkit/shared';
import '../../langserve-3e8d0e06.js';
import '../../index-d4614f9b.js';
import '../../graphql/types/base/index.js';
import 'rxjs';
import '../cloud/index.js';
import '@ag-ui/client';
declare function copilotRuntimeNextJSAppRouterEndpoint(options: CreateCopilotRuntimeServerOptions): {
handleRequest: graphql_yoga.YogaServerInstance<{}, Partial<GraphQLContext>>;
GET: any;
POST: any;
OPTIONS: any;
};
declare const config: {
api: {
bodyParser: boolean;
};
};
type CopilotRuntimeServerInstance<T> = YogaServerInstance<T, Partial<GraphQLContext>>;
declare function copilotRuntimeNextJSPagesRouterEndpoint(options: CreateCopilotRuntimeServerOptions): CopilotRuntimeServerInstance<GraphQLContext>;
export { CopilotRuntimeServerInstance, CreateCopilotRuntimeServerOptions, GraphQLContext, config, copilotRuntimeNextJSAppRouterEndpoint, copilotRuntimeNextJSPagesRouterEndpoint };