@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.
- package/CHANGELOG.md +9 -0
- package/__snapshots__/schema/schema.graphql +1 -0
- package/dist/{chunk-25G6SHWM.mjs → chunk-3ECBC2K2.mjs} +13 -6
- package/dist/chunk-3ECBC2K2.mjs.map +1 -0
- package/dist/{chunk-PIUHAIBR.mjs → chunk-5E6LOP76.mjs} +2 -2
- package/dist/{chunk-4AYRDPWK.mjs → chunk-CLGKEUOA.mjs} +14 -1
- package/dist/chunk-CLGKEUOA.mjs.map +1 -0
- package/dist/{chunk-AFKLCW76.mjs → chunk-MKDG5ZHT.mjs} +2 -2
- package/dist/{chunk-D6J2N5ZQ.mjs → chunk-MYZB2EKG.mjs} +2 -2
- package/dist/{copilot-runtime-2e46a7b6.d.ts → copilot-runtime-6285d897.d.ts} +1 -1
- package/dist/{groq-adapter-7bf6824b.d.ts → groq-adapter-15d41154.d.ts} +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +21 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -10
- package/dist/{langserve-f318db89.d.ts → langserve-48e976ac.d.ts} +1 -0
- package/dist/lib/index.d.ts +3 -3
- package/dist/lib/index.js +18 -1
- 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 +8 -1
- 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 +2 -2
- package/dist/lib/integrations/nest/index.js +8 -1
- 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 +2 -2
- package/dist/lib/integrations/node-express/index.js +8 -1
- 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 +2 -2
- package/dist/lib/integrations/node-http/index.js +8 -1
- 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 +3 -3
- package/dist/service-adapters/index.js +13 -0
- package/dist/service-adapters/index.js.map +1 -1
- package/dist/service-adapters/index.mjs +1 -1
- package/package.json +2 -2
- package/src/graphql/inputs/forwarded-parameters.input.ts +3 -0
- package/src/service-adapters/anthropic/anthropic-adapter.ts +1 -0
- package/src/service-adapters/groq/groq-adapter.ts +1 -0
- package/src/service-adapters/openai/openai-adapter.ts +1 -0
- package/src/service-adapters/unify/unify-adapter.ts +2 -0
- package/dist/chunk-25G6SHWM.mjs.map +0 -1
- package/dist/chunk-4AYRDPWK.mjs.map +0 -1
- /package/dist/{chunk-PIUHAIBR.mjs.map → chunk-5E6LOP76.mjs.map} +0 -0
- /package/dist/{chunk-AFKLCW76.mjs.map → chunk-MKDG5ZHT.mjs.map} +0 -0
- /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-
|
|
6
|
+
} from "./chunk-MKDG5ZHT.mjs";
|
|
7
7
|
import {
|
|
8
8
|
copilotRuntimeNestEndpoint
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-5E6LOP76.mjs";
|
|
10
10
|
import {
|
|
11
11
|
copilotRuntimeNodeExpressEndpoint
|
|
12
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
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";
|
package/dist/lib/index.d.ts
CHANGED
|
@@ -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-
|
|
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-
|
|
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-
|
|
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);
|