@burtson-labs/bandit-engine 2.0.66 → 2.0.68
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-IWRBVOVP.mjs → chat-5QSGMPHN.mjs} +2 -2
- package/dist/{chunk-ZYQJVZK2.mjs → chunk-EHBZ4D7R.mjs} +8 -4
- package/dist/chunk-EHBZ4D7R.mjs.map +1 -0
- package/dist/{chunk-EM2DB6NP.mjs → chunk-HUUWQOBF.mjs} +2 -2
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/management/management.js +7 -3
- package/dist/management/management.js.map +1 -1
- package/dist/management/management.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-ZYQJVZK2.mjs.map +0 -1
- /package/dist/{chat-IWRBVOVP.mjs.map → chat-5QSGMPHN.mjs.map} +0 -0
- /package/dist/{chunk-EM2DB6NP.mjs.map → chunk-HUUWQOBF.mjs.map} +0 -0
|
@@ -9503,7 +9503,7 @@ var MCPToolsTabV2_default = MCPToolsTabV2;
|
|
|
9503
9503
|
|
|
9504
9504
|
// src/management/management.tsx
|
|
9505
9505
|
import { jsx as jsx13, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
9506
|
-
var preloadChatPage = () => import("./chat-
|
|
9506
|
+
var preloadChatPage = () => import("./chat-5QSGMPHN.mjs");
|
|
9507
9507
|
var buildCapabilitiesUrl = (gatewayApiUrl) => {
|
|
9508
9508
|
const trimmed = gatewayApiUrl.replace(/\/$/, "");
|
|
9509
9509
|
if (trimmed.endsWith("/api")) {
|
|
@@ -10848,4 +10848,4 @@ export {
|
|
|
10848
10848
|
useGatewayMemory,
|
|
10849
10849
|
management_default
|
|
10850
10850
|
};
|
|
10851
|
-
//# sourceMappingURL=chunk-
|
|
10851
|
+
//# sourceMappingURL=chunk-HUUWQOBF.mjs.map
|
package/dist/index.js
CHANGED
|
@@ -20758,7 +20758,7 @@ TOOL USAGE PROTOCOL (conservative approach)
|
|
|
20758
20758
|
- Use your training data and general knowledge confidently for common topics, concepts, and questions.
|
|
20759
20759
|
- Only call tools for SPECIFIC, CURRENT information that requires real-time data or a source you don't already have:
|
|
20760
20760
|
* 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
|
|
20761
|
-
* web_fetch() -
|
|
20761
|
+
* 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)
|
|
20762
20762
|
* image_generation() - ONLY when explicitly asked to create or generate an image
|
|
20763
20763
|
- For general questions about concepts, definitions, explanations, or how-to topics, use your built-in knowledge WITHOUT calling tools.
|
|
20764
20764
|
- Examples of what NOT to use tools for: "who are you?", "what is React?", "explain machine learning", "how does X work?", general programming questions.
|
|
@@ -21076,7 +21076,7 @@ ${r.output}`).join("\n\n");
|
|
|
21076
21076
|
|
|
21077
21077
|
${toolResultsText}
|
|
21078
21078
|
|
|
21079
|
-
Using these results together with your own knowledge, answer my original question concisely and in a natural, well-formatted way.
|
|
21079
|
+
Using these results together with your own knowledge, answer my original question concisely and in a natural, well-formatted way. Do NOT add a "Sources", "References", or "Citations" list of any kind \u2014 not names and not URLs. A clean, clickable Sources section is appended automatically below your answer, so any list you add just duplicates it. (Mentioning a source naturally inside a sentence is fine; a trailing list is not.) Do NOT output tool_code or call any tools again.`
|
|
21080
21080
|
}
|
|
21081
21081
|
];
|
|
21082
21082
|
const summaryRequest = {
|
|
@@ -21131,6 +21131,10 @@ _Writing the answer\u2026_` : "_Writing the answer\u2026_"
|
|
|
21131
21131
|
}, 3e4);
|
|
21132
21132
|
});
|
|
21133
21133
|
if (summaryText.trim()) {
|
|
21134
|
+
const cleanedSummary = summaryText.replace(
|
|
21135
|
+
/\n{1,}\s*(?:[*_#>\s]*)(?:sources?|references?|citations?|further reading)(?:\s*:)?\s*(?:[*_]*)\s*\n[\s\S]*$/i,
|
|
21136
|
+
""
|
|
21137
|
+
).trimEnd();
|
|
21134
21138
|
const sourcesMd = collectedSources.length ? `
|
|
21135
21139
|
|
|
21136
21140
|
**Sources**
|
|
@@ -21142,7 +21146,7 @@ ${collectedSources.slice(0, 6).map((s) => {
|
|
|
21142
21146
|
}
|
|
21143
21147
|
return `- [${s.title || domain}](${s.url}) \u2014 ${domain}`;
|
|
21144
21148
|
}).join("\n")}` : "";
|
|
21145
|
-
enhancedMessage =
|
|
21149
|
+
enhancedMessage = cleanedSummary + sourcesMd + (inlineImageBlocks.length ? `
|
|
21146
21150
|
|
|
21147
21151
|
${inlineImageBlocks.join("\n\n")}` : "");
|
|
21148
21152
|
}
|