@copilotkit/runtime 1.3.16-mme-improve-langsmith.0 → 1.3.16-mme-copilot-suggestions.1

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.
Files changed (43) hide show
  1. package/CHANGELOG.md +11 -3
  2. package/dist/{chunk-TD3UMHBH.mjs → chunk-2H4XYEHG.mjs} +2 -2
  3. package/dist/chunk-2H4XYEHG.mjs.map +1 -0
  4. package/dist/{chunk-YGFQK4XG.mjs → chunk-SKKQQVDM.mjs} +2 -2
  5. package/dist/{chunk-E75MOZGE.mjs → chunk-SKS2SK3W.mjs} +2 -2
  6. package/dist/{chunk-UHFZPBA5.mjs → chunk-VGYN7TGZ.mjs} +5 -10
  7. package/dist/chunk-VGYN7TGZ.mjs.map +1 -0
  8. package/dist/{chunk-KCW3B5UA.mjs → chunk-XBB3O4AV.mjs} +3 -3
  9. package/dist/{chunk-QJB3CIHI.mjs → chunk-ZP2IRHF3.mjs} +2 -2
  10. package/dist/{groq-adapter-b122e71f.d.ts → groq-adapter-2d3a332a.d.ts} +3 -1
  11. package/dist/index.d.ts +1 -1
  12. package/dist/index.js +5 -10
  13. package/dist/index.js.map +1 -1
  14. package/dist/index.mjs +6 -6
  15. package/dist/lib/index.d.ts +1 -1
  16. package/dist/lib/index.js +5 -10
  17. package/dist/lib/index.js.map +1 -1
  18. package/dist/lib/index.mjs +6 -6
  19. package/dist/lib/integrations/index.js +1 -1
  20. package/dist/lib/integrations/index.js.map +1 -1
  21. package/dist/lib/integrations/index.mjs +4 -4
  22. package/dist/lib/integrations/nest/index.js +1 -1
  23. package/dist/lib/integrations/nest/index.js.map +1 -1
  24. package/dist/lib/integrations/nest/index.mjs +2 -2
  25. package/dist/lib/integrations/node-express/index.js +1 -1
  26. package/dist/lib/integrations/node-express/index.js.map +1 -1
  27. package/dist/lib/integrations/node-express/index.mjs +2 -2
  28. package/dist/lib/integrations/node-http/index.js +1 -1
  29. package/dist/lib/integrations/node-http/index.js.map +1 -1
  30. package/dist/lib/integrations/node-http/index.mjs +1 -1
  31. package/dist/service-adapters/index.d.ts +1 -1
  32. package/dist/service-adapters/index.js +4 -9
  33. package/dist/service-adapters/index.js.map +1 -1
  34. package/dist/service-adapters/index.mjs +1 -1
  35. package/package.json +4 -4
  36. package/src/service-adapters/google/google-genai-adapter.ts +2 -2
  37. package/src/service-adapters/langchain/langchain-adapter.ts +5 -4
  38. package/dist/chunk-TD3UMHBH.mjs.map +0 -1
  39. package/dist/chunk-UHFZPBA5.mjs.map +0 -1
  40. /package/dist/{chunk-YGFQK4XG.mjs.map → chunk-SKKQQVDM.mjs.map} +0 -0
  41. /package/dist/{chunk-E75MOZGE.mjs.map → chunk-SKS2SK3W.mjs.map} +0 -0
  42. /package/dist/{chunk-KCW3B5UA.mjs.map → chunk-XBB3O4AV.mjs.map} +0 -0
  43. /package/dist/{chunk-QJB3CIHI.mjs.map → chunk-ZP2IRHF3.mjs.map} +0 -0
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  CopilotRuntime,
3
3
  flattenToolCallsNoDuplicates
4
- } from "./chunk-KCW3B5UA.mjs";
4
+ } from "./chunk-XBB3O4AV.mjs";
5
5
  import {
6
6
  AnthropicAdapter,
7
7
  GoogleGenerativeAIAdapter,
@@ -11,24 +11,24 @@ import {
11
11
  OpenAIAssistantAdapter,
12
12
  RemoteChain,
13
13
  UnifyAdapter
14
- } from "./chunk-UHFZPBA5.mjs";
14
+ } from "./chunk-VGYN7TGZ.mjs";
15
15
  import {
16
16
  config,
17
17
  copilotRuntimeNextJSAppRouterEndpoint,
18
18
  copilotRuntimeNextJSPagesRouterEndpoint
19
- } from "./chunk-QJB3CIHI.mjs";
19
+ } from "./chunk-ZP2IRHF3.mjs";
20
20
  import {
21
21
  copilotRuntimeNestEndpoint
22
- } from "./chunk-YGFQK4XG.mjs";
22
+ } from "./chunk-SKKQQVDM.mjs";
23
23
  import {
24
24
  copilotRuntimeNodeExpressEndpoint
25
- } from "./chunk-E75MOZGE.mjs";
25
+ } from "./chunk-SKS2SK3W.mjs";
26
26
  import {
27
27
  buildSchema,
28
28
  copilotRuntimeNodeHttpEndpoint,
29
29
  createContext,
30
30
  getCommonConfig
31
- } from "./chunk-TD3UMHBH.mjs";
31
+ } from "./chunk-2H4XYEHG.mjs";
32
32
  import "./chunk-MXXPWWBF.mjs";
33
33
  import {
34
34
  GuardrailsValidationFailureResponse,
@@ -1,5 +1,5 @@
1
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-df3527ad.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-b122e71f.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-2d3a332a.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';
package/dist/lib/index.js CHANGED
@@ -44,7 +44,7 @@ var require_package = __commonJS({
44
44
  publishConfig: {
45
45
  access: "public"
46
46
  },
47
- version: "1.3.16-mme-improve-langsmith.0",
47
+ version: "1.3.16-mme-copilot-suggestions.1",
48
48
  sideEffects: false,
49
49
  main: "./dist/index.js",
50
50
  module: "./dist/index.mjs",
@@ -677,8 +677,7 @@ var LangChainAdapter = class {
677
677
  this.options = options;
678
678
  }
679
679
  async process(request) {
680
- const { eventSource, model, actions, messages, runId } = request;
681
- const threadId = request.threadId ?? (0, import_shared3.randomId)();
680
+ const { eventSource, model, actions, messages, threadId, runId } = request;
682
681
  const result = await this.options.chainFn({
683
682
  messages: messages.map(convertMessageToLangChainMessage),
684
683
  tools: actions.map(convertActionInputToLangChainTool),
@@ -693,7 +692,7 @@ var LangChainAdapter = class {
693
692
  });
694
693
  });
695
694
  return {
696
- threadId
695
+ threadId: threadId || (0, import_shared3.randomId)()
697
696
  };
698
697
  }
699
698
  };
@@ -704,16 +703,12 @@ var import_google_gauth = require("@langchain/google-gauth");
704
703
  var GoogleGenerativeAIAdapter = class extends LangChainAdapter {
705
704
  constructor(options) {
706
705
  super({
707
- chainFn: async ({ messages, tools, threadId }) => {
706
+ chainFn: async ({ messages, tools }) => {
708
707
  const model = new import_google_gauth.ChatGoogle({
709
708
  modelName: (options == null ? void 0 : options.model) ?? "gemini-1.5-pro",
710
709
  apiVersion: "v1beta"
711
710
  }).bindTools(tools);
712
- return model.stream(messages, {
713
- metadata: {
714
- conversation_id: threadId
715
- }
716
- });
711
+ return model.stream(messages);
717
712
  }
718
713
  });
719
714
  }