booths 0.0.1 → 0.0.3
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.js +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -509,7 +509,7 @@ class p {
|
|
|
509
509
|
* @returns Unmodified response parameters
|
|
510
510
|
*/
|
|
511
511
|
async onResponseReceived(t, o, e) {
|
|
512
|
-
const n = [...o.input, ...e
|
|
512
|
+
const n = [...o.input, ...e?.output ?? []];
|
|
513
513
|
return a = n, {
|
|
514
514
|
...o,
|
|
515
515
|
input: n
|
|
@@ -737,9 +737,9 @@ class w {
|
|
|
737
737
|
* @returns The updated response parameters, potentially with tool call outputs added to the input.
|
|
738
738
|
*/
|
|
739
739
|
async onResponseReceived(t, o, e) {
|
|
740
|
-
const n = e
|
|
740
|
+
const n = (e?.output ?? [])?.filter(
|
|
741
741
|
(l) => l.type === "function_call"
|
|
742
|
-
);
|
|
742
|
+
) ?? [];
|
|
743
743
|
if (!n.length)
|
|
744
744
|
return o;
|
|
745
745
|
const s = [];
|