@vegintech/langchain-react-agent 0.0.33 → 0.0.34

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.
Files changed (2) hide show
  1. package/dist/index.mjs +4 -0
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -567,6 +567,10 @@ function useToolExecution({ tools, toolCalls, isLoading = false, onExecutionChan
567
567
  if (!completedToolResults || completedToolResults.size === 0) return;
568
568
  completedToolResults.forEach((result, callId) => {
569
569
  if (notifiedCompletedRef.current.has(callId)) return;
570
+ if (executedCallsRef.current.has(callId)) {
571
+ notifiedCompletedRef.current.add(callId);
572
+ return;
573
+ }
570
574
  notifiedCompletedRef.current.add(callId);
571
575
  executedCallsRef.current.add(callId);
572
576
  const call = toolCalls.find((c) => c.id === callId);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vegintech/langchain-react-agent",
3
- "version": "0.0.33",
3
+ "version": "0.0.34",
4
4
  "description": "LangChain Agent UI component library for React",
5
5
  "license": "MIT",
6
6
  "files": [