@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;" />
644 lines (643 loc) • 31.9 kB
text/typescript
import { CopilotRuntimeChatCompletionRequest, CopilotRuntimeChatCompletionResponse, CopilotServiceAdapter } from "./service-adapters/service-adapter.cjs";
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 { convertServiceAdapterError } from "./service-adapters/shared/error-utils.cjs";
import { SdkClientLike, getSdkClientOptions } from "./service-adapters/shared/sdk-client-utils.cjs";
import { GroqAdapter, GroqAdapterParams } from "./service-adapters/groq/groq-adapter.cjs";
import { RemoteChain, RemoteChainParameters } from "./service-adapters/langchain/langserve.cjs";
import { AnthropicAdapter, AnthropicAdapterParams, AnthropicPromptCachingConfig } from "./service-adapters/anthropic/anthropic-adapter.cjs";
import { ExperimentalOllamaAdapter } from "./service-adapters/experimental/ollama/ollama-adapter.cjs";
import { BedrockAdapter, BedrockAdapterParams } from "./service-adapters/bedrock/bedrock-adapter.cjs";
import { EmptyAdapter, ExperimentalEmptyAdapter } from "./service-adapters/empty/empty-adapter.cjs";
import "./service-adapters/index.cjs";
import { CopilotRuntimeLogger, LogLevel, createLogger } from "./lib/logger.cjs";
import { AgentFactoryContext, AgentsConfig, AgentsFactory } from "./v2/runtime/core/runtime.cjs";
import { MCPClient, MCPEndpointConfig, MCPTool, convertMCPToolsToActions, extractParametersFromSchema, generateMcpToolInstructions } from "./lib/runtime/mcp-tools-utils.cjs";
import { CopilotRuntime, CopilotRuntimeConstructorParams_BASE, copilotKitEndpoint, langGraphPlatformEndpoint, resolveEndpointType } from "./lib/runtime/copilot-runtime.cjs";
import { CommonConfig, CopilotEndpointCorsConfig, CopilotRequestContextProperties, CreateCopilotRuntimeServerOptions, GraphQLContext, GraphQLRequestContext, buildSchema, getCommonConfig } from "./lib/integrations/shared.cjs";
import { copilotRuntimeNextJSAppRouterEndpoint } from "./lib/integrations/nextjs/app-router.cjs";
import { config, copilotRuntimeNextJSPagesRouterEndpoint } from "./lib/integrations/nextjs/pages-router.cjs";
import { copilotRuntimeNodeHttpEndpoint } from "./lib/integrations/node-http/index.cjs";
import { copilotRuntimeNodeExpressEndpoint } from "./lib/integrations/node-express/index.cjs";
import { copilotRuntimeNestEndpoint } from "./lib/integrations/nest/index.cjs";
import { TelemetryAgentRunner, TelemetryAgentRunnerConfig } from "./lib/runtime/telemetry-agent-runner.cjs";
import { CustomEventNames, LangGraphAgent, LangGraphHttpAgent, PredictStateTool, TextMessageEvents, ToolCallEvents } from "./lib/index.cjs";
import { GuardrailsValidationFailureResponse, MessageStreamInterruptedResponse, UnknownErrorResponse } from "./utils/failed-response-status-reasons.cjs";
export { /**
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
* Use `AgentFactoryContext` from `@copilotkit/runtime/v2` instead.
* Import and usage example:
* ```ts
* import type { AgentFactoryContext } from "@copilotkit/runtime/v2";
* type V2AgentFactoryContext = AgentFactoryContext;
* ```
* See https://docs.copilotkit.ai/runtime-server-adapter
* Migration guide: https://docs.copilotkit.ai/migrate/v2
*/
type AgentFactoryContext, /**
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
* Use `AgentsConfig` from `@copilotkit/runtime/v2` instead.
* Import and usage example:
* ```ts
* import type { AgentsConfig } from "@copilotkit/runtime/v2";
* type V2AgentsConfig = AgentsConfig;
* ```
* See https://docs.copilotkit.ai/runtime-server-adapter
* Migration guide: https://docs.copilotkit.ai/migrate/v2
*/
type AgentsConfig, /**
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
* Use `AgentsFactory` from `@copilotkit/runtime/v2` instead.
* Import and usage example:
* ```ts
* import type { AgentsFactory } from "@copilotkit/runtime/v2";
* type V2AgentsFactory = AgentsFactory;
* ```
* See https://docs.copilotkit.ai/runtime-server-adapter
* Migration guide: https://docs.copilotkit.ai/migrate/v2
*/
type AgentsFactory, /**
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
* No 1:1 v2 replacement is available.
* Related v2 docs (Runtime server adapter): https://docs.copilotkit.ai/runtime-server-adapter
* Start with `@copilotkit/runtime/v2`.
* V2 docs: https://docs.copilotkit.ai/
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
* Migration guide: https://docs.copilotkit.ai/migrate/v2
*/
AnthropicAdapter, /**
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
* No 1:1 v2 replacement is available.
* Related v2 docs (Runtime server adapter): https://docs.copilotkit.ai/runtime-server-adapter
* Start with `@copilotkit/runtime/v2`.
* V2 docs: https://docs.copilotkit.ai/
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
* Migration guide: https://docs.copilotkit.ai/migrate/v2
*/
type AnthropicAdapterParams, /**
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
* No 1:1 v2 replacement is available.
* Related v2 docs (Runtime server adapter): https://docs.copilotkit.ai/runtime-server-adapter
* Start with `@copilotkit/runtime/v2`.
* V2 docs: https://docs.copilotkit.ai/
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
* Migration guide: https://docs.copilotkit.ai/migrate/v2
*/
type AnthropicPromptCachingConfig, /**
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
* No 1:1 v2 replacement is available.
* Related v2 docs (Runtime server adapter): https://docs.copilotkit.ai/runtime-server-adapter
* Start with `@copilotkit/runtime/v2`.
* V2 docs: https://docs.copilotkit.ai/
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
* Migration guide: https://docs.copilotkit.ai/migrate/v2
*/
BedrockAdapter, /**
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
* No 1:1 v2 replacement is available.
* Related v2 docs (Runtime server adapter): https://docs.copilotkit.ai/runtime-server-adapter
* Start with `@copilotkit/runtime/v2`.
* V2 docs: https://docs.copilotkit.ai/
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
* Migration guide: https://docs.copilotkit.ai/migrate/v2
*/
type BedrockAdapterParams, /**
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
* No 1:1 v2 replacement is available.
* Related v2 docs (Runtime server adapter): https://docs.copilotkit.ai/runtime-server-adapter
* Start with `@copilotkit/runtime/v2`.
* V2 docs: https://docs.copilotkit.ai/
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
* Migration guide: https://docs.copilotkit.ai/migrate/v2
*/
type CommonConfig, /**
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
* Use `CopilotEndpointCorsConfig` from `@copilotkit/runtime/v2` instead.
* Import and usage example:
* ```ts
* import type { CopilotEndpointCorsConfig } from "@copilotkit/runtime/v2";
* type V2CopilotEndpointCorsConfig = CopilotEndpointCorsConfig;
* ```
* See https://docs.copilotkit.ai/runtime-server-adapter
* Migration guide: https://docs.copilotkit.ai/migrate/v2
*/
type CopilotEndpointCorsConfig, /**
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
* No 1:1 v2 replacement is available.
* Related v2 docs (Runtime server adapter): https://docs.copilotkit.ai/runtime-server-adapter
* Start with `@copilotkit/runtime/v2`.
* V2 docs: https://docs.copilotkit.ai/
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
* Migration guide: https://docs.copilotkit.ai/migrate/v2
*/
type CopilotRequestContextProperties, /**
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
* Use `CopilotRuntime` from `@copilotkit/runtime/v2` instead.
* Import and usage example:
* ```ts
* import { CopilotRuntime } from "@copilotkit/runtime/v2";
* const runtime = new CopilotRuntime({ agents: {} });
* ```
* See https://docs.copilotkit.ai/runtime-server-adapter
* Migration guide: https://docs.copilotkit.ai/migrate/v2
*/
CopilotRuntime, /**
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
* No 1:1 v2 replacement is available.
* Related v2 docs (Runtime server adapter): https://docs.copilotkit.ai/runtime-server-adapter
* Start with `@copilotkit/runtime/v2`.
* V2 docs: https://docs.copilotkit.ai/
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
* Migration guide: https://docs.copilotkit.ai/migrate/v2
*/
type CopilotRuntimeChatCompletionRequest, /**
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
* No 1:1 v2 replacement is available.
* Related v2 docs (Runtime server adapter): https://docs.copilotkit.ai/runtime-server-adapter
* Start with `@copilotkit/runtime/v2`.
* V2 docs: https://docs.copilotkit.ai/
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
* Migration guide: https://docs.copilotkit.ai/migrate/v2
*/
type CopilotRuntimeChatCompletionResponse, /**
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
* No 1:1 v2 replacement is available.
* Related v2 docs (Runtime server adapter): https://docs.copilotkit.ai/runtime-server-adapter
* Start with `@copilotkit/runtime/v2`.
* V2 docs: https://docs.copilotkit.ai/
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
* Migration guide: https://docs.copilotkit.ai/migrate/v2
*/
type CopilotRuntimeConstructorParams_BASE, /**
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
* No 1:1 v2 replacement is available.
* Start with `@copilotkit/runtime/v2`.
* V2 docs: https://docs.copilotkit.ai/
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
* Migration guide: https://docs.copilotkit.ai/migrate/v2
*/
type CopilotRuntimeLogger, /**
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
* No 1:1 v2 replacement is available.
* Related v2 docs (Runtime server adapter): https://docs.copilotkit.ai/runtime-server-adapter
* Start with `@copilotkit/runtime/v2`.
* V2 docs: https://docs.copilotkit.ai/
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
* Migration guide: https://docs.copilotkit.ai/migrate/v2
*/
type CopilotServiceAdapter, /**
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
* No 1:1 v2 replacement is available.
* Related v2 docs (Runtime server adapter): https://docs.copilotkit.ai/runtime-server-adapter
* Start with `@copilotkit/runtime/v2`.
* V2 docs: https://docs.copilotkit.ai/
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
* Migration guide: https://docs.copilotkit.ai/migrate/v2
*/
type CreateCopilotRuntimeServerOptions, /**
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
* No 1:1 v2 replacement is available.
* Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
* Start with `@copilotkit/runtime/v2`.
* V2 docs: https://docs.copilotkit.ai/
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
* Migration guide: https://docs.copilotkit.ai/migrate/v2
*/
type CustomEventNames, /**
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
* No 1:1 v2 replacement is available.
* Related v2 docs (Runtime server adapter): https://docs.copilotkit.ai/runtime-server-adapter
* Start with `@copilotkit/runtime/v2`.
* V2 docs: https://docs.copilotkit.ai/
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
* Migration guide: https://docs.copilotkit.ai/migrate/v2
*/
EmptyAdapter, /**
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
* No 1:1 v2 replacement is available.
* Related v2 docs (Runtime server adapter): https://docs.copilotkit.ai/runtime-server-adapter
* Start with `@copilotkit/runtime/v2`.
* V2 docs: https://docs.copilotkit.ai/
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
* Migration guide: https://docs.copilotkit.ai/migrate/v2
*/
ExperimentalEmptyAdapter, /**
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
* No 1:1 v2 replacement is available.
* Related v2 docs (Runtime server adapter): https://docs.copilotkit.ai/runtime-server-adapter
* Start with `@copilotkit/runtime/v2`.
* V2 docs: https://docs.copilotkit.ai/
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
* Migration guide: https://docs.copilotkit.ai/migrate/v2
*/
ExperimentalOllamaAdapter, /**
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
* No 1:1 v2 replacement is available.
* Related v2 docs (Runtime server adapter): https://docs.copilotkit.ai/runtime-server-adapter
* Start with `@copilotkit/runtime/v2`.
* V2 docs: https://docs.copilotkit.ai/
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
* Migration guide: https://docs.copilotkit.ai/migrate/v2
*/
GoogleGenerativeAIAdapter, /**
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
* No 1:1 v2 replacement is available.
* Related v2 docs (Runtime server adapter): https://docs.copilotkit.ai/runtime-server-adapter
* Start with `@copilotkit/runtime/v2`.
* V2 docs: https://docs.copilotkit.ai/
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
* Migration guide: https://docs.copilotkit.ai/migrate/v2
*/
type GraphQLContext, /**
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
* No 1:1 v2 replacement is available.
* Start with `@copilotkit/runtime/v2`.
* V2 docs: https://docs.copilotkit.ai/
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
* Migration guide: https://docs.copilotkit.ai/migrate/v2
*/
GraphQLRequestContext, /**
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
* No 1:1 v2 replacement is available.
* Related v2 docs (Runtime server adapter): https://docs.copilotkit.ai/runtime-server-adapter
* Start with `@copilotkit/runtime/v2`.
* V2 docs: https://docs.copilotkit.ai/
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
* Migration guide: https://docs.copilotkit.ai/migrate/v2
*/
GroqAdapter, /**
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
* No 1:1 v2 replacement is available.
* Related v2 docs (Runtime server adapter): https://docs.copilotkit.ai/runtime-server-adapter
* Start with `@copilotkit/runtime/v2`.
* V2 docs: https://docs.copilotkit.ai/
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
* Migration guide: https://docs.copilotkit.ai/migrate/v2
*/
type GroqAdapterParams, /**
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
* No 1:1 v2 replacement is available.
* Start with `@copilotkit/runtime/v2`.
* V2 docs: https://docs.copilotkit.ai/
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
* Migration guide: https://docs.copilotkit.ai/migrate/v2
*/
GuardrailsValidationFailureResponse, /**
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
* No 1:1 v2 replacement is available.
* Related v2 docs (Runtime server adapter): https://docs.copilotkit.ai/runtime-server-adapter
* Start with `@copilotkit/runtime/v2`.
* V2 docs: https://docs.copilotkit.ai/
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
* Migration guide: https://docs.copilotkit.ai/migrate/v2
*/
LangChainAdapter, /**
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
* No 1:1 v2 replacement is available.
* Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
* Start with `@copilotkit/runtime/v2`.
* V2 docs: https://docs.copilotkit.ai/
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
* Migration guide: https://docs.copilotkit.ai/migrate/v2
*/
LangGraphAgent, /**
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
* No 1:1 v2 replacement is available.
* Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
* Start with `@copilotkit/runtime/v2`.
* V2 docs: https://docs.copilotkit.ai/
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
* Migration guide: https://docs.copilotkit.ai/migrate/v2
*/
LangGraphHttpAgent, /**
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
* No 1:1 v2 replacement is available.
* Start with `@copilotkit/runtime/v2`.
* V2 docs: https://docs.copilotkit.ai/
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
* Migration guide: https://docs.copilotkit.ai/migrate/v2
*/
type LogLevel, /**
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
* Use `MCPClient` from `@copilotkit/runtime/v2` instead.
* Import and usage example:
* ```ts
* import type { MCPClient } from "@copilotkit/runtime/v2";
* type V2MCPClient = MCPClient;
* ```
* See https://docs.copilotkit.ai/runtime-server-adapter
* Migration guide: https://docs.copilotkit.ai/migrate/v2
*/
type MCPClient, /**
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
* No 1:1 v2 replacement is available.
* Related v2 docs (Model Context Protocol): https://docs.copilotkit.ai/agentic-protocols/mcp
* Start with `@copilotkit/runtime/v2`.
* V2 docs: https://docs.copilotkit.ai/
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
* Migration guide: https://docs.copilotkit.ai/migrate/v2
*/
type MCPEndpointConfig, /**
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
* No 1:1 v2 replacement is available.
* Related v2 docs (Model Context Protocol): https://docs.copilotkit.ai/agentic-protocols/mcp
* Start with `@copilotkit/runtime/v2`.
* V2 docs: https://docs.copilotkit.ai/
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
* Migration guide: https://docs.copilotkit.ai/migrate/v2
*/
type MCPTool, /**
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
* No 1:1 v2 replacement is available.
* Start with `@copilotkit/runtime/v2`.
* V2 docs: https://docs.copilotkit.ai/
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
* Migration guide: https://docs.copilotkit.ai/migrate/v2
*/
MessageStreamInterruptedResponse, /**
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
* No 1:1 v2 replacement is available.
* Related v2 docs (Runtime server adapter): https://docs.copilotkit.ai/runtime-server-adapter
* Start with `@copilotkit/runtime/v2`.
* V2 docs: https://docs.copilotkit.ai/
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
* Migration guide: https://docs.copilotkit.ai/migrate/v2
*/
OpenAIAdapter, /**
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
* No 1:1 v2 replacement is available.
* Related v2 docs (Runtime server adapter): https://docs.copilotkit.ai/runtime-server-adapter
* Start with `@copilotkit/runtime/v2`.
* V2 docs: https://docs.copilotkit.ai/
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
* Migration guide: https://docs.copilotkit.ai/migrate/v2
*/
type OpenAIAdapterParams, /**
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
* No 1:1 v2 replacement is available.
* Related v2 docs (Runtime server adapter): https://docs.copilotkit.ai/runtime-server-adapter
* Start with `@copilotkit/runtime/v2`.
* V2 docs: https://docs.copilotkit.ai/
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
* Migration guide: https://docs.copilotkit.ai/migrate/v2
*/
OpenAIAssistantAdapter, /**
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
* No 1:1 v2 replacement is available.
* Related v2 docs (Runtime server adapter): https://docs.copilotkit.ai/runtime-server-adapter
* Start with `@copilotkit/runtime/v2`.
* V2 docs: https://docs.copilotkit.ai/
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
* Migration guide: https://docs.copilotkit.ai/migrate/v2
*/
type OpenAIAssistantAdapterParams, /**
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
* No 1:1 v2 replacement is available.
* Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
* Start with `@copilotkit/runtime/v2`.
* V2 docs: https://docs.copilotkit.ai/
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
* Migration guide: https://docs.copilotkit.ai/migrate/v2
*/
type PredictStateTool, /**
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
* No 1:1 v2 replacement is available.
* Related v2 docs (Runtime server adapter): https://docs.copilotkit.ai/runtime-server-adapter
* Start with `@copilotkit/runtime/v2`.
* V2 docs: https://docs.copilotkit.ai/
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
* Migration guide: https://docs.copilotkit.ai/migrate/v2
*/
RemoteChain, /**
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
* No 1:1 v2 replacement is available.
* Related v2 docs (Runtime server adapter): https://docs.copilotkit.ai/runtime-server-adapter
* Start with `@copilotkit/runtime/v2`.
* V2 docs: https://docs.copilotkit.ai/
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
* Migration guide: https://docs.copilotkit.ai/migrate/v2
*/
type RemoteChainParameters, /**
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
* No 1:1 v2 replacement is available.
* Start with `@copilotkit/runtime/v2`.
* V2 docs: https://docs.copilotkit.ai/
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
* Migration guide: https://docs.copilotkit.ai/migrate/v2
*/
SdkClientLike, /**
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
* No 1:1 v2 replacement is available.
* Start with `@copilotkit/runtime/v2`.
* V2 docs: https://docs.copilotkit.ai/
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
* Migration guide: https://docs.copilotkit.ai/migrate/v2
*/
TelemetryAgentRunner, /**
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
* No 1:1 v2 replacement is available.
* Start with `@copilotkit/runtime/v2`.
* V2 docs: https://docs.copilotkit.ai/
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
* Migration guide: https://docs.copilotkit.ai/migrate/v2
*/
type TelemetryAgentRunnerConfig, /**
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
* No 1:1 v2 replacement is available.
* Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
* Start with `@copilotkit/runtime/v2`.
* V2 docs: https://docs.copilotkit.ai/
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
* Migration guide: https://docs.copilotkit.ai/migrate/v2
*/
type TextMessageEvents, /**
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
* No 1:1 v2 replacement is available.
* Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
* Start with `@copilotkit/runtime/v2`.
* V2 docs: https://docs.copilotkit.ai/
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
* Migration guide: https://docs.copilotkit.ai/migrate/v2
*/
type ToolCallEvents, /**
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
* No 1:1 v2 replacement is available.
* Related v2 docs (Runtime server adapter): https://docs.copilotkit.ai/runtime-server-adapter
* Start with `@copilotkit/runtime/v2`.
* V2 docs: https://docs.copilotkit.ai/
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
* Migration guide: https://docs.copilotkit.ai/migrate/v2
*/
UnifyAdapter, /**
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
* No 1:1 v2 replacement is available.
* Related v2 docs (Runtime server adapter): https://docs.copilotkit.ai/runtime-server-adapter
* Start with `@copilotkit/runtime/v2`.
* V2 docs: https://docs.copilotkit.ai/
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
* Migration guide: https://docs.copilotkit.ai/migrate/v2
*/
type UnifyAdapterParams, /**
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
* No 1:1 v2 replacement is available.
* Start with `@copilotkit/runtime/v2`.
* V2 docs: https://docs.copilotkit.ai/
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
* Migration guide: https://docs.copilotkit.ai/migrate/v2
*/
UnknownErrorResponse, /**
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
* No 1:1 v2 replacement is available.
* Related v2 docs (Runtime server adapter): https://docs.copilotkit.ai/runtime-server-adapter
* Start with `@copilotkit/runtime/v2`.
* V2 docs: https://docs.copilotkit.ai/
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
* Migration guide: https://docs.copilotkit.ai/migrate/v2
*/
buildSchema, /**
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
* No 1:1 v2 replacement is available.
* Related v2 docs (Runtime server adapter): https://docs.copilotkit.ai/runtime-server-adapter
* Start with `@copilotkit/runtime/v2`.
* V2 docs: https://docs.copilotkit.ai/
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
* Migration guide: https://docs.copilotkit.ai/migrate/v2
*/
config, /**
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
* No 1:1 v2 replacement is available.
* Related v2 docs (Model Context Protocol): https://docs.copilotkit.ai/agentic-protocols/mcp
* Start with `@copilotkit/runtime/v2`.
* V2 docs: https://docs.copilotkit.ai/
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
* Migration guide: https://docs.copilotkit.ai/migrate/v2
*/
convertMCPToolsToActions, /**
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
* No 1:1 v2 replacement is available.
* Related v2 docs (Runtime server adapter): https://docs.copilotkit.ai/runtime-server-adapter
* Start with `@copilotkit/runtime/v2`.
* V2 docs: https://docs.copilotkit.ai/
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
* Migration guide: https://docs.copilotkit.ai/migrate/v2
*/
convertServiceAdapterError, /**
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
* No 1:1 v2 replacement is available.
* Related v2 docs (Runtime server adapter): https://docs.copilotkit.ai/runtime-server-adapter
* Start with `@copilotkit/runtime/v2`.
* V2 docs: https://docs.copilotkit.ai/
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
* Migration guide: https://docs.copilotkit.ai/migrate/v2
*/
copilotKitEndpoint, /**
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
* No 1:1 v2 replacement is available.
* Related v2 docs (Runtime server adapter): https://docs.copilotkit.ai/runtime-server-adapter
* Start with `@copilotkit/runtime/v2`.
* V2 docs: https://docs.copilotkit.ai/
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
* Migration guide: https://docs.copilotkit.ai/migrate/v2
*/
copilotRuntimeNestEndpoint, /**
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
* No 1:1 v2 replacement is available.
* Related v2 docs (Runtime server adapter): https://docs.copilotkit.ai/runtime-server-adapter
* Start with `@copilotkit/runtime/v2`.
* V2 docs: https://docs.copilotkit.ai/
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
* Migration guide: https://docs.copilotkit.ai/migrate/v2
*/
copilotRuntimeNextJSAppRouterEndpoint, /**
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
* No 1:1 v2 replacement is available.
* Related v2 docs (Runtime server adapter): https://docs.copilotkit.ai/runtime-server-adapter
* Start with `@copilotkit/runtime/v2`.
* V2 docs: https://docs.copilotkit.ai/
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
* Migration guide: https://docs.copilotkit.ai/migrate/v2
*/
copilotRuntimeNextJSPagesRouterEndpoint, /**
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
* No 1:1 v2 replacement is available.
* Related v2 docs (Runtime server adapter): https://docs.copilotkit.ai/runtime-server-adapter
* Start with `@copilotkit/runtime/v2`.
* V2 docs: https://docs.copilotkit.ai/
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
* Migration guide: https://docs.copilotkit.ai/migrate/v2
*/
copilotRuntimeNodeExpressEndpoint, /**
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
* No 1:1 v2 replacement is available.
* Related v2 docs (Runtime server adapter): https://docs.copilotkit.ai/runtime-server-adapter
* Start with `@copilotkit/runtime/v2`.
* V2 docs: https://docs.copilotkit.ai/
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
* Migration guide: https://docs.copilotkit.ai/migrate/v2
*/
copilotRuntimeNodeHttpEndpoint, /**
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
* No 1:1 v2 replacement is available.
* Start with `@copilotkit/runtime/v2`.
* V2 docs: https://docs.copilotkit.ai/
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
* Migration guide: https://docs.copilotkit.ai/migrate/v2
*/
createLogger, /**
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
* No 1:1 v2 replacement is available.
* Related v2 docs (Model Context Protocol): https://docs.copilotkit.ai/agentic-protocols/mcp
* Start with `@copilotkit/runtime/v2`.
* V2 docs: https://docs.copilotkit.ai/
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
* Migration guide: https://docs.copilotkit.ai/migrate/v2
*/
extractParametersFromSchema, /**
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
* No 1:1 v2 replacement is available.
* Related v2 docs (Model Context Protocol): https://docs.copilotkit.ai/agentic-protocols/mcp
* Start with `@copilotkit/runtime/v2`.
* V2 docs: https://docs.copilotkit.ai/
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
* Migration guide: https://docs.copilotkit.ai/migrate/v2
*/
generateMcpToolInstructions, /**
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
* No 1:1 v2 replacement is available.
* Related v2 docs (Runtime server adapter): https://docs.copilotkit.ai/runtime-server-adapter
* Start with `@copilotkit/runtime/v2`.
* V2 docs: https://docs.copilotkit.ai/
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
* Migration guide: https://docs.copilotkit.ai/migrate/v2
*/
getCommonConfig, /**
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
* No 1:1 v2 replacement is available.
* Related v2 docs (Runtime server adapter): https://docs.copilotkit.ai/runtime-server-adapter
* Start with `@copilotkit/runtime/v2`.
* V2 docs: https://docs.copilotkit.ai/
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
* Migration guide: https://docs.copilotkit.ai/migrate/v2
*/
getSdkClientOptions, /**
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
* No 1:1 v2 replacement is available.
* Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
* Start with `@copilotkit/runtime/v2`.
* V2 docs: https://docs.copilotkit.ai/
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
* Migration guide: https://docs.copilotkit.ai/migrate/v2
*/
langGraphPlatformEndpoint, /**
* @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
* No 1:1 v2 replacement is available.
* Related v2 docs (Runtime server adapter): https://docs.copilotkit.ai/runtime-server-adapter
* Start with `@copilotkit/runtime/v2`.
* V2 docs: https://docs.copilotkit.ai/
* V2 reference docs: https://docs.copilotkit.ai/reference/v2
* Migration guide: https://docs.copilotkit.ai/migrate/v2
*/
resolveEndpointType };