@copilotkit/runtime 1.5.0 → 1.5.1-custom-tag-pre.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.
Files changed (51) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/__snapshots__/schema/schema.graphql +1 -0
  3. package/dist/{chunk-25G6SHWM.mjs → chunk-3ECBC2K2.mjs} +13 -6
  4. package/dist/chunk-3ECBC2K2.mjs.map +1 -0
  5. package/dist/{chunk-PIUHAIBR.mjs → chunk-5E6LOP76.mjs} +2 -2
  6. package/dist/{chunk-4AYRDPWK.mjs → chunk-CLGKEUOA.mjs} +14 -1
  7. package/dist/chunk-CLGKEUOA.mjs.map +1 -0
  8. package/dist/{chunk-AFKLCW76.mjs → chunk-MKDG5ZHT.mjs} +2 -2
  9. package/dist/{chunk-D6J2N5ZQ.mjs → chunk-MYZB2EKG.mjs} +2 -2
  10. package/dist/{copilot-runtime-2e46a7b6.d.ts → copilot-runtime-6285d897.d.ts} +1 -1
  11. package/dist/{groq-adapter-7bf6824b.d.ts → groq-adapter-15d41154.d.ts} +1 -1
  12. package/dist/index.d.ts +3 -3
  13. package/dist/index.js +21 -1
  14. package/dist/index.js.map +1 -1
  15. package/dist/index.mjs +10 -10
  16. package/dist/{langserve-f318db89.d.ts → langserve-48e976ac.d.ts} +1 -0
  17. package/dist/lib/index.d.ts +3 -3
  18. package/dist/lib/index.js +18 -1
  19. package/dist/lib/index.js.map +1 -1
  20. package/dist/lib/index.mjs +6 -6
  21. package/dist/lib/integrations/index.d.ts +3 -3
  22. package/dist/lib/integrations/index.js +8 -1
  23. package/dist/lib/integrations/index.js.map +1 -1
  24. package/dist/lib/integrations/index.mjs +5 -5
  25. package/dist/lib/integrations/nest/index.d.ts +2 -2
  26. package/dist/lib/integrations/nest/index.js +8 -1
  27. package/dist/lib/integrations/nest/index.js.map +1 -1
  28. package/dist/lib/integrations/nest/index.mjs +3 -3
  29. package/dist/lib/integrations/node-express/index.d.ts +2 -2
  30. package/dist/lib/integrations/node-express/index.js +8 -1
  31. package/dist/lib/integrations/node-express/index.js.map +1 -1
  32. package/dist/lib/integrations/node-express/index.mjs +3 -3
  33. package/dist/lib/integrations/node-http/index.d.ts +2 -2
  34. package/dist/lib/integrations/node-http/index.js +8 -1
  35. package/dist/lib/integrations/node-http/index.js.map +1 -1
  36. package/dist/lib/integrations/node-http/index.mjs +2 -2
  37. package/dist/service-adapters/index.d.ts +3 -3
  38. package/dist/service-adapters/index.js +13 -0
  39. package/dist/service-adapters/index.js.map +1 -1
  40. package/dist/service-adapters/index.mjs +1 -1
  41. package/package.json +2 -2
  42. package/src/graphql/inputs/forwarded-parameters.input.ts +3 -0
  43. package/src/service-adapters/anthropic/anthropic-adapter.ts +1 -0
  44. package/src/service-adapters/groq/groq-adapter.ts +1 -0
  45. package/src/service-adapters/openai/openai-adapter.ts +1 -0
  46. package/src/service-adapters/unify/unify-adapter.ts +2 -0
  47. package/dist/chunk-25G6SHWM.mjs.map +0 -1
  48. package/dist/chunk-4AYRDPWK.mjs.map +0 -1
  49. /package/dist/{chunk-PIUHAIBR.mjs.map → chunk-5E6LOP76.mjs.map} +0 -0
  50. /package/dist/{chunk-AFKLCW76.mjs.map → chunk-MKDG5ZHT.mjs.map} +0 -0
  51. /package/dist/{chunk-D6J2N5ZQ.mjs.map → chunk-MYZB2EKG.mjs.map} +0 -0
package/dist/index.mjs CHANGED
@@ -3,13 +3,13 @@ import {
3
3
  config,
4
4
  copilotRuntimeNextJSAppRouterEndpoint,
5
5
  copilotRuntimeNextJSPagesRouterEndpoint
6
- } from "./chunk-AFKLCW76.mjs";
6
+ } from "./chunk-MKDG5ZHT.mjs";
7
7
  import {
8
8
  copilotRuntimeNestEndpoint
9
- } from "./chunk-PIUHAIBR.mjs";
9
+ } from "./chunk-5E6LOP76.mjs";
10
10
  import {
11
11
  copilotRuntimeNodeExpressEndpoint
12
- } from "./chunk-D6J2N5ZQ.mjs";
12
+ } from "./chunk-MYZB2EKG.mjs";
13
13
  import {
14
14
  CopilotRuntime,
15
15
  buildSchema,
@@ -20,12 +20,7 @@ import {
20
20
  getCommonConfig,
21
21
  langGraphPlatformEndpoint,
22
22
  resolveEndpointType
23
- } from "./chunk-25G6SHWM.mjs";
24
- import {
25
- GuardrailsValidationFailureResponse,
26
- MessageStreamInterruptedResponse,
27
- UnknownErrorResponse
28
- } from "./chunk-U3V2BCGI.mjs";
23
+ } from "./chunk-3ECBC2K2.mjs";
29
24
  import {
30
25
  AnthropicAdapter,
31
26
  ExperimentalEmptyAdapter,
@@ -37,7 +32,12 @@ import {
37
32
  OpenAIAssistantAdapter,
38
33
  RemoteChain,
39
34
  UnifyAdapter
40
- } from "./chunk-4AYRDPWK.mjs";
35
+ } from "./chunk-CLGKEUOA.mjs";
36
+ import {
37
+ GuardrailsValidationFailureResponse,
38
+ MessageStreamInterruptedResponse,
39
+ UnknownErrorResponse
40
+ } from "./chunk-U3V2BCGI.mjs";
41
41
  import "./chunk-RFF5IIZJ.mjs";
42
42
  import "./chunk-D2WLFQS6.mjs";
43
43
  import "./chunk-44O2JGUY.mjs";
@@ -135,6 +135,7 @@ declare class ForwardedParametersInput {
135
135
  stop?: string[];
136
136
  toolChoice?: String;
137
137
  toolChoiceFunctionName?: string;
138
+ temperature?: number;
138
139
  }
139
140
 
140
141
  interface CopilotRuntimeChatCompletionRequest {
@@ -1,11 +1,11 @@
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-2e46a7b6.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-7bf6824b.js';
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-6285d897.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-15d41154.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-f318db89.js';
8
+ import '../langserve-48e976ac.js';
9
9
  import '../index-ff3fbc33.js';
10
10
  import '../graphql/types/base/index.js';
11
11
  import 'rxjs';
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.5.0",
47
+ version: "1.5.1-custom-tag-pre.0",
48
48
  sideEffects: false,
49
49
  main: "./dist/index.js",
50
50
  module: "./dist/index.mjs",
@@ -419,6 +419,9 @@ var OpenAIAdapter = class {
419
419
  },
420
420
  ...this.disableParallelToolCalls && {
421
421
  parallel_tool_calls: false
422
+ },
423
+ ...(forwardedParameters == null ? void 0 : forwardedParameters.temperature) && {
424
+ temperature: forwardedParameters.temperature
422
425
  }
423
426
  });
424
427
  eventSource.stream(async (eventStream$) => {
@@ -984,6 +987,7 @@ var UnifyAdapter = class {
984
987
  apiKey: this.apiKey,
985
988
  baseURL: "https://api.unify.ai/v0/"
986
989
  });
990
+ const forwardedParameters = request.forwardedParameters;
987
991
  const messages = request.messages.map(convertMessageToOpenAIMessage);
988
992
  const stream = await openai.chat.completions.create({
989
993
  model: this.model,
@@ -991,6 +995,9 @@ var UnifyAdapter = class {
991
995
  stream: true,
992
996
  ...tools.length > 0 && {
993
997
  tools
998
+ },
999
+ ...(forwardedParameters == null ? void 0 : forwardedParameters.temperature) && {
1000
+ temperature: forwardedParameters.temperature
994
1001
  }
995
1002
  });
996
1003
  let model = null;
@@ -1125,6 +1132,9 @@ var GroqAdapter = class {
1125
1132
  },
1126
1133
  ...this.disableParallelToolCalls && {
1127
1134
  parallel_tool_calls: false
1135
+ },
1136
+ ...(forwardedParameters == null ? void 0 : forwardedParameters.temperature) && {
1137
+ temperature: forwardedParameters.temperature
1128
1138
  }
1129
1139
  });
1130
1140
  eventSource.stream(async (eventStream$) => {
@@ -3331,6 +3341,7 @@ var ForwardedParametersInput = class {
3331
3341
  stop;
3332
3342
  toolChoice;
3333
3343
  toolChoiceFunctionName;
3344
+ temperature;
3334
3345
  };
3335
3346
  __name(ForwardedParametersInput, "ForwardedParametersInput");
3336
3347
  _ts_decorate7([
@@ -3365,6 +3376,12 @@ _ts_decorate7([
3365
3376
  }),
3366
3377
  _ts_metadata7("design:type", String)
3367
3378
  ], ForwardedParametersInput.prototype, "toolChoiceFunctionName", void 0);
3379
+ _ts_decorate7([
3380
+ (0, import_type_graphql8.Field)(() => Number, {
3381
+ nullable: true
3382
+ }),
3383
+ _ts_metadata7("design:type", Number)
3384
+ ], ForwardedParametersInput.prototype, "temperature", void 0);
3368
3385
  ForwardedParametersInput = _ts_decorate7([
3369
3386
  (0, import_type_graphql8.InputType)()
3370
3387
  ], ForwardedParametersInput);