@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/dist/index.js CHANGED
@@ -6460,7 +6460,6 @@ ${executedToolsText}`);
6460
6460
  logCollector?.info("Matching components from text response...");
6461
6461
  let fullResponseText = "";
6462
6462
  let answerComponentExtracted = false;
6463
- let validatedAnswerComponent = null;
6464
6463
  const answerCallback = componentStreamCallback;
6465
6464
  const partialCallback = answerCallback ? (chunk) => {
6466
6465
  fullResponseText += chunk;
@@ -6551,10 +6550,6 @@ ${executedToolsText}`);
6551
6550
  if (currentQuery !== answerQuery) {
6552
6551
  answerComponent.props.query = currentQuery;
6553
6552
  }
6554
- validatedAnswerComponent = {
6555
- componentId: answerComponentData.componentId,
6556
- validatedQuery: currentQuery
6557
- };
6558
6553
  logger.info(`[${this.getProviderName()}] \u2713 Answer component query validated (attempt ${attempts}) - STREAMING TO FRONTEND NOW`);
6559
6554
  logCollector?.info(`\u2713 Answer component query validated - streaming to frontend`);
6560
6555
  logger.info(`[${this.getProviderName()}] Calling answerCallback for: ${answerComponent.name}`);
@@ -6654,10 +6649,6 @@ ${executedToolsText}`);
6654
6649
  return null;
6655
6650
  }
6656
6651
  let cleanedProps = { ...mc.props };
6657
- if (validatedAnswerComponent && mc.componentId === validatedAnswerComponent.componentId) {
6658
- logger.info(`[${this.getProviderName()}] Using pre-validated query for answer component: ${mc.componentId}`);
6659
- cleanedProps.query = validatedAnswerComponent.validatedQuery;
6660
- }
6661
6652
  if (cleanedProps.externalTool) {
6662
6653
  const toolId = cleanedProps.externalTool.toolId;
6663
6654
  const validToolIds = (executedTools || []).map((t) => t.id);