@botpress/runtime 1.7.15 → 1.7.17
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/definition.js +5 -4
- package/dist/definition.js.map +2 -2
- package/dist/internal.js +5 -4
- package/dist/internal.js.map +2 -2
- package/dist/library.js +5 -4
- package/dist/library.js.map +2 -2
- package/dist/primitives/conversation.d.ts +3 -3
- package/dist/primitives/conversation.d.ts.map +1 -1
- package/dist/primitives/workflow.d.ts +1 -1
- package/dist/primitives/workflow.d.ts.map +1 -1
- package/dist/runtime/autonomous.d.ts +12 -6
- package/dist/runtime/autonomous.d.ts.map +1 -1
- package/dist/runtime.js +5 -4
- package/dist/runtime.js.map +2 -2
- package/package.json +3 -3
package/dist/definition.js
CHANGED
|
@@ -48,7 +48,7 @@ var init_define_BUILD = __esm({
|
|
|
48
48
|
var define_PACKAGE_VERSIONS_default;
|
|
49
49
|
var init_define_PACKAGE_VERSIONS = __esm({
|
|
50
50
|
"<define:__PACKAGE_VERSIONS__>"() {
|
|
51
|
-
define_PACKAGE_VERSIONS_default = { runtime: "1.7.
|
|
51
|
+
define_PACKAGE_VERSIONS_default = { runtime: "1.7.17", adk: "1.7.17", sdk: "4.19.0", llmz: "0.0.33", zai: "2.5.0", cognitive: "0.2.0" };
|
|
52
52
|
}
|
|
53
53
|
});
|
|
54
54
|
|
|
@@ -39779,6 +39779,7 @@ If the question is not related to the knowledge bases, do NOT use this tool.`.tr
|
|
|
39779
39779
|
Autonomous2.createKnowledgeSearchTool = createKnowledgeSearchTool;
|
|
39780
39780
|
function createExecute(options) {
|
|
39781
39781
|
return async (props) => {
|
|
39782
|
+
const mode = props.mode || options.mode;
|
|
39782
39783
|
const cognitive = context2.get("cognitive");
|
|
39783
39784
|
if (!cognitive) {
|
|
39784
39785
|
throw new Error("Cognitive client is not available in this context. Make sure to run in a cognitive context.");
|
|
@@ -39790,7 +39791,7 @@ If the question is not related to the knowledge bases, do NOT use this tool.`.tr
|
|
|
39790
39791
|
{
|
|
39791
39792
|
"autonomous.max_loops": maxLoops,
|
|
39792
39793
|
"autonomous.message_types": ["text", "image"],
|
|
39793
|
-
"autonomous.mode":
|
|
39794
|
+
"autonomous.mode": mode
|
|
39794
39795
|
},
|
|
39795
39796
|
async (execSpan) => {
|
|
39796
39797
|
const joinedSignal = createJoinedAbortSignal([props.signal, options.interruption]);
|
|
@@ -39809,8 +39810,8 @@ If the question is not related to the knowledge bases, do NOT use this tool.`.tr
|
|
|
39809
39810
|
iterationSpan?.ctx ?? execSpan.ctx,
|
|
39810
39811
|
() => context2.run(_originalCtx, () => fn(...props2))
|
|
39811
39812
|
);
|
|
39812
|
-
const _chat =
|
|
39813
|
-
if (
|
|
39813
|
+
const _chat = mode === "chat" ? context2.get("chat") : void 0;
|
|
39814
|
+
if (mode === "chat" && !_chat) {
|
|
39814
39815
|
throw new Error("Chat is not available in this context. Make sure to run in chat mode with a chat context.");
|
|
39815
39816
|
}
|
|
39816
39817
|
const chat = _chat ? {
|