@copilotkit/runtime 0.0.0-feat-enable-setting-recursion-limit-20250428151824 → 0.0.0-feat-enable-setting-recursion-limit-20250429113850
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 +2 -2
- package/dist/{chunk-UYOLJP2E.mjs → chunk-JGBGBJGK.mjs} +20 -8
- package/dist/chunk-JGBGBJGK.mjs.map +1 -0
- package/dist/{chunk-UXFLLVRF.mjs → chunk-RYD7OJZU.mjs} +2 -2
- package/dist/{chunk-RESUQNFX.mjs → chunk-SU5U4C2V.mjs} +2 -2
- package/dist/{chunk-6N7YZABI.mjs → chunk-UZ46MTC2.mjs} +2 -2
- package/dist/index.js +19 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/lib/index.js +19 -7
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/index.mjs +4 -4
- package/dist/lib/integrations/index.mjs +4 -4
- package/dist/lib/integrations/nest/index.mjs +2 -2
- package/dist/lib/integrations/node-express/index.mjs +2 -2
- package/dist/lib/integrations/node-http/index.mjs +1 -1
- package/package.json +2 -2
- package/src/lib/runtime/remote-lg-action.ts +27 -4
- package/dist/chunk-UYOLJP2E.mjs.map +0 -1
- /package/dist/{chunk-UXFLLVRF.mjs.map → chunk-RYD7OJZU.mjs.map} +0 -0
- /package/dist/{chunk-RESUQNFX.mjs.map → chunk-SU5U4C2V.mjs.map} +0 -0
- /package/dist/{chunk-6N7YZABI.mjs.map → chunk-UZ46MTC2.mjs.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# @copilotkit/runtime
|
|
2
2
|
|
|
3
|
-
## 0.0.0-feat-enable-setting-recursion-limit-
|
|
3
|
+
## 0.0.0-feat-enable-setting-recursion-limit-20250429113850
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
7
|
- 1d2ae5a: - feat: enable setting langgraph config from ui
|
|
8
8
|
- chore: document usage of new config
|
|
9
|
-
- @copilotkit/shared@0.0.0-feat-enable-setting-recursion-limit-
|
|
9
|
+
- @copilotkit/shared@0.0.0-feat-enable-setting-recursion-limit-20250429113850
|
|
10
10
|
|
|
11
11
|
## 1.8.9
|
|
12
12
|
|
|
@@ -1894,17 +1894,29 @@ async function streamEvents(controller, args) {
|
|
|
1894
1894
|
const graphSchema = await client.assistants.getSchemas(assistantId);
|
|
1895
1895
|
const schemaKeys = getSchemaKeys(graphSchema);
|
|
1896
1896
|
if (explicitConfig) {
|
|
1897
|
-
let filteredConfigurable = retrievedAssistant.config.configurable
|
|
1897
|
+
let filteredConfigurable = retrievedAssistant.config.configurable;
|
|
1898
1898
|
if (explicitConfig.configurable) {
|
|
1899
1899
|
filteredConfigurable = (schemaKeys == null ? void 0 : schemaKeys.config) ? filterObjectBySchemaKeys(explicitConfig == null ? void 0 : explicitConfig.configurable, schemaKeys == null ? void 0 : schemaKeys.config) : explicitConfig == null ? void 0 : explicitConfig.configurable;
|
|
1900
1900
|
}
|
|
1901
|
-
|
|
1902
|
-
config
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1901
|
+
const newConfig = {
|
|
1902
|
+
...retrievedAssistant.config,
|
|
1903
|
+
...explicitConfig,
|
|
1904
|
+
configurable: filteredConfigurable
|
|
1905
|
+
};
|
|
1906
|
+
const isRecursionLimitSetToDefault = retrievedAssistant.config.recursion_limit == null && explicitConfig.recursion_limit === 25;
|
|
1907
|
+
const configsAreDifferent = JSON.stringify(newConfig) !== JSON.stringify(retrievedAssistant.config);
|
|
1908
|
+
const isOnlyRecursionLimitDifferent = isRecursionLimitSetToDefault && JSON.stringify({
|
|
1909
|
+
...newConfig,
|
|
1910
|
+
recursion_limit: null
|
|
1911
|
+
}) === JSON.stringify({
|
|
1912
|
+
...retrievedAssistant.config,
|
|
1913
|
+
recursion_limit: null
|
|
1907
1914
|
});
|
|
1915
|
+
if (configsAreDifferent && !isOnlyRecursionLimitDifferent) {
|
|
1916
|
+
await client.assistants.update(assistantId, {
|
|
1917
|
+
config: newConfig
|
|
1918
|
+
});
|
|
1919
|
+
}
|
|
1908
1920
|
}
|
|
1909
1921
|
if (payload.input && (schemaKeys == null ? void 0 : schemaKeys.input)) {
|
|
1910
1922
|
payload.input = filterObjectBySchemaKeys(payload.input, schemaKeys.input);
|
|
@@ -5060,4 +5072,4 @@ export {
|
|
|
5060
5072
|
getCommonConfig,
|
|
5061
5073
|
copilotRuntimeNodeHttpEndpoint
|
|
5062
5074
|
};
|
|
5063
|
-
//# sourceMappingURL=chunk-
|
|
5075
|
+
//# sourceMappingURL=chunk-JGBGBJGK.mjs.map
|