@vegintech/langchain-react-agent 0.0.30 → 0.0.31
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.mjs +1 -5
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -902,11 +902,7 @@ const AgentChat = forwardRef(({ stream, className = "", tools, contexts, message
|
|
|
902
902
|
onSubmit: stream.submit
|
|
903
903
|
});
|
|
904
904
|
const [toolExecutions, setToolExecutions] = useState(/* @__PURE__ */ new Map());
|
|
905
|
-
const
|
|
906
|
-
for (const record of toolExecutions.values()) if (record.status === "running" || record.status === "pending") return true;
|
|
907
|
-
return false;
|
|
908
|
-
}, [toolExecutions]);
|
|
909
|
-
const isLoading = stream.isLoading || hasToolExecuting;
|
|
905
|
+
const isLoading = stream.isLoading;
|
|
910
906
|
const { messages, toolResults } = useMemo(() => {
|
|
911
907
|
return processMessages(stream.messages);
|
|
912
908
|
}, [stream.messages]);
|