reactbridge-sdk 0.2.19 → 0.2.20
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
|
@@ -550,7 +550,8 @@ function useReactBridge({ onIntentDetected, currentContext, onError, onSpeechSta
|
|
|
550
550
|
role: "assistant",
|
|
551
551
|
content: resultResponse.message,
|
|
552
552
|
timestamp: new Date(),
|
|
553
|
-
toolCall: resultResponse.toolCall
|
|
553
|
+
toolCall: resultResponse.toolCall
|
|
554
|
+
? Object.assign(Object.assign({}, resultResponse.toolCall), { isSequential: toolCallCount > 1 }) : undefined,
|
|
554
555
|
};
|
|
555
556
|
setMessages((prev) => [...prev, finalMessage]);
|
|
556
557
|
// Trigger TTS for final response only if input came from voice (first iteration only)
|