@burtson-labs/bandit-engine 2.0.67 → 2.0.69
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-5XCDDPTK.mjs → chat-FLMR4EI6.mjs} +2 -2
- package/dist/{chunk-5UD7EJ23.mjs → chunk-6KU3NOZW.mjs} +6 -8
- package/dist/chunk-6KU3NOZW.mjs.map +1 -0
- package/dist/{chunk-RI4LBQ3Q.mjs → chunk-NL4BY4YL.mjs} +2 -2
- package/dist/index.js +5 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/management/management.js +5 -7
- package/dist/management/management.js.map +1 -1
- package/dist/management/management.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-5UD7EJ23.mjs.map +0 -1
- /package/dist/{chat-5XCDDPTK.mjs.map → chat-FLMR4EI6.mjs.map} +0 -0
- /package/dist/{chunk-RI4LBQ3Q.mjs.map → chunk-NL4BY4YL.mjs.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
chat_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6KU3NOZW.mjs";
|
|
4
4
|
import "./chunk-ONQMRE2G.mjs";
|
|
5
5
|
import "./chunk-U633CJBV.mjs";
|
|
6
6
|
import "./chunk-IDZEEONG.mjs";
|
|
@@ -13,4 +13,4 @@ import "./chunk-BJTO5JO5.mjs";
|
|
|
13
13
|
export {
|
|
14
14
|
chat_default as default
|
|
15
15
|
};
|
|
16
|
-
//# sourceMappingURL=chat-
|
|
16
|
+
//# sourceMappingURL=chat-FLMR4EI6.mjs.map
|
|
@@ -3117,7 +3117,7 @@ TOOL USAGE PROTOCOL (conservative approach)
|
|
|
3117
3117
|
- Use your training data and general knowledge confidently for common topics, concepts, and questions.
|
|
3118
3118
|
- Only call tools for SPECIFIC, CURRENT information that requires real-time data or a source you don't already have:
|
|
3119
3119
|
* web_search() - when asked about recent/current events, breaking news, live information (weather, prices, sports scores), or when you need to look up documentation, libraries, APIs, error messages, or verify a specific fact
|
|
3120
|
-
* web_fetch() -
|
|
3120
|
+
* web_fetch() - to read the FULL contents of a specific URL you already have. Reach for this when the user wants to "tell me more", "go deeper", "read/open that article", or asks for details about a specific source, link, or article from an EARLIER answer: take that item's URL from the previous Sources list in this conversation and fetch it, then answer from the page's actual content (not just the prior summary)
|
|
3121
3121
|
* image_generation() - ONLY when explicitly asked to create or generate an image
|
|
3122
3122
|
- For general questions about concepts, definitions, explanations, or how-to topics, use your built-in knowledge WITHOUT calling tools.
|
|
3123
3123
|
- Examples of what NOT to use tools for: "who are you?", "what is React?", "explain machine learning", "how does X work?", general programming questions.
|
|
@@ -3445,12 +3445,8 @@ Using these results together with your own knowledge, answer my original questio
|
|
|
3445
3445
|
options: { num_predict: tokenLimit + 250 }
|
|
3446
3446
|
};
|
|
3447
3447
|
clearFlushTimer();
|
|
3448
|
-
|
|
3449
|
-
|
|
3450
|
-
summaryPreamble ? `${summaryPreamble}
|
|
3451
|
-
|
|
3452
|
-
_Writing the answer\u2026_` : "_Writing the answer\u2026_"
|
|
3453
|
-
);
|
|
3448
|
+
setStreamBuffer("");
|
|
3449
|
+
setIsThinking?.(true);
|
|
3454
3450
|
const summaryText = await new Promise((resolve) => {
|
|
3455
3451
|
let acc = "";
|
|
3456
3452
|
let settled = false;
|
|
@@ -3468,6 +3464,7 @@ _Writing the answer\u2026_` : "_Writing the answer\u2026_"
|
|
|
3468
3464
|
const visible = stripThinking(acc);
|
|
3469
3465
|
latestDisplayMessage = visible;
|
|
3470
3466
|
lastPartialRef.current.text = visible;
|
|
3467
|
+
if (visible) setIsThinking?.(false);
|
|
3471
3468
|
setStreamBuffer(visible);
|
|
3472
3469
|
}
|
|
3473
3470
|
},
|
|
@@ -3489,6 +3486,7 @@ _Writing the answer\u2026_` : "_Writing the answer\u2026_"
|
|
|
3489
3486
|
done("");
|
|
3490
3487
|
}, 3e4);
|
|
3491
3488
|
});
|
|
3489
|
+
setIsThinking?.(false);
|
|
3492
3490
|
if (summaryText.trim()) {
|
|
3493
3491
|
const cleanedSummary = summaryText.replace(
|
|
3494
3492
|
/\n{1,}\s*(?:[*_#>\s]*)(?:sources?|references?|citations?|further reading)(?:\s*:)?\s*(?:[*_]*)\s*\n[\s\S]*$/i,
|
|
@@ -9753,4 +9751,4 @@ var chat_default = Chat;
|
|
|
9753
9751
|
export {
|
|
9754
9752
|
chat_default
|
|
9755
9753
|
};
|
|
9756
|
-
//# sourceMappingURL=chunk-
|
|
9754
|
+
//# sourceMappingURL=chunk-6KU3NOZW.mjs.map
|