@djangocfg/ui-tools 2.1.377 → 2.1.378

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.
@@ -1890,22 +1890,30 @@ function ToolCalls({
1890
1890
  renderOutput,
1891
1891
  renderStreaming,
1892
1892
  renderPayload,
1893
+ renderAfterCalls,
1894
+ renderToolCall,
1895
+ hideToolCalls = false,
1893
1896
  className
1894
1897
  }) {
1895
1898
  if (!calls?.length) return null;
1896
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: lib.cn("mt-2 space-y-1.5", className), children: calls.map((call) => /* @__PURE__ */ jsxRuntime.jsx(
1897
- ToolCallItem,
1898
- {
1899
- call,
1900
- defaultExpanded,
1901
- expandWhileStreaming,
1902
- renderInput,
1903
- renderOutput,
1904
- renderStreaming,
1905
- renderPayload
1906
- },
1907
- call.id
1908
- )) });
1899
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: lib.cn("mt-2 space-y-1.5", className), children: [
1900
+ !hideToolCalls && calls.map(
1901
+ (call) => renderToolCall ? /* @__PURE__ */ jsxRuntime.jsx("div", { children: renderToolCall(call) }, call.id) : /* @__PURE__ */ jsxRuntime.jsx(
1902
+ ToolCallItem,
1903
+ {
1904
+ call,
1905
+ defaultExpanded,
1906
+ expandWhileStreaming,
1907
+ renderInput,
1908
+ renderOutput,
1909
+ renderStreaming,
1910
+ renderPayload
1911
+ },
1912
+ call.id
1913
+ )
1914
+ ),
1915
+ renderAfterCalls ? renderAfterCalls(calls) : null
1916
+ ] });
1909
1917
  }
1910
1918
  chunkOLISEQHS_cjs.__name(ToolCalls, "ToolCalls");
1911
1919
  function ToolCallItem({
@@ -2448,5 +2456,5 @@ exports.useChatComposer = useChatComposer;
2448
2456
  exports.useChatContext = useChatContext;
2449
2457
  exports.useChatContextOptional = useChatContextOptional;
2450
2458
  exports.useChatLayout = useChatLayout;
2451
- //# sourceMappingURL=chunk-TUZZROQU.cjs.map
2452
- //# sourceMappingURL=chunk-TUZZROQU.cjs.map
2459
+ //# sourceMappingURL=chunk-SI5RD2GD.cjs.map
2460
+ //# sourceMappingURL=chunk-SI5RD2GD.cjs.map