@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.
- package/dist/ChatRoot-EJC5Y2YM.cjs +14 -0
- package/dist/{ChatRoot-AWNBBBH7.cjs.map → ChatRoot-EJC5Y2YM.cjs.map} +1 -1
- package/dist/ChatRoot-QOSKJPM6.mjs +5 -0
- package/dist/{ChatRoot-VJKOAVPQ.mjs.map → ChatRoot-QOSKJPM6.mjs.map} +1 -1
- package/dist/{chunk-BDWVCSM5.mjs → chunk-QLMKCSR6.mjs} +23 -15
- package/dist/chunk-QLMKCSR6.mjs.map +1 -0
- package/dist/{chunk-TUZZROQU.cjs → chunk-SI5RD2GD.cjs} +23 -15
- package/dist/chunk-SI5RD2GD.cjs.map +1 -0
- package/dist/index.cjs +51 -51
- package/dist/index.d.cts +20 -1
- package/dist/index.d.ts +20 -1
- package/dist/index.mjs +3 -3
- package/package.json +6 -6
- package/src/tools/Chat/Chat.story.tsx +101 -0
- package/src/tools/Chat/README.md +65 -1
- package/src/tools/Chat/components/ToolCalls.tsx +39 -12
- package/dist/ChatRoot-AWNBBBH7.cjs +0 -14
- package/dist/ChatRoot-VJKOAVPQ.mjs +0 -5
- package/dist/chunk-BDWVCSM5.mjs.map +0 -1
- package/dist/chunk-TUZZROQU.cjs.map +0 -1
|
@@ -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.
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
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-
|
|
2452
|
-
//# sourceMappingURL=chunk-
|
|
2459
|
+
//# sourceMappingURL=chunk-SI5RD2GD.cjs.map
|
|
2460
|
+
//# sourceMappingURL=chunk-SI5RD2GD.cjs.map
|