@ai-sdk-tool/parser 3.0.0-canary.2 → 3.0.0-canary.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/{chunk-LB5ALTRD.js → chunk-2B2YNKXY.js} +21 -1
- package/dist/chunk-2B2YNKXY.js.map +1 -0
- package/dist/community.cjs +20 -0
- package/dist/community.cjs.map +1 -1
- package/dist/community.js +1 -1
- package/dist/index.cjs +20 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +6 -6
- package/dist/chunk-LB5ALTRD.js.map +0 -1
package/dist/community.cjs
CHANGED
|
@@ -2255,6 +2255,26 @@ var morphXmlProtocol = (protocolOptions) => {
|
|
|
2255
2255
|
seen.add(key);
|
|
2256
2256
|
return true;
|
|
2257
2257
|
}).sort((a, b) => a.startIndex - b.startIndex);
|
|
2258
|
+
if (process.env.DEBUG_PARSER_OUTPUT === "true") {
|
|
2259
|
+
console.log("\n=== PARSER DEBUG ===");
|
|
2260
|
+
console.log(`Available tools: ${toolNames.join(", ")}`);
|
|
2261
|
+
console.log(`Full text length: ${text.length}`);
|
|
2262
|
+
console.log(`Full text:
|
|
2263
|
+
${text}
|
|
2264
|
+
`);
|
|
2265
|
+
console.log(`Tool calls found: ${toolCalls.length}`);
|
|
2266
|
+
for (let i = 0; i < toolCalls.length; i++) {
|
|
2267
|
+
const tc = toolCalls[i];
|
|
2268
|
+
console.log(`
|
|
2269
|
+
[Tool Call ${i + 1}] ${tc.toolName}`);
|
|
2270
|
+
console.log(`Position: ${tc.startIndex} - ${tc.endIndex}`);
|
|
2271
|
+
console.log(`Segment:
|
|
2272
|
+
${tc.segment}`);
|
|
2273
|
+
console.log(`Content:
|
|
2274
|
+
${tc.content}`);
|
|
2275
|
+
}
|
|
2276
|
+
console.log("===================\n");
|
|
2277
|
+
}
|
|
2258
2278
|
for (const toolCall of toolCalls) {
|
|
2259
2279
|
currentIndex = processTextBeforeToolCall(
|
|
2260
2280
|
text,
|