@@ -628,7 +628,7 @@ describe('resource completions', () => {
628
628
content : "it's raining" ,
629
629
parsed : null ,
630
630
refusal : null ,
631
- tool_calls : [ ] ,
631
+ tool_calls : undefined ,
632
632
} ,
633
633
] ) ;
634
634
expect ( listener . functionCallResults ) . toEqual ( [ `it's raining` ] ) ;
@@ -876,7 +876,7 @@ describe('resource completions', () => {
876
876
content : 'there are 3 properties in {"a": 1, "b": 2, "c": 3}' ,
877
877
parsed : null ,
878
878
refusal : null ,
879
- tool_calls : [ ] ,
879
+ tool_calls : undefined ,
880
880
} ,
881
881
] ) ;
882
882
expect ( listener . functionCallResults ) . toEqual ( [ '3' ] ) ;
@@ -1125,7 +1125,7 @@ describe('resource completions', () => {
1125
1125
content : 'there are 3 properties in {"a": 1, "b": 2, "c": 3}' ,
1126
1126
parsed : null ,
1127
1127
refusal : null ,
1128
- tool_calls : [ ] ,
1128
+ tool_calls : undefined ,
1129
1129
} ,
1130
1130
] ) ;
1131
1131
expect ( listener . functionCallResults ) . toEqual ( [ `must be an object` , '3' ] ) ;
@@ -1443,7 +1443,7 @@ describe('resource completions', () => {
1443
1443
content : "it's raining" ,
1444
1444
parsed : null ,
1445
1445
refusal : null ,
1446
- tool_calls : [ ] ,
1446
+ tool_calls : undefined ,
1447
1447
} ,
1448
1448
] ) ;
1449
1449
expect ( listener . functionCallResults ) . toEqual ( [
@@ -1572,7 +1572,7 @@ describe('resource completions', () => {
1572
1572
content : "it's raining" ,
1573
1573
parsed : null ,
1574
1574
refusal : null ,
1575
- tool_calls : [ ] ,
1575
+ tool_calls : undefined ,
1576
1576
} ,
1577
1577
] ) ;
1578
1578
expect ( listener . eventFunctionCallResults ) . toEqual ( [ `it's raining` ] ) ;
@@ -1795,7 +1795,7 @@ describe('resource completions', () => {
1795
1795
content : 'there are 3 properties in {"a": 1, "b": 2, "c": 3}' ,
1796
1796
parsed : null ,
1797
1797
refusal : null ,
1798
- tool_calls : [ ] ,
1798
+ tool_calls : undefined ,
1799
1799
} ,
1800
1800
] ) ;
1801
1801
expect ( listener . eventFunctionCallResults ) . toEqual ( [ '3' ] ) ;
@@ -1997,7 +1997,7 @@ describe('resource completions', () => {
1997
1997
content : 'there are 3 properties in {"a": 1, "b": 2, "c": 3}' ,
1998
1998
parsed : null ,
1999
1999
refusal : null ,
2000
- tool_calls : [ ] ,
2000
+ tool_calls : undefined ,
2001
2001
} ,
2002
2002
] ) ;
2003
2003
expect ( listener . eventFunctionCallResults ) . toEqual ( [ `must be an object` , '3' ] ) ;
@@ -2301,7 +2301,7 @@ describe('resource completions', () => {
2301
2301
content : "it's raining" ,
2302
2302
parsed : null ,
2303
2303
refusal : null ,
2304
- tool_calls : [ ] ,
2304
+ tool_calls : undefined ,
2305
2305
} ,
2306
2306
] ) ;
2307
2307
expect ( listener . eventFunctionCallResults ) . toEqual ( [
@@ -2347,7 +2347,7 @@ describe('resource completions', () => {
2347
2347
content : 'The weather is great today!' ,
2348
2348
parsed : null ,
2349
2349
refusal : null ,
2350
- tool_calls : [ ] ,
2350
+ tool_calls : undefined ,
2351
2351
} ) ;
2352
2352
await listener . sanityCheck ( ) ;
2353
2353
} ) ;
@@ -2386,7 +2386,7 @@ describe('resource completions', () => {
2386
2386
content : 'The weather is great today!' ,
2387
2387
parsed : null ,
2388
2388
refusal : null ,
2389
- tool_calls : [ ] ,
2389
+ tool_calls : undefined ,
2390
2390
} ) ;
2391
2391
await listener . sanityCheck ( ) ;
2392
2392
} ) ;
0 commit comments