@copilotkit/runtime 1.50.0-beta.9 → 1.50.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 +157 -0
- package/dist/chunk-27JKTS6P.mjs +1704 -0
- package/dist/chunk-27JKTS6P.mjs.map +1 -0
- package/dist/{chunk-FMU55SEU.mjs → chunk-2GPTVDTO.mjs} +2 -2
- package/dist/chunk-3AJVKDZX.mjs +3097 -0
- package/dist/chunk-3AJVKDZX.mjs.map +1 -0
- package/dist/{chunk-BJEYMRDD.mjs → chunk-45RCC3ZS.mjs} +2 -2
- package/dist/chunk-4EHJ4XFJ.mjs +25 -0
- package/dist/chunk-4EHJ4XFJ.mjs.map +1 -0
- package/dist/chunk-4IANB4TC.mjs +25 -0
- package/dist/chunk-4IANB4TC.mjs.map +1 -0
- package/dist/{chunk-Z752VE75.mjs → chunk-4KES76K3.mjs} +2 -2
- package/dist/chunk-4OGE3SLW.mjs +3100 -0
- package/dist/chunk-4OGE3SLW.mjs.map +1 -0
- package/dist/chunk-54YJBMCP.mjs +3097 -0
- package/dist/chunk-54YJBMCP.mjs.map +1 -0
- package/dist/chunk-6ER4SZYH.mjs +74 -0
- package/dist/chunk-6ER4SZYH.mjs.map +1 -0
- package/dist/chunk-6TNSLHVR.mjs +74 -0
- package/dist/chunk-6TNSLHVR.mjs.map +1 -0
- package/dist/chunk-7V4BK7TZ.mjs +25 -0
- package/dist/chunk-7V4BK7TZ.mjs.map +1 -0
- package/dist/chunk-7YZIEXD2.mjs +74 -0
- package/dist/chunk-7YZIEXD2.mjs.map +1 -0
- package/dist/chunk-A4XHOAFU.mjs +25 -0
- package/dist/chunk-A4XHOAFU.mjs.map +1 -0
- package/dist/chunk-A555KEAD.mjs +6020 -0
- package/dist/chunk-A555KEAD.mjs.map +1 -0
- package/dist/chunk-AF73TFTX.mjs +74 -0
- package/dist/chunk-AF73TFTX.mjs.map +1 -0
- package/dist/chunk-AQG2SVCA.mjs +25 -0
- package/dist/chunk-AQG2SVCA.mjs.map +1 -0
- package/dist/chunk-BJZHMXND.mjs +74 -0
- package/dist/chunk-BJZHMXND.mjs.map +1 -0
- package/dist/chunk-CB2OJXF6.mjs +25 -0
- package/dist/chunk-CB2OJXF6.mjs.map +1 -0
- package/dist/chunk-CEOMFPJU.mjs +6020 -0
- package/dist/chunk-CEOMFPJU.mjs.map +1 -0
- package/dist/chunk-CZVLR7CC.mjs +175 -0
- package/dist/chunk-CZVLR7CC.mjs.map +1 -0
- package/dist/{chunk-SBCOROE4.mjs → chunk-DCEEHMLJ.mjs} +16 -1
- package/dist/chunk-DCEEHMLJ.mjs.map +1 -0
- package/dist/chunk-DE3CLKUG.mjs +25 -0
- package/dist/chunk-DE3CLKUG.mjs.map +1 -0
- package/dist/chunk-DTPRUTNV.mjs +25 -0
- package/dist/chunk-DTPRUTNV.mjs.map +1 -0
- package/dist/{chunk-TTUAEJLD.mjs → chunk-ERUOA47O.mjs} +11 -2
- package/dist/chunk-ERUOA47O.mjs.map +1 -0
- package/dist/chunk-ESSRC64W.mjs +74 -0
- package/dist/chunk-ESSRC64W.mjs.map +1 -0
- package/dist/chunk-GRAN6K6N.mjs +25 -0
- package/dist/chunk-GRAN6K6N.mjs.map +1 -0
- package/dist/chunk-I27F2UPA.mjs +175 -0
- package/dist/chunk-I27F2UPA.mjs.map +1 -0
- package/dist/chunk-IAZKTOQW.mjs +25 -0
- package/dist/chunk-IAZKTOQW.mjs.map +1 -0
- package/dist/chunk-J6XZ5MFB.mjs +25 -0
- package/dist/chunk-J6XZ5MFB.mjs.map +1 -0
- package/dist/chunk-JJ32MA4C.mjs +73 -0
- package/dist/chunk-JJ32MA4C.mjs.map +1 -0
- package/dist/chunk-JJY4ZTHQ.mjs +25 -0
- package/dist/chunk-JJY4ZTHQ.mjs.map +1 -0
- package/dist/chunk-KEYLBFU2.mjs +3117 -0
- package/dist/chunk-KEYLBFU2.mjs.map +1 -0
- package/dist/chunk-KQ53L4WZ.mjs +3094 -0
- package/dist/chunk-KQ53L4WZ.mjs.map +1 -0
- package/dist/chunk-KTELVQ67.mjs +3098 -0
- package/dist/chunk-KTELVQ67.mjs.map +1 -0
- package/dist/chunk-LPEPX6NH.mjs +25 -0
- package/dist/chunk-LPEPX6NH.mjs.map +1 -0
- package/dist/chunk-MDXE55DK.mjs +3117 -0
- package/dist/chunk-MDXE55DK.mjs.map +1 -0
- package/dist/chunk-MMFUVOXH.mjs +73 -0
- package/dist/chunk-MMFUVOXH.mjs.map +1 -0
- package/dist/chunk-N3Y4U66N.mjs +253 -0
- package/dist/chunk-N3Y4U66N.mjs.map +1 -0
- package/dist/chunk-O7UYB4MH.mjs +25 -0
- package/dist/chunk-O7UYB4MH.mjs.map +1 -0
- package/dist/chunk-OFNVQHNM.mjs +3089 -0
- package/dist/chunk-OFNVQHNM.mjs.map +1 -0
- package/dist/{chunk-DZV4ZIAR.mjs → chunk-OFSV5GET.mjs} +17 -6
- package/dist/chunk-OFSV5GET.mjs.map +1 -0
- package/dist/chunk-OMRST67R.mjs +25 -0
- package/dist/chunk-OMRST67R.mjs.map +1 -0
- package/dist/chunk-PRZHE74A.mjs +25 -0
- package/dist/chunk-PRZHE74A.mjs.map +1 -0
- package/dist/chunk-PTYRVXXP.mjs +80 -0
- package/dist/chunk-PTYRVXXP.mjs.map +1 -0
- package/dist/chunk-R22B5CCO.mjs +25 -0
- package/dist/chunk-R22B5CCO.mjs.map +1 -0
- package/dist/chunk-SHBDMA63.mjs +141 -0
- package/dist/chunk-SHBDMA63.mjs.map +1 -0
- package/dist/chunk-SPVXBPRA.mjs +74 -0
- package/dist/chunk-SPVXBPRA.mjs.map +1 -0
- package/dist/chunk-T72G46ME.mjs +25 -0
- package/dist/chunk-T72G46ME.mjs.map +1 -0
- package/dist/chunk-TGELROPU.mjs +25 -0
- package/dist/chunk-TGELROPU.mjs.map +1 -0
- package/dist/chunk-UNX4IAAD.mjs +25 -0
- package/dist/chunk-UNX4IAAD.mjs.map +1 -0
- package/dist/chunk-V4DHVC7M.mjs +3085 -0
- package/dist/chunk-V4DHVC7M.mjs.map +1 -0
- package/dist/chunk-VVRFOB66.mjs +25 -0
- package/dist/chunk-VVRFOB66.mjs.map +1 -0
- package/dist/chunk-W6NVBYM6.mjs +80 -0
- package/dist/chunk-W6NVBYM6.mjs.map +1 -0
- package/dist/chunk-W7MBACGC.mjs +74 -0
- package/dist/chunk-W7MBACGC.mjs.map +1 -0
- package/dist/chunk-WMD4XZZS.mjs +25 -0
- package/dist/chunk-WMD4XZZS.mjs.map +1 -0
- package/dist/chunk-WX2ZNCRT.mjs +74 -0
- package/dist/chunk-WX2ZNCRT.mjs.map +1 -0
- package/dist/chunk-Y2Z62E2T.mjs +74 -0
- package/dist/chunk-Y2Z62E2T.mjs.map +1 -0
- package/dist/chunk-YO4I6RVI.mjs +25 -0
- package/dist/chunk-YO4I6RVI.mjs.map +1 -0
- package/dist/chunk-Z6Q5IW6I.mjs +3098 -0
- package/dist/chunk-Z6Q5IW6I.mjs.map +1 -0
- package/dist/chunk-Z726O3G2.mjs +25 -0
- package/dist/chunk-Z726O3G2.mjs.map +1 -0
- package/dist/chunk-ZE4SMZZR.mjs +3097 -0
- package/dist/chunk-ZE4SMZZR.mjs.map +1 -0
- package/dist/chunk-ZULZB33C.mjs +73 -0
- package/dist/chunk-ZULZB33C.mjs.map +1 -0
- package/dist/chunk-ZVRGXMY7.mjs +25 -0
- package/dist/chunk-ZVRGXMY7.mjs.map +1 -0
- package/dist/chunk-ZZ35WBYQ.mjs +25 -0
- package/dist/chunk-ZZ35WBYQ.mjs.map +1 -0
- package/dist/graphql/types/converted/index.d.ts +1 -1
- package/dist/graphql/types/converted/index.js +16 -110
- package/dist/graphql/types/converted/index.js.map +1 -1
- package/dist/graphql/types/converted/index.mjs +2 -3
- package/dist/{groq-adapter-50bc6e4a.d.ts → groq-adapter-540da9c3.d.ts} +6 -1
- package/dist/groq-adapter-a6f5e9d2.d.ts +331 -0
- package/dist/groq-adapter-c8aec5c5.d.ts +321 -0
- package/dist/index-96b330da.d.ts +119 -0
- package/dist/index.d.ts +67 -8
- package/dist/index.js +118 -28
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +120 -31
- package/dist/index.mjs.map +1 -1
- package/dist/langserve-0c6100e3.d.ts +257 -0
- package/dist/langserve-978d5790.d.ts +243 -0
- package/dist/{langserve-74a52292.d.ts → langserve-9fc76ce5.d.ts} +1 -0
- package/dist/lib/index.d.ts +5 -59
- package/dist/lib/index.js +3702 -803
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/index.mjs +20 -18
- package/dist/lib/integrations/index.d.ts +15 -9
- package/dist/lib/integrations/index.js +215 -187
- package/dist/lib/integrations/index.js.map +1 -1
- package/dist/lib/integrations/index.mjs +8 -7
- package/dist/lib/integrations/nest/index.d.ts +5 -6
- package/dist/lib/integrations/nest/index.js +197 -175
- package/dist/lib/integrations/nest/index.js.map +1 -1
- package/dist/lib/integrations/nest/index.mjs +6 -5
- package/dist/lib/integrations/node-express/index.d.ts +5 -6
- package/dist/lib/integrations/node-express/index.js +197 -175
- package/dist/lib/integrations/node-express/index.js.map +1 -1
- package/dist/lib/integrations/node-express/index.mjs +6 -5
- package/dist/lib/integrations/node-http/index.d.ts +5 -6
- package/dist/lib/integrations/node-http/index.js +197 -175
- package/dist/lib/integrations/node-http/index.js.map +1 -1
- package/dist/lib/integrations/node-http/index.mjs +5 -4
- package/dist/service-adapters/index.d.ts +7 -11
- package/dist/service-adapters/index.js +8 -21
- package/dist/service-adapters/index.js.map +1 -1
- package/dist/service-adapters/index.mjs +2 -4
- package/dist/shared-0a7346ce.d.ts +466 -0
- package/dist/{shared-f6d43ef8.d.ts → shared-35c6eb04.d.ts} +3 -1
- package/dist/shared-9ed1dc31.d.ts +414 -0
- package/dist/shared-da5708fe.d.ts +449 -0
- package/package.json +14 -20
- package/src/lib/index.ts +7 -6
- package/src/lib/runtime/copilot-runtime.ts +62 -26
- package/src/lib/runtime/telemetry-agent-runner.ts +139 -0
- package/dist/chunk-DZV4ZIAR.mjs.map +0 -1
- package/dist/chunk-SBCOROE4.mjs.map +0 -1
- package/dist/chunk-TTUAEJLD.mjs.map +0 -1
- /package/dist/{chunk-FMU55SEU.mjs.map → chunk-2GPTVDTO.mjs.map} +0 -0
- /package/dist/{chunk-BJEYMRDD.mjs.map → chunk-45RCC3ZS.mjs.map} +0 -0
- /package/dist/{chunk-Z752VE75.mjs.map → chunk-4KES76K3.mjs.map} +0 -0
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
copilotRuntimeNodeHttpEndpoint
|
|
3
|
-
} from "../../../chunk-
|
|
4
|
-
import "../../../chunk-
|
|
3
|
+
} from "../../../chunk-A555KEAD.mjs";
|
|
4
|
+
import "../../../chunk-27JKTS6P.mjs";
|
|
5
5
|
import "../../../chunk-XWBDEXDA.mjs";
|
|
6
|
-
import "../../../chunk-
|
|
7
|
-
import "../../../chunk-
|
|
6
|
+
import "../../../chunk-AMUJQ6IR.mjs";
|
|
7
|
+
import "../../../chunk-SHBDMA63.mjs";
|
|
8
|
+
import "../../../chunk-2OZAGFV3.mjs";
|
|
8
9
|
import "../../../chunk-FHD4JECV.mjs";
|
|
9
10
|
export {
|
|
10
11
|
copilotRuntimeNodeHttpEndpoint
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { b as CopilotServiceAdapter, C as CopilotRuntimeChatCompletionRequest, a as CopilotRuntimeChatCompletionResponse } from '../langserve-
|
|
2
|
-
export { c as RemoteChain, R as RemoteChainParameters } from '../langserve-
|
|
1
|
+
import { b as CopilotServiceAdapter, C as CopilotRuntimeChatCompletionRequest, a as CopilotRuntimeChatCompletionResponse } from '../langserve-0c6100e3.js';
|
|
2
|
+
export { c as RemoteChain, R as RemoteChainParameters } from '../langserve-0c6100e3.js';
|
|
3
3
|
export { convertServiceAdapterError } from './shared/index.js';
|
|
4
|
-
import { L as LangChainAdapter } from '../groq-adapter-
|
|
5
|
-
export { G as GoogleGenerativeAIAdapter, f as GroqAdapter, e as GroqAdapterParams, a as OpenAIAdapter, O as OpenAIAdapterParams, c as OpenAIAssistantAdapter, b as OpenAIAssistantAdapterParams, d as UnifyAdapter, U as UnifyAdapterParams } from '../groq-adapter-
|
|
4
|
+
import { L as LangChainAdapter } from '../groq-adapter-c8aec5c5.js';
|
|
5
|
+
export { G as GoogleGenerativeAIAdapter, f as GroqAdapter, e as GroqAdapterParams, a as OpenAIAdapter, O as OpenAIAdapterParams, c as OpenAIAssistantAdapter, b as OpenAIAssistantAdapterParams, d as UnifyAdapter, U as UnifyAdapterParams } from '../groq-adapter-c8aec5c5.js';
|
|
6
6
|
import Anthropic from '@anthropic-ai/sdk';
|
|
7
|
-
import '../index-
|
|
7
|
+
import '../index-96b330da.js';
|
|
8
8
|
import '../graphql/types/base/index.js';
|
|
9
9
|
import 'rxjs';
|
|
10
10
|
import '@copilotkit/shared';
|
|
@@ -66,8 +66,7 @@ interface AnthropicAdapterParams {
|
|
|
66
66
|
promptCaching?: AnthropicPromptCachingConfig;
|
|
67
67
|
}
|
|
68
68
|
declare class AnthropicAdapter implements CopilotServiceAdapter {
|
|
69
|
-
model
|
|
70
|
-
provider: string;
|
|
69
|
+
private model;
|
|
71
70
|
private promptCaching;
|
|
72
71
|
private _anthropic;
|
|
73
72
|
get anthropic(): Anthropic;
|
|
@@ -88,8 +87,7 @@ interface OllamaAdapterOptions {
|
|
|
88
87
|
model?: string;
|
|
89
88
|
}
|
|
90
89
|
declare class ExperimentalOllamaAdapter implements CopilotServiceAdapter {
|
|
91
|
-
model
|
|
92
|
-
provider: string;
|
|
90
|
+
private model;
|
|
93
91
|
constructor(options?: OllamaAdapterOptions);
|
|
94
92
|
process(request: CopilotRuntimeChatCompletionRequest): Promise<CopilotRuntimeChatCompletionResponse>;
|
|
95
93
|
}
|
|
@@ -135,8 +133,6 @@ interface BedrockAdapterParams {
|
|
|
135
133
|
};
|
|
136
134
|
}
|
|
137
135
|
declare class BedrockAdapter extends LangChainAdapter {
|
|
138
|
-
provider: string;
|
|
139
|
-
model: string;
|
|
140
136
|
constructor(options?: BedrockAdapterParams);
|
|
141
137
|
}
|
|
142
138
|
|
|
@@ -356,7 +356,6 @@ var import_shared3 = require("@copilotkit/shared");
|
|
|
356
356
|
var DEFAULT_MODEL = "gpt-4o";
|
|
357
357
|
var OpenAIAdapter = class {
|
|
358
358
|
model = DEFAULT_MODEL;
|
|
359
|
-
provider = "openai";
|
|
360
359
|
disableParallelToolCalls = false;
|
|
361
360
|
_openai;
|
|
362
361
|
keepSystemRole = false;
|
|
@@ -780,10 +779,7 @@ __name(LangChainAdapter, "LangChainAdapter");
|
|
|
780
779
|
// src/service-adapters/google/google-genai-adapter.ts
|
|
781
780
|
var import_google_gauth = require("@langchain/google-gauth");
|
|
782
781
|
var import_messages2 = require("@langchain/core/messages");
|
|
783
|
-
var DEFAULT_MODEL2 = "gemini-1.5-pro";
|
|
784
782
|
var GoogleGenerativeAIAdapter = class extends LangChainAdapter {
|
|
785
|
-
provider = "google";
|
|
786
|
-
model = DEFAULT_MODEL2;
|
|
787
783
|
constructor(options) {
|
|
788
784
|
super({
|
|
789
785
|
chainFn: async ({ messages, tools, threadId }) => {
|
|
@@ -793,10 +789,9 @@ var GoogleGenerativeAIAdapter = class extends LangChainAdapter {
|
|
|
793
789
|
}
|
|
794
790
|
return message.content && String(message.content).trim().length > 0 || message.tool_calls && message.tool_calls.length > 0;
|
|
795
791
|
});
|
|
796
|
-
this.model = (options == null ? void 0 : options.model) ?? "gemini-1.5-pro";
|
|
797
792
|
const model = new import_google_gauth.ChatGoogle({
|
|
798
793
|
apiKey: (options == null ? void 0 : options.apiKey) ?? process.env.GOOGLE_API_KEY,
|
|
799
|
-
modelName:
|
|
794
|
+
modelName: (options == null ? void 0 : options.model) ?? "gemini-1.5-pro",
|
|
800
795
|
apiVersion: "v1beta"
|
|
801
796
|
}).bindTools(tools);
|
|
802
797
|
return model.stream(filteredMessages, {
|
|
@@ -1018,7 +1013,6 @@ var UnifyAdapter = class {
|
|
|
1018
1013
|
apiKey;
|
|
1019
1014
|
model;
|
|
1020
1015
|
start;
|
|
1021
|
-
provider = "unify";
|
|
1022
1016
|
constructor(options) {
|
|
1023
1017
|
if (options == null ? void 0 : options.apiKey) {
|
|
1024
1018
|
this.apiKey = options.apiKey;
|
|
@@ -1132,10 +1126,9 @@ __name(UnifyAdapter, "UnifyAdapter");
|
|
|
1132
1126
|
// src/service-adapters/groq/groq-adapter.ts
|
|
1133
1127
|
var import_groq_sdk = require("groq-sdk");
|
|
1134
1128
|
var import_shared8 = require("@copilotkit/shared");
|
|
1135
|
-
var
|
|
1129
|
+
var DEFAULT_MODEL2 = "llama-3.3-70b-versatile";
|
|
1136
1130
|
var GroqAdapter = class {
|
|
1137
|
-
model =
|
|
1138
|
-
provider = "groq";
|
|
1131
|
+
model = DEFAULT_MODEL2;
|
|
1139
1132
|
disableParallelToolCalls = false;
|
|
1140
1133
|
_groq;
|
|
1141
1134
|
get groq() {
|
|
@@ -1413,10 +1406,9 @@ __name(convertMessageToAnthropicMessage, "convertMessageToAnthropicMessage");
|
|
|
1413
1406
|
|
|
1414
1407
|
// src/service-adapters/anthropic/anthropic-adapter.ts
|
|
1415
1408
|
var import_shared10 = require("@copilotkit/shared");
|
|
1416
|
-
var
|
|
1409
|
+
var DEFAULT_MODEL3 = "claude-3-5-sonnet-latest";
|
|
1417
1410
|
var AnthropicAdapter = class {
|
|
1418
|
-
model =
|
|
1419
|
-
provider = "anthropic";
|
|
1411
|
+
model = DEFAULT_MODEL3;
|
|
1420
1412
|
promptCaching;
|
|
1421
1413
|
_anthropic;
|
|
1422
1414
|
get anthropic() {
|
|
@@ -1704,15 +1696,14 @@ var FilterThinkingTextBuffer = /* @__PURE__ */ __name(class FilterThinkingTextBu
|
|
|
1704
1696
|
// src/service-adapters/experimental/ollama/ollama-adapter.ts
|
|
1705
1697
|
var import_ollama = require("@langchain/community/llms/ollama");
|
|
1706
1698
|
var import_shared12 = require("@copilotkit/shared");
|
|
1707
|
-
var
|
|
1699
|
+
var DEFAULT_MODEL4 = "llama3:latest";
|
|
1708
1700
|
var ExperimentalOllamaAdapter = class {
|
|
1709
1701
|
model;
|
|
1710
|
-
provider = "ollama";
|
|
1711
1702
|
constructor(options) {
|
|
1712
1703
|
if (options == null ? void 0 : options.model) {
|
|
1713
1704
|
this.model = options.model;
|
|
1714
1705
|
} else {
|
|
1715
|
-
this.model =
|
|
1706
|
+
this.model = DEFAULT_MODEL4;
|
|
1716
1707
|
}
|
|
1717
1708
|
}
|
|
1718
1709
|
async process(request) {
|
|
@@ -1747,16 +1738,12 @@ __name(ExperimentalOllamaAdapter, "ExperimentalOllamaAdapter");
|
|
|
1747
1738
|
|
|
1748
1739
|
// src/service-adapters/bedrock/bedrock-adapter.ts
|
|
1749
1740
|
var import_aws = require("@langchain/aws");
|
|
1750
|
-
var DEFAULT_MODEL6 = "amazon.nova-lite-v1:0";
|
|
1751
1741
|
var BedrockAdapter = class extends LangChainAdapter {
|
|
1752
|
-
provider = "bedrock";
|
|
1753
|
-
model = DEFAULT_MODEL6;
|
|
1754
1742
|
constructor(options) {
|
|
1755
1743
|
super({
|
|
1756
1744
|
chainFn: async ({ messages, tools, threadId }) => {
|
|
1757
|
-
this.model = (options == null ? void 0 : options.model) ?? "amazon.nova-lite-v1:0";
|
|
1758
1745
|
const model = new import_aws.ChatBedrockConverse({
|
|
1759
|
-
model:
|
|
1746
|
+
model: (options == null ? void 0 : options.model) ?? "amazon.nova-lite-v1:0",
|
|
1760
1747
|
region: (options == null ? void 0 : options.region) ?? "us-east-1",
|
|
1761
1748
|
credentials: (options == null ? void 0 : options.credentials) ? {
|
|
1762
1749
|
accessKeyId: options.credentials.accessKeyId,
|