@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.
Files changed (2) hide show
  1. package/dist/index.mjs +1 -5
  2. 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 hasToolExecuting = useMemo(() => {
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]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vegintech/langchain-react-agent",
3
- "version": "0.0.30",
3
+ "version": "0.0.31",
4
4
  "description": "LangChain Agent UI component library for React",
5
5
  "license": "MIT",
6
6
  "files": [