@livx.cc/agentx 0.99.2 → 0.99.3

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.js CHANGED
@@ -3528,6 +3528,7 @@ var Agent = class _Agent {
3528
3528
  let res;
3529
3529
  const sent = this.trimContext();
3530
3530
  const frag = reasoningToChatFragment(o.model, o.reasoning);
3531
+ const sentTools = o.model.startsWith("claude-code/") ? [] : wireTools;
3531
3532
  const isCursorWithTools = o.model.startsWith("cursor/") && wireTools.length > 0;
3532
3533
  const cursorPo = isCursorWithTools ? {
3533
3534
  toolExecutor: async (name, args) => {
@@ -3545,10 +3546,10 @@ var Agent = class _Agent {
3545
3546
  for (let attempt = 0; ; attempt++) {
3546
3547
  try {
3547
3548
  if (useStream) {
3548
- const r = await o.ai.chat({ model: o.model, messages: sent, tools: wireTools, stream: true, signal: o.signal, ...o.toolChoice ? { toolChoice: o.toolChoice } : {}, ...reasonOpts });
3549
+ const r = await o.ai.chat({ model: o.model, messages: sent, tools: sentTools, stream: true, signal: o.signal, ...o.toolChoice ? { toolChoice: o.toolChoice } : {}, ...reasonOpts });
3549
3550
  res = await this.consumeStream(r);
3550
3551
  } else {
3551
- const r = await o.ai.chat({ model: o.model, messages: sent, tools: wireTools, stream: false, signal: o.signal, ...o.toolChoice ? { toolChoice: o.toolChoice } : {}, ...reasonOpts });
3552
+ const r = await o.ai.chat({ model: o.model, messages: sent, tools: sentTools, stream: false, signal: o.signal, ...o.toolChoice ? { toolChoice: o.toolChoice } : {}, ...reasonOpts });
3552
3553
  res = r;
3553
3554
  }
3554
3555
  break;