UNPKG

@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 (50 loc) 3.23 kB
import { OpenAIAdapter, OpenAIAdapterParams } from "../service-adapters/openai/openai-adapter.cjs"; import { LangChainAdapter } from "../service-adapters/langchain/langchain-adapter.cjs"; import { GoogleGenerativeAIAdapter } from "../service-adapters/google/google-genai-adapter.cjs"; import { OpenAIAssistantAdapter, OpenAIAssistantAdapterParams } from "../service-adapters/openai/openai-assistant-adapter.cjs"; import { UnifyAdapter, UnifyAdapterParams } from "../service-adapters/unify/unify-adapter.cjs"; import { GroqAdapter, GroqAdapterParams } from "../service-adapters/groq/groq-adapter.cjs"; import { CopilotRuntimeLogger, LogLevel, createLogger } from "./logger.cjs"; import { AgentFactoryContext, AgentsConfig, AgentsFactory } from "../v2/runtime/core/runtime.cjs"; import { MCPClient, MCPEndpointConfig, MCPTool, convertMCPToolsToActions, extractParametersFromSchema, generateMcpToolInstructions } from "./runtime/mcp-tools-utils.cjs"; import { CopilotRuntime, CopilotRuntimeConstructorParams_BASE, copilotKitEndpoint, langGraphPlatformEndpoint, resolveEndpointType } from "./runtime/copilot-runtime.cjs"; import { CommonConfig, CopilotEndpointCorsConfig, CopilotRequestContextProperties, CreateCopilotRuntimeServerOptions, GraphQLContext, buildSchema, getCommonConfig } from "./integrations/shared.cjs"; import { copilotRuntimeNextJSAppRouterEndpoint } from "./integrations/nextjs/app-router.cjs"; import { config, copilotRuntimeNextJSPagesRouterEndpoint } from "./integrations/nextjs/pages-router.cjs"; import { copilotRuntimeNodeHttpEndpoint } from "./integrations/node-http/index.cjs"; import { copilotRuntimeNodeExpressEndpoint } from "./integrations/node-express/index.cjs"; import { copilotRuntimeNestEndpoint } from "./integrations/nest/index.cjs"; import "./integrations/index.cjs"; import { TelemetryAgentRunner, TelemetryAgentRunnerConfig } from "./runtime/telemetry-agent-runner.cjs"; //#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.cts.map