agent.libx.js 0.93.24 → 0.93.25
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/cli.js +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3741,7 +3741,7 @@ var DuplexAgent = class {
|
|
|
3741
3741
|
const workerToolNames = (o.actOptions?.tools ?? []).map((t) => t.name);
|
|
3742
3742
|
const canSearch = workerToolNames.some((n) => /WebSearch/i.test(n));
|
|
3743
3743
|
const canFetch = workerToolNames.some((n) => /WebFetch/i.test(n));
|
|
3744
|
-
const workerWeb = canSearch ?
|
|
3744
|
+
const workerWeb = canSearch ? `, and it CAN search the web and read web pages \u2014 so when the user gives you something specific to look up ("search for X", "find me\u2026", "what's the latest on\u2026"), route it to Act. But a bare capability QUESTION like "can you search the web?" just gets a short spoken "yes, I can" \u2014 do NOT dispatch and NEVER invent a query the user did not give you` : canFetch ? ", and it can fetch a specific web page URL (but cannot search the web)" : "";
|
|
3745
3745
|
const prompt = VOICE_SYSTEM_PROMPT.replace("{{MEMORY_SLOT}}", memSlot).replace("{{THINK_SLOT}}", thinkSlot).replace("{{WORKER_WEB}}", workerWeb) + (o.voiceStyle === "conversational" ? "\n" + VOICE_STYLE_CONVERSATIONAL : "") + `
|
|
3746
3746
|
Today's date: ${(/* @__PURE__ */ new Date()).toDateString()}.`;
|
|
3747
3747
|
const tools = [
|