@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;" />
52 lines (51 loc) • 3.26 kB
text/typescript
import "reflect-metadata";
import { OpenAIAdapter, OpenAIAdapterParams } from "../service-adapters/openai/openai-adapter.mjs";
import { LangChainAdapter } from "../service-adapters/langchain/langchain-adapter.mjs";
import { GoogleGenerativeAIAdapter } from "../service-adapters/google/google-genai-adapter.mjs";
import { OpenAIAssistantAdapter, OpenAIAssistantAdapterParams } from "../service-adapters/openai/openai-assistant-adapter.mjs";
import { UnifyAdapter, UnifyAdapterParams } from "../service-adapters/unify/unify-adapter.mjs";
import { GroqAdapter, GroqAdapterParams } from "../service-adapters/groq/groq-adapter.mjs";
import { CopilotRuntimeLogger, LogLevel, createLogger } from "./logger.mjs";
import { AgentFactoryContext, AgentsConfig, AgentsFactory } from "../v2/runtime/core/runtime.mjs";
import { MCPClient, MCPEndpointConfig, MCPTool, convertMCPToolsToActions, extractParametersFromSchema, generateMcpToolInstructions } from "./runtime/mcp-tools-utils.mjs";
import { CopilotRuntime, CopilotRuntimeConstructorParams_BASE, copilotKitEndpoint, langGraphPlatformEndpoint, resolveEndpointType } from "./runtime/copilot-runtime.mjs";
import { CommonConfig, CopilotEndpointCorsConfig, CopilotRequestContextProperties, CreateCopilotRuntimeServerOptions, GraphQLContext, buildSchema, getCommonConfig } from "./integrations/shared.mjs";
import { copilotRuntimeNextJSAppRouterEndpoint } from "./integrations/nextjs/app-router.mjs";
import { config, copilotRuntimeNextJSPagesRouterEndpoint } from "./integrations/nextjs/pages-router.mjs";
import { copilotRuntimeNodeHttpEndpoint } from "./integrations/node-http/index.mjs";
import { copilotRuntimeNodeExpressEndpoint } from "./integrations/node-express/index.mjs";
import { copilotRuntimeNestEndpoint } from "./integrations/nest/index.mjs";
import "./integrations/index.mjs";
import { TelemetryAgentRunner, TelemetryAgentRunnerConfig } from "./runtime/telemetry-agent-runner.mjs";
//#region src/lib/index.d.ts
/**
* @deprecated LangGraphAgent import from `@copilotkit/runtime` is deprecated. Please import it from `@copilotkit/runtime/langgraph` instead
*/
declare class LangGraphAgent {
constructor();
}
/**
* @deprecated LangGraphHttpAgent import from `@copilotkit/runtime` is deprecated. Please import it from `@copilotkit/runtime/langgraph` instead
*/
declare class LangGraphHttpAgent {
constructor();
}
/**
* @deprecated TextMessageEvents import from `@copilotkit/runtime` is deprecated. Please import it from `@copilotkit/runtime/langgraph` instead
*/
type TextMessageEvents = any;
/**
* @deprecated ToolCallEvents import from `@copilotkit/runtime` is deprecated. Please import it from `@copilotkit/runtime/langgraph` instead
*/
type ToolCallEvents = any;
/**
* @deprecated CustomEventNames import from `@copilotkit/runtime` is deprecated. Please import it from `@copilotkit/runtime/langgraph` instead
*/
type CustomEventNames = any;
/**
* @deprecated PredictStateTool import from `@copilotkit/runtime` is deprecated. Please import it from `@copilotkit/runtime/langgraph` instead
*/
type PredictStateTool = any;
//#endregion
export { CustomEventNames, LangGraphAgent, LangGraphHttpAgent, PredictStateTool, TextMessageEvents, ToolCallEvents };
//# sourceMappingURL=index.d.mts.map