@burtson-labs/bandit-engine 2.0.153 → 2.0.154
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-4UZ5QT7B.mjs → chat-E3VSYTAB.mjs} +3 -3
- package/dist/chat-provider.js +23 -1
- package/dist/chat-provider.js.map +1 -1
- package/dist/chat-provider.mjs +2 -2
- package/dist/{chunk-DADHPWB7.mjs → chunk-2X46TMFE.mjs} +3 -3
- package/dist/{chunk-6NYYYKYZ.mjs → chunk-7AMLR6P4.mjs} +3 -2
- package/dist/chunk-7AMLR6P4.mjs.map +1 -0
- package/dist/{chunk-6KOEXQJN.mjs → chunk-IS2LWSBZ.mjs} +24 -2
- package/dist/chunk-IS2LWSBZ.mjs.map +1 -0
- package/dist/{chunk-AJL3JOD6.mjs → chunk-TVPYBRWF.mjs} +2 -2
- package/dist/index.js +25 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/management/management.js +25 -2
- package/dist/management/management.js.map +1 -1
- package/dist/management/management.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunk-6KOEXQJN.mjs.map +0 -1
- package/dist/chunk-6NYYYKYZ.mjs.map +0 -1
- /package/dist/{chat-4UZ5QT7B.mjs.map → chat-E3VSYTAB.mjs.map} +0 -0
- /package/dist/{chunk-DADHPWB7.mjs.map → chunk-2X46TMFE.mjs.map} +0 -0
- /package/dist/{chunk-AJL3JOD6.mjs.map → chunk-TVPYBRWF.mjs.map} +0 -0
package/dist/index.mjs
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
chat_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7AMLR6P4.mjs";
|
|
4
4
|
import {
|
|
5
5
|
chat_provider_default
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-TVPYBRWF.mjs";
|
|
7
7
|
import "./chunk-ONQMRE2G.mjs";
|
|
8
8
|
import {
|
|
9
9
|
management_default,
|
|
10
10
|
useGatewayHealth,
|
|
11
11
|
useGatewayMemory,
|
|
12
12
|
useGatewayModels
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-2X46TMFE.mjs";
|
|
14
14
|
import "./chunk-2HGBMNX4.mjs";
|
|
15
15
|
import "./chunk-B2TJZM4Z.mjs";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-IS2LWSBZ.mjs";
|
|
17
17
|
import {
|
|
18
18
|
defineCustomElement
|
|
19
19
|
} from "./chunk-IXIM7BNO.mjs";
|
|
@@ -19570,7 +19570,7 @@ var init_mcpServersService = __esm({
|
|
|
19570
19570
|
});
|
|
19571
19571
|
|
|
19572
19572
|
// src/store/mcpToolsStore.ts
|
|
19573
|
-
var import_zustand14, sanitizeMcpToolName, healthCheckTool, webSearchTool, webFetchTool, createFileTool, defaultTools, useMCPToolsStore;
|
|
19573
|
+
var import_zustand14, sanitizeMcpToolName, healthCheckTool, webSearchTool, webFetchTool, imageGenerationTool, createFileTool, defaultTools, useMCPToolsStore;
|
|
19574
19574
|
var init_mcpToolsStore = __esm({
|
|
19575
19575
|
"src/store/mcpToolsStore.ts"() {
|
|
19576
19576
|
"use strict";
|
|
@@ -19642,6 +19642,28 @@ var init_mcpToolsStore = __esm({
|
|
|
19642
19642
|
method: "GET",
|
|
19643
19643
|
isBuiltIn: true
|
|
19644
19644
|
};
|
|
19645
|
+
imageGenerationTool = {
|
|
19646
|
+
id: "image-generation",
|
|
19647
|
+
name: "image_generation",
|
|
19648
|
+
description: "Generate an image from a text prompt on the Burtson Labs GPU",
|
|
19649
|
+
enabled: true,
|
|
19650
|
+
type: "function",
|
|
19651
|
+
function: {
|
|
19652
|
+
name: "image_generation",
|
|
19653
|
+
description: "Generate an image from a text prompt on the Burtson Labs GPU",
|
|
19654
|
+
parameters: {
|
|
19655
|
+
type: "object",
|
|
19656
|
+
properties: {
|
|
19657
|
+
prompt: { type: "string", description: "Text description of the image to generate" },
|
|
19658
|
+
size: { type: "string", enum: ["1024x1024", "1344x768", "768x1344"], description: "Canvas: square, landscape, or portrait" }
|
|
19659
|
+
},
|
|
19660
|
+
required: ["prompt"]
|
|
19661
|
+
}
|
|
19662
|
+
},
|
|
19663
|
+
endpoint: "/mcp/generate-image",
|
|
19664
|
+
method: "POST",
|
|
19665
|
+
isBuiltIn: true
|
|
19666
|
+
};
|
|
19645
19667
|
createFileTool = {
|
|
19646
19668
|
id: "create-file",
|
|
19647
19669
|
name: "create_file",
|
|
@@ -19669,7 +19691,7 @@ var init_mcpToolsStore = __esm({
|
|
|
19669
19691
|
method: "POST",
|
|
19670
19692
|
isBuiltIn: true
|
|
19671
19693
|
};
|
|
19672
|
-
defaultTools = [healthCheckTool, webSearchTool, webFetchTool, createFileTool];
|
|
19694
|
+
defaultTools = [healthCheckTool, webSearchTool, webFetchTool, imageGenerationTool, createFileTool];
|
|
19673
19695
|
useMCPToolsStore = (0, import_zustand14.create)((set, get) => ({
|
|
19674
19696
|
tools: defaultTools,
|
|
19675
19697
|
isLoaded: false,
|
|
@@ -24162,6 +24184,7 @@ TOOL USAGE PROTOCOL (conservative approach)
|
|
|
24162
24184
|
- Only call tools for SPECIFIC, CURRENT information that requires real-time data or a source you don't already have:
|
|
24163
24185
|
* 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
|
|
24164
24186
|
* 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)
|
|
24187
|
+
* image_generation() - ONLY when explicitly asked to create or generate an image. Runs on Burtson's local GPU; it can take a couple of minutes when the GPU is cold, and is limited to admin and partner accounts
|
|
24165
24188
|
* create_file({"content": "...", "filename": "report.docx", "format": "docx"}) - when the user asks for a downloadable FILE (a document, spreadsheet, slides, markdown, code, etc.) or to "export"/"download"/"save" something. Formats: md, txt, csv, json, html, xml, yaml, docx, pptx. PDF is NOT a supported format \u2014 if the user asks for a PDF, create a docx instead. For docx/pptx write well-structured Markdown (use "## " headings to start each slide for pptx). It returns a temporary download link \u2014 ALWAYS tell the user the file expires (~1 hour). If it is unclear whether they want it shown inline vs. as a downloadable file, use ask_user first.
|
|
24166
24189
|
* ask_user({"questions": [{"question": "...", "header": "Format", "options": [{"label": "Inline (Recommended)"}, {"label": "Download a file"}]}]}) - when the request is AMBIGUOUS or missing a detail you need to do a good job (unclear scope, audience, format, tone, which of several interpretations they meant), or you are blocked on a decision that is the user's to make and cannot resolve from the request, context, or sensible defaults. Renders clickable options the user answers in one step \u2014 ALWAYS prefer this over asking a clarifying question in prose and ending your turn. Give 1-4 questions, each with 2-4 short options; if one is clearly best, list it first and append " (Recommended)". The user may also type their own answer; act on it directly. Don't overuse it \u2014 when a sensible default exists, take it and note the assumption instead.
|
|
24167
24190
|
- For general questions about concepts, definitions, explanations, or how-to topics, use your built-in knowledge WITHOUT calling tools.
|