@vegintech/langchain-react-agent 0.0.29 → 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 +2 -6
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -375,7 +375,7 @@ const roleConfig = {
|
|
|
375
375
|
style: {
|
|
376
376
|
paddingInlineEnd: 0,
|
|
377
377
|
paddingBlock: "8px",
|
|
378
|
-
display: "block
|
|
378
|
+
display: "block"
|
|
379
379
|
}
|
|
380
380
|
}
|
|
381
381
|
};
|
|
@@ -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]);
|