@copilotkit/runtime 0.0.0-feat-support-custom-markdown-20250428111750 → 0.0.0-feat-enable-setting-recursion-limit-20250428151824
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 +4 -2
- package/__snapshots__/schema/schema.graphql +1 -1
- package/dist/{chunk-W7BXDLO4.mjs → chunk-6N7YZABI.mjs} +2 -2
- package/dist/{chunk-75TKODO4.mjs → chunk-RESUQNFX.mjs} +2 -2
- package/dist/{chunk-JXLF6SJU.mjs → chunk-UXFLLVRF.mjs} +2 -2
- package/dist/{chunk-4KLOSPKW.mjs → chunk-UYOLJP2E.mjs} +17 -12
- package/dist/chunk-UYOLJP2E.mjs.map +1 -0
- package/dist/{groq-adapter-53d3fa48.d.ts → groq-adapter-4848f8e8.d.ts} +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +16 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/{langserve-c9a20fe9.d.ts → langserve-4a5c9217.d.ts} +1 -1
- package/dist/lib/index.d.ts +3 -3
- package/dist/lib/index.js +16 -11
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/index.mjs +4 -4
- package/dist/lib/integrations/index.d.ts +3 -3
- package/dist/lib/integrations/index.js +2 -2
- package/dist/lib/integrations/index.js.map +1 -1
- package/dist/lib/integrations/index.mjs +4 -4
- package/dist/lib/integrations/nest/index.d.ts +2 -2
- 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 +2 -2
- package/dist/lib/integrations/node-express/index.d.ts +2 -2
- 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 +2 -2
- package/dist/lib/integrations/node-http/index.d.ts +2 -2
- 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 +1 -1
- package/dist/service-adapters/index.d.ts +3 -3
- package/dist/{shared-df478d34.d.ts → shared-a7b30781.d.ts} +1 -1
- package/package.json +2 -2
- package/src/graphql/inputs/agent-state.input.ts +1 -1
- package/src/lib/runtime/remote-action-constructors.ts +6 -6
- package/src/lib/runtime/remote-lg-action.ts +16 -7
- package/dist/chunk-4KLOSPKW.mjs.map +0 -1
- /package/dist/{chunk-W7BXDLO4.mjs.map → chunk-6N7YZABI.mjs.map} +0 -0
- /package/dist/{chunk-75TKODO4.mjs.map → chunk-RESUQNFX.mjs.map} +0 -0
- /package/dist/{chunk-JXLF6SJU.mjs.map → chunk-UXFLLVRF.mjs.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
# @copilotkit/runtime
|
|
2
2
|
|
|
3
|
-
## 0.0.0-feat-
|
|
3
|
+
## 0.0.0-feat-enable-setting-recursion-limit-20250428151824
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
-
-
|
|
7
|
+
- 1d2ae5a: - feat: enable setting langgraph config from ui
|
|
8
|
+
- chore: document usage of new config
|
|
9
|
+
- @copilotkit/shared@0.0.0-feat-enable-setting-recursion-limit-20250428151824
|
|
8
10
|
|
|
9
11
|
## 1.8.9
|
|
10
12
|
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
copilotRuntimeNodeHttpEndpoint,
|
|
3
3
|
getRuntimeInstanceTelemetryInfo,
|
|
4
4
|
telemetry_client_default
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-UYOLJP2E.mjs";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-FHD4JECV.mjs";
|
|
@@ -22,4 +22,4 @@ __name(copilotRuntimeNestEndpoint, "copilotRuntimeNestEndpoint");
|
|
|
22
22
|
export {
|
|
23
23
|
copilotRuntimeNestEndpoint
|
|
24
24
|
};
|
|
25
|
-
//# sourceMappingURL=chunk-
|
|
25
|
+
//# sourceMappingURL=chunk-6N7YZABI.mjs.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
copilotRuntimeNodeHttpEndpoint,
|
|
3
3
|
getRuntimeInstanceTelemetryInfo,
|
|
4
4
|
telemetry_client_default
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-UYOLJP2E.mjs";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-FHD4JECV.mjs";
|
|
@@ -22,4 +22,4 @@ __name(copilotRuntimeNodeExpressEndpoint, "copilotRuntimeNodeExpressEndpoint");
|
|
|
22
22
|
export {
|
|
23
23
|
copilotRuntimeNodeExpressEndpoint
|
|
24
24
|
};
|
|
25
|
-
//# sourceMappingURL=chunk-
|
|
25
|
+
//# sourceMappingURL=chunk-RESUQNFX.mjs.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
getCommonConfig,
|
|
3
3
|
getRuntimeInstanceTelemetryInfo,
|
|
4
4
|
telemetry_client_default
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-UYOLJP2E.mjs";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-FHD4JECV.mjs";
|
|
@@ -77,4 +77,4 @@ export {
|
|
|
77
77
|
config,
|
|
78
78
|
copilotRuntimeNextJSPagesRouterEndpoint
|
|
79
79
|
};
|
|
80
|
-
//# sourceMappingURL=chunk-
|
|
80
|
+
//# sourceMappingURL=chunk-UXFLLVRF.mjs.map
|
|
@@ -709,7 +709,7 @@ __name(_ts_metadata8, "_ts_metadata");
|
|
|
709
709
|
var AgentStateInput = class {
|
|
710
710
|
agentName;
|
|
711
711
|
state;
|
|
712
|
-
|
|
712
|
+
config;
|
|
713
713
|
};
|
|
714
714
|
__name(AgentStateInput, "AgentStateInput");
|
|
715
715
|
_ts_decorate8([
|
|
@@ -725,7 +725,7 @@ _ts_decorate8([
|
|
|
725
725
|
nullable: true
|
|
726
726
|
}),
|
|
727
727
|
_ts_metadata8("design:type", String)
|
|
728
|
-
], AgentStateInput.prototype, "
|
|
728
|
+
], AgentStateInput.prototype, "config", void 0);
|
|
729
729
|
AgentStateInput = _ts_decorate8([
|
|
730
730
|
InputType8()
|
|
731
731
|
], AgentStateInput);
|
|
@@ -1796,7 +1796,7 @@ async function execute(args) {
|
|
|
1796
1796
|
__name(execute, "execute");
|
|
1797
1797
|
async function streamEvents(controller, args) {
|
|
1798
1798
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
|
1799
|
-
const { deploymentUrl, langsmithApiKey, threadId: argsInitialThreadId, agent, nodeName: initialNodeName, state: initialState,
|
|
1799
|
+
const { deploymentUrl, langsmithApiKey, threadId: argsInitialThreadId, agent, nodeName: initialNodeName, state: initialState, config: explicitConfig, messages, actions, logger: logger2, properties, metaEvents } = args;
|
|
1800
1800
|
let nodeName = initialNodeName;
|
|
1801
1801
|
let state = initialState;
|
|
1802
1802
|
const { name, assistantId: initialAssistantId } = agent;
|
|
@@ -1893,10 +1893,15 @@ async function streamEvents(controller, args) {
|
|
|
1893
1893
|
const graphInfo = await client.assistants.getGraph(assistantId);
|
|
1894
1894
|
const graphSchema = await client.assistants.getSchemas(assistantId);
|
|
1895
1895
|
const schemaKeys = getSchemaKeys(graphSchema);
|
|
1896
|
-
if (
|
|
1897
|
-
|
|
1896
|
+
if (explicitConfig) {
|
|
1897
|
+
let filteredConfigurable = retrievedAssistant.config.configurable ?? {};
|
|
1898
|
+
if (explicitConfig.configurable) {
|
|
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
|
+
}
|
|
1898
1901
|
await client.assistants.update(assistantId, {
|
|
1899
1902
|
config: {
|
|
1903
|
+
...retrievedAssistant.config,
|
|
1904
|
+
...explicitConfig,
|
|
1900
1905
|
configurable: filteredConfigurable
|
|
1901
1906
|
}
|
|
1902
1907
|
});
|
|
@@ -2440,12 +2445,12 @@ function constructLGCRemoteAction({ endpoint, graphqlContext, logger: logger2, m
|
|
|
2440
2445
|
hashedLgcKey: createHash2("sha256").update(endpoint.langsmithApiKey).digest("hex")
|
|
2441
2446
|
});
|
|
2442
2447
|
let state = {};
|
|
2443
|
-
let
|
|
2448
|
+
let config = {};
|
|
2444
2449
|
if (agentStates) {
|
|
2445
2450
|
const jsonState = agentStates.find((state2) => state2.agentName === name);
|
|
2446
2451
|
if (jsonState) {
|
|
2447
2452
|
state = parseJson2(jsonState.state, {});
|
|
2448
|
-
|
|
2453
|
+
config = parseJson2(jsonState.config, {});
|
|
2449
2454
|
}
|
|
2450
2455
|
}
|
|
2451
2456
|
try {
|
|
@@ -2463,7 +2468,7 @@ function constructLGCRemoteAction({ endpoint, graphqlContext, logger: logger2, m
|
|
|
2463
2468
|
...additionalMessages
|
|
2464
2469
|
],
|
|
2465
2470
|
state,
|
|
2466
|
-
|
|
2471
|
+
config,
|
|
2467
2472
|
properties: graphqlContext.properties,
|
|
2468
2473
|
actions: tryMap(actionInputsWithoutAgents, (action) => ({
|
|
2469
2474
|
name: action.name,
|
|
@@ -2575,12 +2580,12 @@ function constructRemoteActions({ json, url, onBeforeRequest, graphqlContext, lo
|
|
|
2575
2580
|
agentsAmount: json["agents"].length
|
|
2576
2581
|
});
|
|
2577
2582
|
let state = {};
|
|
2578
|
-
let
|
|
2583
|
+
let config = {};
|
|
2579
2584
|
if (agentStates) {
|
|
2580
2585
|
const jsonState = agentStates.find((state2) => state2.agentName === name);
|
|
2581
2586
|
if (jsonState) {
|
|
2582
2587
|
state = parseJson2(jsonState.state, {});
|
|
2583
|
-
|
|
2588
|
+
config = parseJson2(jsonState.config, {});
|
|
2584
2589
|
}
|
|
2585
2590
|
}
|
|
2586
2591
|
const fetchUrl = `${url}/agents/execute`;
|
|
@@ -2597,7 +2602,7 @@ function constructRemoteActions({ json, url, onBeforeRequest, graphqlContext, lo
|
|
|
2597
2602
|
...additionalMessages
|
|
2598
2603
|
],
|
|
2599
2604
|
state,
|
|
2600
|
-
|
|
2605
|
+
config,
|
|
2601
2606
|
properties: graphqlContext.properties,
|
|
2602
2607
|
actions: tryMap(actionInputsWithoutAgents, (action) => ({
|
|
2603
2608
|
name: action.name,
|
|
@@ -5055,4 +5060,4 @@ export {
|
|
|
5055
5060
|
getCommonConfig,
|
|
5056
5061
|
copilotRuntimeNodeHttpEndpoint
|
|
5057
5062
|
};
|
|
5058
|
-
//# sourceMappingURL=chunk-
|
|
5063
|
+
//# sourceMappingURL=chunk-UYOLJP2E.mjs.map
|