@alquimia-ai/ui 1.3.1 → 1.3.2

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.
@@ -19,6 +19,9 @@ function blobToBase64(blob) {
19
19
  reader.readAsDataURL(blob);
20
20
  });
21
21
  }
22
+ function hasToolResult(data) {
23
+ return data?.tool_output?.result && Object.keys(data.tool_output.result).length > 0;
24
+ }
22
25
 
23
26
  // src/components/organisms/whisper.tsx
24
27
  import {
@@ -2692,7 +2695,7 @@ var AssistantMessageArea = React34.forwardRef(
2692
2695
  children: "We have an internal error, please try again later."
2693
2696
  }
2694
2697
  ),
2695
- message.tooler && message.tooler?.tool_output && !message.error_code && toolFactory?.createTool(message.tooler?.tool_summary?.name, message.tooler?.tool_output?.result),
2698
+ message.tooler && !message.error_code && hasToolResult(message.tooler) && toolFactory?.createTool(message.tooler?.tool_summary?.name, message.tooler?.tool_output?.result),
2696
2699
  message.content && /* @__PURE__ */ jsx43(
2697
2700
  CallOutResponse,
2698
2701
  {