@vegintech/langchain-react-agent 0.0.15 → 0.0.16
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 -7
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1332,7 +1332,7 @@ const AgentChat = forwardRef(({ apiUrl, assistantId, headers, threadId: external
|
|
|
1332
1332
|
useEffect(() => {
|
|
1333
1333
|
setInternalThreadId(externalThreadId);
|
|
1334
1334
|
}, [externalThreadId]);
|
|
1335
|
-
const {
|
|
1335
|
+
const { onPreSend, ...chatInputConfig } = inputConfig || {};
|
|
1336
1336
|
const chatInputRef = useRef(null);
|
|
1337
1337
|
useImperativeHandle(ref, () => ({
|
|
1338
1338
|
input: chatInputRef.current,
|
|
@@ -1464,12 +1464,7 @@ const AgentChat = forwardRef(({ apiUrl, assistantId, headers, threadId: external
|
|
|
1464
1464
|
onStop: handleStop,
|
|
1465
1465
|
isLoading: stream.isLoading,
|
|
1466
1466
|
className: "agent-chat-input",
|
|
1467
|
-
|
|
1468
|
-
skill,
|
|
1469
|
-
slotConfig,
|
|
1470
|
-
header,
|
|
1471
|
-
prefix,
|
|
1472
|
-
placeholder
|
|
1467
|
+
...chatInputConfig
|
|
1473
1468
|
}),
|
|
1474
1469
|
/* @__PURE__ */ jsx(DebugPanel, {
|
|
1475
1470
|
messages: stream.messages,
|