@copilotkit/runtime 0.0.0-feat-dynamic-copilotcloud-qa-20250117190454
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +7 -0
- package/CHANGELOG.md +913 -0
- package/README.md +46 -0
- package/__snapshots__/schema/schema.graphql +273 -0
- package/dist/chunk-44O2JGUY.mjs +12 -0
- package/dist/chunk-44O2JGUY.mjs.map +1 -0
- package/dist/chunk-BETLEV37.mjs +25 -0
- package/dist/chunk-BETLEV37.mjs.map +1 -0
- package/dist/chunk-CLGKEUOA.mjs +1408 -0
- package/dist/chunk-CLGKEUOA.mjs.map +1 -0
- package/dist/chunk-D2WLFQS6.mjs +43 -0
- package/dist/chunk-D2WLFQS6.mjs.map +1 -0
- package/dist/chunk-DFOKBSIS.mjs +1 -0
- package/dist/chunk-DFOKBSIS.mjs.map +1 -0
- package/dist/chunk-FA5DJ2TZ.mjs +3437 -0
- package/dist/chunk-FA5DJ2TZ.mjs.map +1 -0
- package/dist/chunk-HNUNXFTW.mjs +129 -0
- package/dist/chunk-HNUNXFTW.mjs.map +1 -0
- package/dist/chunk-SFLMY3ES.mjs +80 -0
- package/dist/chunk-SFLMY3ES.mjs.map +1 -0
- package/dist/chunk-U3V2BCGI.mjs +152 -0
- package/dist/chunk-U3V2BCGI.mjs.map +1 -0
- package/dist/chunk-ZCU6UPCY.mjs +25 -0
- package/dist/chunk-ZCU6UPCY.mjs.map +1 -0
- package/dist/copilot-runtime-1a224a0f.d.ts +196 -0
- package/dist/graphql/types/base/index.d.ts +6 -0
- package/dist/graphql/types/base/index.js +63 -0
- package/dist/graphql/types/base/index.js.map +1 -0
- package/dist/graphql/types/base/index.mjs +8 -0
- package/dist/graphql/types/base/index.mjs.map +1 -0
- package/dist/graphql/types/converted/index.d.ts +2 -0
- package/dist/graphql/types/converted/index.js +187 -0
- package/dist/graphql/types/converted/index.js.map +1 -0
- package/dist/graphql/types/converted/index.mjs +17 -0
- package/dist/graphql/types/converted/index.mjs.map +1 -0
- package/dist/groq-adapter-c35c5374.d.ts +281 -0
- package/dist/index-24315d90.d.ts +103 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.js +5258 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +76 -0
- package/dist/index.mjs.map +1 -0
- package/dist/langserve-a16ef8f4.d.ts +180 -0
- package/dist/lib/cloud/index.d.ts +6 -0
- package/dist/lib/cloud/index.js +18 -0
- package/dist/lib/cloud/index.js.map +1 -0
- package/dist/lib/cloud/index.mjs +1 -0
- package/dist/lib/cloud/index.mjs.map +1 -0
- package/dist/lib/index.d.ts +20 -0
- package/dist/lib/index.js +4906 -0
- package/dist/lib/index.js.map +1 -0
- package/dist/lib/index.mjs +58 -0
- package/dist/lib/index.mjs.map +1 -0
- package/dist/lib/integrations/index.d.ts +33 -0
- package/dist/lib/integrations/index.js +2229 -0
- package/dist/lib/integrations/index.js.map +1 -0
- package/dist/lib/integrations/index.mjs +34 -0
- package/dist/lib/integrations/index.mjs.map +1 -0
- package/dist/lib/integrations/nest/index.d.ts +14 -0
- package/dist/lib/integrations/nest/index.js +2138 -0
- package/dist/lib/integrations/nest/index.js.map +1 -0
- package/dist/lib/integrations/nest/index.mjs +13 -0
- package/dist/lib/integrations/nest/index.mjs.map +1 -0
- package/dist/lib/integrations/node-express/index.d.ts +14 -0
- package/dist/lib/integrations/node-express/index.js +2138 -0
- package/dist/lib/integrations/node-express/index.js.map +1 -0
- package/dist/lib/integrations/node-express/index.mjs +13 -0
- package/dist/lib/integrations/node-express/index.mjs.map +1 -0
- package/dist/lib/integrations/node-http/index.d.ts +14 -0
- package/dist/lib/integrations/node-http/index.js +2124 -0
- package/dist/lib/integrations/node-http/index.js.map +1 -0
- package/dist/lib/integrations/node-http/index.mjs +12 -0
- package/dist/lib/integrations/node-http/index.mjs.map +1 -0
- package/dist/service-adapters/index.d.ts +84 -0
- package/dist/service-adapters/index.js +1448 -0
- package/dist/service-adapters/index.js.map +1 -0
- package/dist/service-adapters/index.mjs +26 -0
- package/dist/service-adapters/index.mjs.map +1 -0
- package/dist/utils/index.d.ts +49 -0
- package/dist/utils/index.js +174 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/index.mjs +12 -0
- package/dist/utils/index.mjs.map +1 -0
- package/jest.config.js +5 -0
- package/package.json +85 -0
- package/scripts/generate-gql-schema.ts +13 -0
- package/src/agents/langgraph/event-source.ts +287 -0
- package/src/agents/langgraph/events.ts +338 -0
- package/src/graphql/inputs/action.input.ts +16 -0
- package/src/graphql/inputs/agent-session.input.ts +13 -0
- package/src/graphql/inputs/agent-state.input.ts +10 -0
- package/src/graphql/inputs/cloud-guardrails.input.ts +16 -0
- package/src/graphql/inputs/cloud.input.ts +8 -0
- package/src/graphql/inputs/context-property.input.ts +10 -0
- package/src/graphql/inputs/custom-property.input.ts +15 -0
- package/src/graphql/inputs/forwarded-parameters.input.ts +22 -0
- package/src/graphql/inputs/frontend.input.ts +14 -0
- package/src/graphql/inputs/generate-copilot-response.input.ts +47 -0
- package/src/graphql/inputs/message.input.ts +92 -0
- package/src/graphql/resolvers/copilot.resolver.ts +556 -0
- package/src/graphql/types/agents-response.type.ts +22 -0
- package/src/graphql/types/base/index.ts +10 -0
- package/src/graphql/types/converted/index.ts +136 -0
- package/src/graphql/types/copilot-response.type.ts +113 -0
- package/src/graphql/types/enums.ts +37 -0
- package/src/graphql/types/guardrails-result.type.ts +20 -0
- package/src/graphql/types/message-status.type.ts +40 -0
- package/src/graphql/types/response-status.type.ts +66 -0
- package/src/index.ts +4 -0
- package/src/lib/cloud/index.ts +4 -0
- package/src/lib/index.ts +8 -0
- package/src/lib/integrations/index.ts +6 -0
- package/src/lib/integrations/nest/index.ts +17 -0
- package/src/lib/integrations/nextjs/app-router.ts +40 -0
- package/src/lib/integrations/nextjs/pages-router.ts +49 -0
- package/src/lib/integrations/node-express/index.ts +17 -0
- package/src/lib/integrations/node-http/index.ts +34 -0
- package/src/lib/integrations/shared.ts +109 -0
- package/src/lib/logger.ts +28 -0
- package/src/lib/runtime/copilot-runtime.ts +466 -0
- package/src/lib/runtime/remote-action-constructors.ts +304 -0
- package/src/lib/runtime/remote-actions.ts +174 -0
- package/src/lib/runtime/remote-lg-action.ts +657 -0
- package/src/lib/telemetry-client.ts +52 -0
- package/src/service-adapters/anthropic/anthropic-adapter.ts +205 -0
- package/src/service-adapters/anthropic/utils.ts +144 -0
- package/src/service-adapters/conversion.ts +64 -0
- package/src/service-adapters/events.ts +419 -0
- package/src/service-adapters/experimental/empty/empty-adapter.ts +33 -0
- package/src/service-adapters/experimental/ollama/ollama-adapter.ts +79 -0
- package/src/service-adapters/google/google-genai-adapter.ts +39 -0
- package/src/service-adapters/groq/groq-adapter.ts +173 -0
- package/src/service-adapters/index.ts +16 -0
- package/src/service-adapters/langchain/langchain-adapter.ts +99 -0
- package/src/service-adapters/langchain/langserve.ts +87 -0
- package/src/service-adapters/langchain/types.ts +14 -0
- package/src/service-adapters/langchain/utils.ts +306 -0
- package/src/service-adapters/openai/openai-adapter.ts +210 -0
- package/src/service-adapters/openai/openai-assistant-adapter.ts +304 -0
- package/src/service-adapters/openai/utils.ts +161 -0
- package/src/service-adapters/service-adapter.ts +30 -0
- package/src/service-adapters/unify/unify-adapter.ts +145 -0
- package/src/utils/failed-response-status-reasons.ts +48 -0
- package/src/utils/index.ts +1 -0
- package/tsconfig.json +11 -0
- package/tsup.config.ts +16 -0
- package/typedoc.json +4 -0
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import "./chunk-DFOKBSIS.mjs";
|
|
2
|
+
import {
|
|
3
|
+
config,
|
|
4
|
+
copilotRuntimeNextJSAppRouterEndpoint,
|
|
5
|
+
copilotRuntimeNextJSPagesRouterEndpoint
|
|
6
|
+
} from "./chunk-SFLMY3ES.mjs";
|
|
7
|
+
import {
|
|
8
|
+
copilotRuntimeNestEndpoint
|
|
9
|
+
} from "./chunk-BETLEV37.mjs";
|
|
10
|
+
import {
|
|
11
|
+
copilotRuntimeNodeExpressEndpoint
|
|
12
|
+
} from "./chunk-ZCU6UPCY.mjs";
|
|
13
|
+
import {
|
|
14
|
+
CopilotRuntime,
|
|
15
|
+
buildSchema,
|
|
16
|
+
copilotKitEndpoint,
|
|
17
|
+
copilotRuntimeNodeHttpEndpoint,
|
|
18
|
+
createContext,
|
|
19
|
+
flattenToolCallsNoDuplicates,
|
|
20
|
+
getCommonConfig,
|
|
21
|
+
langGraphPlatformEndpoint,
|
|
22
|
+
resolveEndpointType
|
|
23
|
+
} from "./chunk-FA5DJ2TZ.mjs";
|
|
24
|
+
import {
|
|
25
|
+
AnthropicAdapter,
|
|
26
|
+
ExperimentalEmptyAdapter,
|
|
27
|
+
ExperimentalOllamaAdapter,
|
|
28
|
+
GoogleGenerativeAIAdapter,
|
|
29
|
+
GroqAdapter,
|
|
30
|
+
LangChainAdapter,
|
|
31
|
+
OpenAIAdapter,
|
|
32
|
+
OpenAIAssistantAdapter,
|
|
33
|
+
RemoteChain,
|
|
34
|
+
UnifyAdapter
|
|
35
|
+
} from "./chunk-CLGKEUOA.mjs";
|
|
36
|
+
import {
|
|
37
|
+
GuardrailsValidationFailureResponse,
|
|
38
|
+
MessageStreamInterruptedResponse,
|
|
39
|
+
UnknownErrorResponse
|
|
40
|
+
} from "./chunk-U3V2BCGI.mjs";
|
|
41
|
+
import "./chunk-HNUNXFTW.mjs";
|
|
42
|
+
import "./chunk-D2WLFQS6.mjs";
|
|
43
|
+
import "./chunk-44O2JGUY.mjs";
|
|
44
|
+
|
|
45
|
+
// src/index.ts
|
|
46
|
+
import "reflect-metadata";
|
|
47
|
+
export {
|
|
48
|
+
AnthropicAdapter,
|
|
49
|
+
CopilotRuntime,
|
|
50
|
+
ExperimentalEmptyAdapter,
|
|
51
|
+
ExperimentalOllamaAdapter,
|
|
52
|
+
GoogleGenerativeAIAdapter,
|
|
53
|
+
GroqAdapter,
|
|
54
|
+
GuardrailsValidationFailureResponse,
|
|
55
|
+
LangChainAdapter,
|
|
56
|
+
MessageStreamInterruptedResponse,
|
|
57
|
+
OpenAIAdapter,
|
|
58
|
+
OpenAIAssistantAdapter,
|
|
59
|
+
RemoteChain,
|
|
60
|
+
UnifyAdapter,
|
|
61
|
+
UnknownErrorResponse,
|
|
62
|
+
buildSchema,
|
|
63
|
+
config,
|
|
64
|
+
copilotKitEndpoint,
|
|
65
|
+
copilotRuntimeNestEndpoint,
|
|
66
|
+
copilotRuntimeNextJSAppRouterEndpoint,
|
|
67
|
+
copilotRuntimeNextJSPagesRouterEndpoint,
|
|
68
|
+
copilotRuntimeNodeExpressEndpoint,
|
|
69
|
+
copilotRuntimeNodeHttpEndpoint,
|
|
70
|
+
createContext,
|
|
71
|
+
flattenToolCallsNoDuplicates,
|
|
72
|
+
getCommonConfig,
|
|
73
|
+
langGraphPlatformEndpoint,
|
|
74
|
+
resolveEndpointType
|
|
75
|
+
};
|
|
76
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["import \"reflect-metadata\";\nexport * from \"./lib\";\nexport * from \"./utils\";\nexport * from \"./service-adapters\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO;","names":[]}
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import { A as ActionInputAvailability, M as Message } from './index-24315d90.js';
|
|
2
|
+
import * as rxjs from 'rxjs';
|
|
3
|
+
import { Subject, ReplaySubject } from 'rxjs';
|
|
4
|
+
import { Action, Parameter } from '@copilotkit/shared';
|
|
5
|
+
|
|
6
|
+
declare enum GuardrailsResultStatus {
|
|
7
|
+
ALLOWED = "allowed",
|
|
8
|
+
DENIED = "denied"
|
|
9
|
+
}
|
|
10
|
+
declare class GuardrailsResult {
|
|
11
|
+
status: GuardrailsResultStatus;
|
|
12
|
+
reason?: string;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
declare class ActionInput {
|
|
16
|
+
name: string;
|
|
17
|
+
description: string;
|
|
18
|
+
jsonSchema: string;
|
|
19
|
+
available?: ActionInputAvailability;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
declare enum RuntimeEventTypes {
|
|
23
|
+
TextMessageStart = "TextMessageStart",
|
|
24
|
+
TextMessageContent = "TextMessageContent",
|
|
25
|
+
TextMessageEnd = "TextMessageEnd",
|
|
26
|
+
ActionExecutionStart = "ActionExecutionStart",
|
|
27
|
+
ActionExecutionArgs = "ActionExecutionArgs",
|
|
28
|
+
ActionExecutionEnd = "ActionExecutionEnd",
|
|
29
|
+
ActionExecutionResult = "ActionExecutionResult",
|
|
30
|
+
AgentStateMessage = "AgentStateMessage"
|
|
31
|
+
}
|
|
32
|
+
type RuntimeEvent = {
|
|
33
|
+
type: RuntimeEventTypes.TextMessageStart;
|
|
34
|
+
messageId: string;
|
|
35
|
+
parentMessageId?: string;
|
|
36
|
+
} | {
|
|
37
|
+
type: RuntimeEventTypes.TextMessageContent;
|
|
38
|
+
messageId: string;
|
|
39
|
+
content: string;
|
|
40
|
+
} | {
|
|
41
|
+
type: RuntimeEventTypes.TextMessageEnd;
|
|
42
|
+
messageId: string;
|
|
43
|
+
} | {
|
|
44
|
+
type: RuntimeEventTypes.ActionExecutionStart;
|
|
45
|
+
actionExecutionId: string;
|
|
46
|
+
actionName: string;
|
|
47
|
+
parentMessageId?: string;
|
|
48
|
+
} | {
|
|
49
|
+
type: RuntimeEventTypes.ActionExecutionArgs;
|
|
50
|
+
actionExecutionId: string;
|
|
51
|
+
args: string;
|
|
52
|
+
} | {
|
|
53
|
+
type: RuntimeEventTypes.ActionExecutionEnd;
|
|
54
|
+
actionExecutionId: string;
|
|
55
|
+
} | {
|
|
56
|
+
type: RuntimeEventTypes.ActionExecutionResult;
|
|
57
|
+
actionName: string;
|
|
58
|
+
actionExecutionId: string;
|
|
59
|
+
result: string;
|
|
60
|
+
} | {
|
|
61
|
+
type: RuntimeEventTypes.AgentStateMessage;
|
|
62
|
+
threadId: string;
|
|
63
|
+
agentName: string;
|
|
64
|
+
nodeName: string;
|
|
65
|
+
runId: string;
|
|
66
|
+
active: boolean;
|
|
67
|
+
role: string;
|
|
68
|
+
state: string;
|
|
69
|
+
running: boolean;
|
|
70
|
+
};
|
|
71
|
+
type EventSourceCallback = (eventStream$: RuntimeEventSubject) => Promise<void>;
|
|
72
|
+
declare class RuntimeEventSubject extends ReplaySubject<RuntimeEvent> {
|
|
73
|
+
constructor();
|
|
74
|
+
sendTextMessageStart({ messageId, parentMessageId, }: {
|
|
75
|
+
messageId: string;
|
|
76
|
+
parentMessageId?: string;
|
|
77
|
+
}): void;
|
|
78
|
+
sendTextMessageContent({ messageId, content }: {
|
|
79
|
+
messageId: string;
|
|
80
|
+
content: string;
|
|
81
|
+
}): void;
|
|
82
|
+
sendTextMessageEnd({ messageId }: {
|
|
83
|
+
messageId: string;
|
|
84
|
+
}): void;
|
|
85
|
+
sendTextMessage(messageId: string, content: string): void;
|
|
86
|
+
sendActionExecutionStart({ actionExecutionId, actionName, parentMessageId, }: {
|
|
87
|
+
actionExecutionId: string;
|
|
88
|
+
actionName: string;
|
|
89
|
+
parentMessageId?: string;
|
|
90
|
+
}): void;
|
|
91
|
+
sendActionExecutionArgs({ actionExecutionId, args, }: {
|
|
92
|
+
actionExecutionId: string;
|
|
93
|
+
args: string;
|
|
94
|
+
}): void;
|
|
95
|
+
sendActionExecutionEnd({ actionExecutionId }: {
|
|
96
|
+
actionExecutionId: string;
|
|
97
|
+
}): void;
|
|
98
|
+
sendActionExecution({ actionExecutionId, actionName, args, parentMessageId, }: {
|
|
99
|
+
actionExecutionId: string;
|
|
100
|
+
actionName: string;
|
|
101
|
+
args: string;
|
|
102
|
+
parentMessageId?: string;
|
|
103
|
+
}): void;
|
|
104
|
+
sendActionExecutionResult({ actionExecutionId, actionName, result, error, }: {
|
|
105
|
+
actionExecutionId: string;
|
|
106
|
+
actionName: string;
|
|
107
|
+
result?: string;
|
|
108
|
+
error?: {
|
|
109
|
+
code: string;
|
|
110
|
+
message: string;
|
|
111
|
+
};
|
|
112
|
+
}): void;
|
|
113
|
+
sendAgentStateMessage({ threadId, agentName, nodeName, runId, active, role, state, running, }: {
|
|
114
|
+
threadId: string;
|
|
115
|
+
agentName: string;
|
|
116
|
+
nodeName: string;
|
|
117
|
+
runId: string;
|
|
118
|
+
active: boolean;
|
|
119
|
+
role: string;
|
|
120
|
+
state: string;
|
|
121
|
+
running: boolean;
|
|
122
|
+
}): void;
|
|
123
|
+
}
|
|
124
|
+
declare class RuntimeEventSource {
|
|
125
|
+
private eventStream$;
|
|
126
|
+
private callback;
|
|
127
|
+
stream(callback: EventSourceCallback): Promise<void>;
|
|
128
|
+
sendErrorMessageToChat(message?: string): void;
|
|
129
|
+
processRuntimeEvents({ serverSideActions, guardrailsResult$, actionInputsWithoutAgents, }: {
|
|
130
|
+
serverSideActions: Action<any>[];
|
|
131
|
+
guardrailsResult$?: Subject<GuardrailsResult>;
|
|
132
|
+
actionInputsWithoutAgents: ActionInput[];
|
|
133
|
+
}): rxjs.Observable<RuntimeEvent>;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
declare class ForwardedParametersInput {
|
|
137
|
+
model?: string;
|
|
138
|
+
maxTokens?: number;
|
|
139
|
+
stop?: string[];
|
|
140
|
+
toolChoice?: String;
|
|
141
|
+
toolChoiceFunctionName?: string;
|
|
142
|
+
temperature?: number;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
interface CopilotRuntimeChatCompletionRequest {
|
|
146
|
+
eventSource: RuntimeEventSource;
|
|
147
|
+
messages: Message[];
|
|
148
|
+
actions: ActionInput[];
|
|
149
|
+
model?: string;
|
|
150
|
+
threadId?: string;
|
|
151
|
+
runId?: string;
|
|
152
|
+
forwardedParameters?: ForwardedParametersInput;
|
|
153
|
+
}
|
|
154
|
+
interface CopilotRuntimeChatCompletionResponse {
|
|
155
|
+
threadId: string;
|
|
156
|
+
runId?: string;
|
|
157
|
+
}
|
|
158
|
+
interface CopilotServiceAdapter {
|
|
159
|
+
process(request: CopilotRuntimeChatCompletionRequest): Promise<CopilotRuntimeChatCompletionResponse>;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
interface RemoteChainParameters {
|
|
163
|
+
name: string;
|
|
164
|
+
description: string;
|
|
165
|
+
chainUrl: string;
|
|
166
|
+
parameters?: Parameter[];
|
|
167
|
+
parameterType?: "single" | "multi";
|
|
168
|
+
}
|
|
169
|
+
declare class RemoteChain {
|
|
170
|
+
name: string;
|
|
171
|
+
description: string;
|
|
172
|
+
chainUrl: string;
|
|
173
|
+
parameters?: Parameter[];
|
|
174
|
+
parameterType: "single" | "multi";
|
|
175
|
+
constructor(options: RemoteChainParameters);
|
|
176
|
+
toAction(): Promise<Action<any>>;
|
|
177
|
+
inferLangServeParameters(): Promise<void>;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export { ActionInput as A, CopilotRuntimeChatCompletionRequest as C, ForwardedParametersInput as F, RemoteChainParameters as R, CopilotRuntimeChatCompletionResponse as a, CopilotServiceAdapter as b, RemoteChain as c, RuntimeEventSource as d };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
|
6
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
for (let key of __getOwnPropNames(from))
|
|
8
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
}
|
|
11
|
+
return to;
|
|
12
|
+
};
|
|
13
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
14
|
+
|
|
15
|
+
// src/lib/cloud/index.ts
|
|
16
|
+
var cloud_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(cloud_exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/lib/cloud/index.ts"],"sourcesContent":["export interface CopilotCloudOptions {\n baseUrl?: string;\n publicApiKey?: string;\n}\n"],"mappings":";;;;;;;;;;;;;;;AAAA;;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export { h as CommonConfig, b as CopilotRequestContextProperties, a as CopilotRuntime, C as CopilotRuntimeConstructorParams, d as CreateCopilotRuntimeServerOptions, G as GraphQLContext, g as buildSchema, c as copilotKitEndpoint, e as createContext, f as flattenToolCallsNoDuplicates, i as getCommonConfig, l as langGraphPlatformEndpoint, r as resolveEndpointType } from '../copilot-runtime-1a224a0f.js';
|
|
2
|
+
export { G as GoogleGenerativeAIAdapter, f as GroqAdapter, e as GroqAdapterParams, L as LangChainAdapter, a as OpenAIAdapter, O as OpenAIAdapterParams, c as OpenAIAssistantAdapter, b as OpenAIAssistantAdapterParams, d as UnifyAdapter, U as UnifyAdapterParams } from '../groq-adapter-c35c5374.js';
|
|
3
|
+
export { CopilotRuntimeServerInstance, config, copilotRuntimeNextJSAppRouterEndpoint, copilotRuntimeNextJSPagesRouterEndpoint } from './integrations/index.js';
|
|
4
|
+
export { copilotRuntimeNodeHttpEndpoint } from './integrations/node-http/index.js';
|
|
5
|
+
export { copilotRuntimeNodeExpressEndpoint } from './integrations/node-express/index.js';
|
|
6
|
+
export { copilotRuntimeNestEndpoint } from './integrations/nest/index.js';
|
|
7
|
+
import '@copilotkit/shared';
|
|
8
|
+
import '../langserve-a16ef8f4.js';
|
|
9
|
+
import '../index-24315d90.js';
|
|
10
|
+
import '../graphql/types/base/index.js';
|
|
11
|
+
import 'rxjs';
|
|
12
|
+
import 'graphql';
|
|
13
|
+
import 'pino';
|
|
14
|
+
import 'graphql-yoga';
|
|
15
|
+
import './cloud/index.js';
|
|
16
|
+
import 'openai';
|
|
17
|
+
import '@langchain/core/messages';
|
|
18
|
+
import '@langchain/core/tools';
|
|
19
|
+
import '@langchain/core/utils/stream';
|
|
20
|
+
import 'groq-sdk';
|