@copilotkit/runtime 1.9.2-next.17 → 1.9.2-next.19
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 +18 -0
- package/dist/{chunk-CORCJNXR.mjs → chunk-BTV2RM2X.mjs} +2 -2
- package/dist/{chunk-H3ML2MWF.mjs → chunk-EEARRKK3.mjs} +28 -28
- package/dist/chunk-EEARRKK3.mjs.map +1 -0
- package/dist/{chunk-7EDOHCIU.mjs → chunk-OVIDH7IH.mjs} +2 -2
- package/dist/{chunk-JTFQ5GIL.mjs → chunk-QLLV2QVK.mjs} +2 -1
- package/dist/chunk-QLLV2QVK.mjs.map +1 -0
- package/dist/{chunk-WXNKOOVD.mjs → chunk-QPMGUSMZ.mjs} +2 -2
- package/dist/{chunk-6QK2NO6W.mjs → chunk-ZNDOT3YP.mjs} +2 -2
- package/dist/{groq-adapter-172a2ca4.d.ts → groq-adapter-098f97f6.d.ts} +4 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +27 -26
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -6
- package/dist/lib/index.d.ts +2 -2
- package/dist/lib/index.js +27 -26
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/index.mjs +6 -6
- package/dist/lib/integrations/index.d.ts +2 -2
- package/dist/lib/integrations/index.js +2 -2
- package/dist/lib/integrations/index.js.map +1 -1
- package/dist/lib/integrations/index.mjs +5 -5
- package/dist/lib/integrations/nest/index.d.ts +1 -1
- package/dist/lib/integrations/nest/index.js +2 -2
- package/dist/lib/integrations/nest/index.js.map +1 -1
- package/dist/lib/integrations/nest/index.mjs +3 -3
- package/dist/lib/integrations/node-express/index.d.ts +1 -1
- package/dist/lib/integrations/node-express/index.js +2 -2
- package/dist/lib/integrations/node-express/index.js.map +1 -1
- package/dist/lib/integrations/node-express/index.mjs +3 -3
- package/dist/lib/integrations/node-http/index.d.ts +1 -1
- package/dist/lib/integrations/node-http/index.js +2 -2
- package/dist/lib/integrations/node-http/index.js.map +1 -1
- package/dist/lib/integrations/node-http/index.mjs +2 -2
- package/dist/service-adapters/index.d.ts +2 -2
- package/dist/service-adapters/index.js +1 -0
- package/dist/service-adapters/index.js.map +1 -1
- package/dist/service-adapters/index.mjs +1 -1
- package/dist/{shared-4164c674.d.ts → shared-41d4988d.d.ts} +13 -13
- package/package.json +4 -4
- package/src/graphql/resolvers/copilot.resolver.ts +1 -2
- package/src/lib/runtime/__tests__/{copilot-runtime-trace.test.ts → copilot-runtime-error.test.ts} +27 -27
- package/src/lib/runtime/copilot-runtime.ts +41 -42
- package/src/service-adapters/google/google-genai-adapter.ts +5 -0
- package/dist/chunk-H3ML2MWF.mjs.map +0 -1
- package/dist/chunk-JTFQ5GIL.mjs.map +0 -1
- /package/dist/{chunk-CORCJNXR.mjs.map → chunk-BTV2RM2X.mjs.map} +0 -0
- /package/dist/{chunk-7EDOHCIU.mjs.map → chunk-OVIDH7IH.mjs.map} +0 -0
- /package/dist/{chunk-WXNKOOVD.mjs.map → chunk-QPMGUSMZ.mjs.map} +0 -0
- /package/dist/{chunk-6QK2NO6W.mjs.map → chunk-ZNDOT3YP.mjs.map} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
copilotRuntimeNodeHttpEndpoint
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-EEARRKK3.mjs";
|
|
4
4
|
import "../../../chunk-SHBDMA63.mjs";
|
|
5
|
-
import "../../../chunk-
|
|
5
|
+
import "../../../chunk-QLLV2QVK.mjs";
|
|
6
6
|
import "../../../chunk-XWBDEXDA.mjs";
|
|
7
7
|
import "../../../chunk-AMUJQ6IR.mjs";
|
|
8
8
|
import "../../../chunk-2OZAGFV3.mjs";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { b as CopilotServiceAdapter, C as CopilotRuntimeChatCompletionRequest, a as CopilotRuntimeChatCompletionResponse } from '../langserve-fc5cac89.js';
|
|
2
2
|
export { c as RemoteChain, R as RemoteChainParameters } from '../langserve-fc5cac89.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-098f97f6.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-098f97f6.js';
|
|
6
6
|
import Anthropic from '@anthropic-ai/sdk';
|
|
7
7
|
import '../index-d4614f9b.js';
|
|
8
8
|
import '../graphql/types/base/index.js';
|
|
@@ -784,6 +784,7 @@ var GoogleGenerativeAIAdapter = class extends LangChainAdapter {
|
|
|
784
784
|
return message.content && String(message.content).trim().length > 0 || message.tool_calls && message.tool_calls.length > 0;
|
|
785
785
|
});
|
|
786
786
|
const model = new import_google_gauth.ChatGoogle({
|
|
787
|
+
apiKey: (options == null ? void 0 : options.apiKey) ?? process.env.GOOGLE_API_KEY,
|
|
787
788
|
modelName: (options == null ? void 0 : options.model) ?? "gemini-1.5-pro",
|
|
788
789
|
apiVersion: "v1beta"
|
|
789
790
|
}).bindTools(tools);
|