@hiper2d/ai-agents 0.13.0 → 0.13.1

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/index.mjs CHANGED
@@ -4572,12 +4572,21 @@ var QwenAgent = class extends AbstractAgent {
4572
4572
  * generation); without it the model thinks at the provider default, and qwen3.8-max's
4573
4573
  * latency then swings 30–100s.
4574
4574
  *
4575
- * `reasoning_effort` is deliberately NOT sent. Probed live 2026-08-30 on qwen3.8-flash and
4576
- * qwen3.8-max: every value low..max is accepted, but reasoning length doesn't track it
4577
- * (max: low → 1,686 reasoning tokens / 44s, high → 226 / 7s, xhigh → 1,102 / 30s), while
4578
- * thinking_budget bounds it reliably (≤340 at 1024). The docs also call the two mutually
4579
- * exclusive on qwen3.8-max. So on Qwen the budget IS the effort knob; `reasoningEffort`
4580
- * on this agent is ignored.
4575
+ * `reasoning_effort` is NOT sent, and the earlier reason recorded here was wrong. The
4576
+ * 2026-08-30 probe concluded "reasoning length doesn't track effort"; it had tested
4577
+ * low/high/max/xhigh, but Qwen only defines low|medium|xhigh and aliases both `high` and
4578
+ * `max` onto `xhigh`. So that probe compared low against xhigh twice and read the noise as
4579
+ * non-monotonicity.
4580
+ *
4581
+ * Re-probed 2026-09-22 with the documented levels, and effort tracks cleanly:
4582
+ * qwen3.8-max budget 1024 → 77 reasoning | low 132 | medium 160 | xhigh 422
4583
+ * qwen3.8-flash budget 1024 → 86 reasoning | low 87 | medium 251 | xhigh 417
4584
+ *
4585
+ * We still send the budget, for a better reason: the two are mutually exclusive (sending
4586
+ * both is a 400), Qwen documents effort as a coarse alias for a budget (low = 4,096,
4587
+ * medium = 16,384, xhigh = 262,144 tokens), and our 1,024 is tighter than the lowest level
4588
+ * it can express. The budget is the finer AND cheaper knob here, so `reasoningEffort` on
4589
+ * this agent stays ignored — deliberately, not because effort is broken.
4581
4590
  */
4582
4591
  thinkingParams() {
4583
4592
  const budget = this.thinkingBudgetTokens;