@botpress/runtime 1.7.16 → 1.7.18
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/internal.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.18", adk: "1.7.18", sdk: "4.19.0", llmz: "0.0.33", zai: "2.5.0", cognitive: "0.2.0" };
|
|
52
52
|
}
|
|
53
53
|
});
|
|
54
54
|
|
|
@@ -40416,6 +40416,7 @@ If the question is not related to the knowledge bases, do NOT use this tool.`.tr
|
|
|
40416
40416
|
Autonomous2.createKnowledgeSearchTool = createKnowledgeSearchTool;
|
|
40417
40417
|
function createExecute(options) {
|
|
40418
40418
|
return async (props) => {
|
|
40419
|
+
const mode = props.mode || options.mode;
|
|
40419
40420
|
const cognitive = context.get("cognitive");
|
|
40420
40421
|
if (!cognitive) {
|
|
40421
40422
|
throw new Error("Cognitive client is not available in this context. Make sure to run in a cognitive context.");
|
|
@@ -40427,7 +40428,7 @@ If the question is not related to the knowledge bases, do NOT use this tool.`.tr
|
|
|
40427
40428
|
{
|
|
40428
40429
|
"autonomous.max_loops": maxLoops,
|
|
40429
40430
|
"autonomous.message_types": ["text", "image"],
|
|
40430
|
-
"autonomous.mode":
|
|
40431
|
+
"autonomous.mode": mode
|
|
40431
40432
|
},
|
|
40432
40433
|
async (execSpan) => {
|
|
40433
40434
|
const joinedSignal = createJoinedAbortSignal([props.signal, options.interruption]);
|
|
@@ -40446,8 +40447,8 @@ If the question is not related to the knowledge bases, do NOT use this tool.`.tr
|
|
|
40446
40447
|
iterationSpan?.ctx ?? execSpan.ctx,
|
|
40447
40448
|
() => context.run(_originalCtx, () => fn(...props2))
|
|
40448
40449
|
);
|
|
40449
|
-
const _chat =
|
|
40450
|
-
if (
|
|
40450
|
+
const _chat = mode === "chat" ? context.get("chat") : void 0;
|
|
40451
|
+
if (mode === "chat" && !_chat) {
|
|
40451
40452
|
throw new Error("Chat is not available in this context. Make sure to run in chat mode with a chat context.");
|
|
40452
40453
|
}
|
|
40453
40454
|
const chat = _chat ? {
|