@copilotkit/core 2.0.0-rc.39 → 2.0.0-rc.40
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/dist/chat-configuration.d.cts +1 -1
- package/dist/chat-configuration.d.mts +1 -1
- package/dist/generative-ui/index.d.cts +1 -1
- package/dist/generative-ui/index.d.mts +1 -1
- package/dist/index.cjs +5 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +5 -2
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +5 -2
- package/dist/index.umd.js.map +1 -1
- package/dist/{learning-bridge-BUROvNCE.d.mts → learning-bridge-Cqc7VJuV.d.cts} +18 -9
- package/dist/learning-bridge-Cqc7VJuV.d.cts.map +1 -0
- package/dist/{learning-bridge-CmfwxMdH.d.cts → learning-bridge-y2bnVsjp.d.mts} +18 -9
- package/dist/learning-bridge-y2bnVsjp.d.mts.map +1 -0
- package/package.json +16 -3
- package/dist/learning-bridge-BUROvNCE.d.mts.map +0 -1
- package/dist/learning-bridge-CmfwxMdH.d.cts.map +0 -1
package/dist/index.umd.js
CHANGED
|
@@ -9790,10 +9790,13 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
9790
9790
|
//#region src/core/agent-helpers.ts
|
|
9791
9791
|
/**
|
|
9792
9792
|
* The string the agent receives for a context value: a string as-is,
|
|
9793
|
-
* anything else as JSON.
|
|
9793
|
+
* anything else as JSON. A value JSON has no text for (`undefined`, a
|
|
9794
|
+
* function) becomes its `String()` form.
|
|
9794
9795
|
*/
|
|
9795
9796
|
function ɵserializeContextValue(value) {
|
|
9796
|
-
|
|
9797
|
+
if (typeof value === "string") return value;
|
|
9798
|
+
const json = JSON.stringify(value);
|
|
9799
|
+
return json === void 0 ? String(value) : json;
|
|
9797
9800
|
}
|
|
9798
9801
|
/**
|
|
9799
9802
|
* The capabilities an agent declares, filled from the runtime `/info`
|