@superatomai/sdk-node 0.0.65 → 0.0.66
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/README.md +942 -942
- package/dist/index.js +0 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +0 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -6409,7 +6409,6 @@ ${executedToolsText}`);
|
|
|
6409
6409
|
logCollector?.info("Matching components from text response...");
|
|
6410
6410
|
let fullResponseText = "";
|
|
6411
6411
|
let answerComponentExtracted = false;
|
|
6412
|
-
let validatedAnswerComponent = null;
|
|
6413
6412
|
const answerCallback = componentStreamCallback;
|
|
6414
6413
|
const partialCallback = answerCallback ? (chunk) => {
|
|
6415
6414
|
fullResponseText += chunk;
|
|
@@ -6500,10 +6499,6 @@ ${executedToolsText}`);
|
|
|
6500
6499
|
if (currentQuery !== answerQuery) {
|
|
6501
6500
|
answerComponent.props.query = currentQuery;
|
|
6502
6501
|
}
|
|
6503
|
-
validatedAnswerComponent = {
|
|
6504
|
-
componentId: answerComponentData.componentId,
|
|
6505
|
-
validatedQuery: currentQuery
|
|
6506
|
-
};
|
|
6507
6502
|
logger.info(`[${this.getProviderName()}] \u2713 Answer component query validated (attempt ${attempts}) - STREAMING TO FRONTEND NOW`);
|
|
6508
6503
|
logCollector?.info(`\u2713 Answer component query validated - streaming to frontend`);
|
|
6509
6504
|
logger.info(`[${this.getProviderName()}] Calling answerCallback for: ${answerComponent.name}`);
|
|
@@ -6603,10 +6598,6 @@ ${executedToolsText}`);
|
|
|
6603
6598
|
return null;
|
|
6604
6599
|
}
|
|
6605
6600
|
let cleanedProps = { ...mc.props };
|
|
6606
|
-
if (validatedAnswerComponent && mc.componentId === validatedAnswerComponent.componentId) {
|
|
6607
|
-
logger.info(`[${this.getProviderName()}] Using pre-validated query for answer component: ${mc.componentId}`);
|
|
6608
|
-
cleanedProps.query = validatedAnswerComponent.validatedQuery;
|
|
6609
|
-
}
|
|
6610
6601
|
if (cleanedProps.externalTool) {
|
|
6611
6602
|
const toolId = cleanedProps.externalTool.toolId;
|
|
6612
6603
|
const validToolIds = (executedTools || []).map((t) => t.id);
|