@copilotkit/runtime 1.2.2-feat-runtime-remote-actions.1 → 1.3.0
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/CHANGELOG.md +6 -13
- package/dist/{chunk-BPEPG56J.mjs → chunk-47TPNJX7.mjs} +2 -2
- package/dist/{chunk-Y5TWOZFD.mjs → chunk-4BZ6WXBB.mjs} +3 -3
- package/dist/{chunk-3SKYFYY2.mjs → chunk-IRRAL44O.mjs} +4 -5
- package/dist/chunk-IRRAL44O.mjs.map +1 -0
- package/dist/{chunk-BJ2LVHWA.mjs → chunk-OF6AN6HF.mjs} +521 -256
- package/dist/chunk-OF6AN6HF.mjs.map +1 -0
- package/dist/{chunk-UL2OKN2O.mjs → chunk-VWS65V7Y.mjs} +2 -2
- package/dist/{chunk-U2EKJP47.mjs → chunk-XCGRXAJU.mjs} +2 -2
- package/dist/{copilot-runtime-d427e991.d.ts → copilot-runtime-a1b5f1ce.d.ts} +1 -1
- package/dist/{index-079752b9.d.ts → groq-adapter-069ac812.d.ts} +82 -82
- package/dist/index.d.ts +7 -5
- package/dist/index.js +721 -454
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -6
- package/dist/index.mjs.map +1 -1
- package/dist/{langserve-d6073a3b.d.ts → langserve-15a1286b.d.ts} +1 -1
- package/dist/lib/index.d.ts +4 -4
- package/dist/lib/index.js +445 -446
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/index.mjs +6 -6
- package/dist/lib/integrations/index.d.ts +3 -3
- package/dist/lib/integrations/index.js +3 -4
- package/dist/lib/integrations/index.js.map +1 -1
- package/dist/lib/integrations/index.mjs +4 -4
- package/dist/lib/integrations/nest/index.d.ts +2 -2
- package/dist/lib/integrations/nest/index.js +3 -4
- package/dist/lib/integrations/nest/index.js.map +1 -1
- package/dist/lib/integrations/nest/index.mjs +2 -2
- package/dist/lib/integrations/node-express/index.d.ts +2 -2
- package/dist/lib/integrations/node-express/index.js +3 -4
- package/dist/lib/integrations/node-express/index.js.map +1 -1
- package/dist/lib/integrations/node-express/index.mjs +2 -2
- package/dist/lib/integrations/node-http/index.d.ts +2 -2
- package/dist/lib/integrations/node-http/index.js +3 -4
- package/dist/lib/integrations/node-http/index.js.map +1 -1
- package/dist/lib/integrations/node-http/index.mjs +1 -1
- package/dist/service-adapters/index.d.ts +47 -3
- package/dist/service-adapters/index.js +708 -442
- package/dist/service-adapters/index.js.map +1 -1
- package/dist/service-adapters/index.mjs +3 -1
- package/package.json +6 -7
- package/src/index.ts +1 -0
- package/src/service-adapters/anthropic/anthropic-adapter.ts +197 -0
- package/src/service-adapters/anthropic/utils.ts +144 -0
- package/src/service-adapters/index.ts +9 -7
- package/dist/chunk-3SKYFYY2.mjs.map +0 -1
- package/dist/chunk-BJ2LVHWA.mjs.map +0 -1
- /package/dist/{chunk-BPEPG56J.mjs.map → chunk-47TPNJX7.mjs.map} +0 -0
- /package/dist/{chunk-Y5TWOZFD.mjs.map → chunk-4BZ6WXBB.mjs.map} +0 -0
- /package/dist/{chunk-UL2OKN2O.mjs.map → chunk-VWS65V7Y.mjs.map} +0 -0
- /package/dist/{chunk-U2EKJP47.mjs.map → chunk-XCGRXAJU.mjs.map} +0 -0
package/dist/index.mjs
CHANGED
|
@@ -1,32 +1,34 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CopilotRuntime,
|
|
3
3
|
flattenToolCallsNoDuplicates
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-4BZ6WXBB.mjs";
|
|
5
5
|
import {
|
|
6
|
+
AnthropicAdapter,
|
|
6
7
|
GoogleGenerativeAIAdapter,
|
|
7
8
|
GroqAdapter,
|
|
8
9
|
LangChainAdapter,
|
|
9
10
|
OpenAIAdapter,
|
|
10
11
|
OpenAIAssistantAdapter,
|
|
12
|
+
RemoteChain,
|
|
11
13
|
UnifyAdapter
|
|
12
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-OF6AN6HF.mjs";
|
|
13
15
|
import {
|
|
14
16
|
config,
|
|
15
17
|
copilotRuntimeNextJSAppRouterEndpoint,
|
|
16
18
|
copilotRuntimeNextJSPagesRouterEndpoint
|
|
17
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-XCGRXAJU.mjs";
|
|
18
20
|
import {
|
|
19
21
|
copilotRuntimeNestEndpoint
|
|
20
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-VWS65V7Y.mjs";
|
|
21
23
|
import {
|
|
22
24
|
copilotRuntimeNodeExpressEndpoint
|
|
23
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-47TPNJX7.mjs";
|
|
24
26
|
import {
|
|
25
27
|
buildSchema,
|
|
26
28
|
copilotRuntimeNodeHttpEndpoint,
|
|
27
29
|
createContext,
|
|
28
30
|
getCommonConfig
|
|
29
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-IRRAL44O.mjs";
|
|
30
32
|
import "./chunk-73NMP3DI.mjs";
|
|
31
33
|
import {
|
|
32
34
|
GuardrailsValidationFailureResponse,
|
|
@@ -40,6 +42,7 @@ import "./chunk-44O2JGUY.mjs";
|
|
|
40
42
|
// src/index.ts
|
|
41
43
|
import "reflect-metadata";
|
|
42
44
|
export {
|
|
45
|
+
AnthropicAdapter,
|
|
43
46
|
CopilotRuntime,
|
|
44
47
|
GoogleGenerativeAIAdapter,
|
|
45
48
|
GroqAdapter,
|
|
@@ -48,6 +51,7 @@ export {
|
|
|
48
51
|
MessageStreamInterruptedResponse,
|
|
49
52
|
OpenAIAdapter,
|
|
50
53
|
OpenAIAssistantAdapter,
|
|
54
|
+
RemoteChain,
|
|
51
55
|
UnifyAdapter,
|
|
52
56
|
UnknownErrorResponse,
|
|
53
57
|
buildSchema,
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["import \"reflect-metadata\";\nexport * from \"./lib\";\nexport * from \"./utils\";\n"],"mappings":"
|
|
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":[]}
|
|
@@ -131,4 +131,4 @@ declare class RemoteChain {
|
|
|
131
131
|
inferLangServeParameters(): Promise<void>;
|
|
132
132
|
}
|
|
133
133
|
|
|
134
|
-
export { ActionInput as A, CopilotServiceAdapter as C, ForwardedParametersInput as F, RemoteChainParameters as R,
|
|
134
|
+
export { ActionInput as A, CopilotServiceAdapter as C, ForwardedParametersInput as F, RemoteChainParameters as R, RemoteChain as a, RuntimeEventSource as b, CopilotRuntimeChatCompletionRequest as c, CopilotRuntimeChatCompletionResponse as d };
|
package/dist/lib/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { g as CommonConfig, b as CopilotRequestContextProperties, a as CopilotRuntime, C as CopilotRuntimeConstructorParams, c as CreateCopilotRuntimeServerOptions, G as GraphQLContext, e as buildSchema, d as createContext, f as flattenToolCallsNoDuplicates, h as getCommonConfig } from '../copilot-runtime-
|
|
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 '../
|
|
1
|
+
export { g as CommonConfig, b as CopilotRequestContextProperties, a as CopilotRuntime, C as CopilotRuntimeConstructorParams, c as CreateCopilotRuntimeServerOptions, G as GraphQLContext, e as buildSchema, d as createContext, f as flattenToolCallsNoDuplicates, h as getCommonConfig } from '../copilot-runtime-a1b5f1ce.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-069ac812.js';
|
|
3
3
|
export { CopilotRuntimeServerInstance, config, copilotRuntimeNextJSAppRouterEndpoint, copilotRuntimeNextJSPagesRouterEndpoint } from './integrations/index.js';
|
|
4
4
|
export { copilotRuntimeNodeHttpEndpoint } from './integrations/node-http/index.js';
|
|
5
5
|
export { copilotRuntimeNodeExpressEndpoint } from './integrations/node-express/index.js';
|
|
6
6
|
export { copilotRuntimeNestEndpoint } from './integrations/nest/index.js';
|
|
7
7
|
import '@copilotkit/shared';
|
|
8
|
-
import '../langserve-
|
|
8
|
+
import '../langserve-15a1286b.js';
|
|
9
9
|
import '../index-0476e4f7.js';
|
|
10
10
|
import '../graphql/types/base/index.js';
|
|
11
11
|
import 'rxjs';
|
|
@@ -14,8 +14,8 @@ import 'pino';
|
|
|
14
14
|
import 'graphql-yoga';
|
|
15
15
|
import './cloud/index.js';
|
|
16
16
|
import 'openai';
|
|
17
|
-
import '@google/generative-ai';
|
|
18
17
|
import '@langchain/core/messages';
|
|
19
18
|
import '@langchain/core/tools';
|
|
20
19
|
import '@langchain/core/utils/stream';
|
|
20
|
+
import '@google/generative-ai';
|
|
21
21
|
import 'groq-sdk';
|