@melaya/runner 1.0.117 → 1.0.118

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.
@@ -434,11 +434,21 @@ def _build_agent():
434
434
  if phone_enabled else ""
435
435
  )
436
436
  connector_rule = (
437
- "- You also have CONNECTOR tools the user enabled (" + ", ".join(connector_services) + "). "
438
- "Their tools are not all loaded upfront call search_tools(query=...) to find the "
439
- "right one for the user's question, then activate_tool(name=...) to load it, then call "
440
- "it. Prefer specific tools (e.g. odoo_sale_order_list) over generic ones. Never invent "
441
- "data read it from the connector.\n"
437
+ "- ACTIVE CONNECTORS for this turn: " + ", ".join(connector_services) + ". "
438
+ "These are the ONLY external systems available RIGHT NOW. This overrides the "
439
+ "conversation history: if earlier in this chat you used a DIFFERENT connector "
440
+ "(another ERP/app the user has since DESELECTED), it is NO LONGER available - do "
441
+ "NOT search for or call its tools, and do NOT reuse tool names or API verbs from "
442
+ "that system (e.g. do not look for another ERP's model/method names here).\n"
443
+ "- Their tools are not all loaded upfront: call search_tools(query=...) with PLAIN "
444
+ "BUSINESS keywords (\"sales orders\", \"customers\", \"unpaid invoices\", \"headcount\") "
445
+ "- never another system's internal API names - then activate_tool(name=...) ONCE, then "
446
+ "call it. The results ARE the available tools: pick the closest match and USE it; do "
447
+ "NOT keep re-searching for a tool from a different system. If two searches for the same "
448
+ "need return the same kind of tool, STOP and activate it.\n"
449
+ "- Aggregations (top-N, group-by, totals, a chart) usually have NO dedicated tool: "
450
+ "activate the connector's GENERIC list/query tool, read the rows, and compute the "
451
+ "aggregation yourself. Never invent data - read it from the connector.\n"
442
452
  if connector_services else ""
443
453
  )
444
454
  # Core primitives are ALWAYS in the lazy pool now, so the model must be told
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@melaya/runner",
3
- "version": "1.0.117",
3
+ "version": "1.0.118",
4
4
  "description": "Run Melaya AI pipelines locally with your own LM Studio or Ollama models",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,