@@ -628,7 +628,7 @@ describe('resource completions', () => {
628628 content : "it's raining" ,
629629 parsed : null ,
630630 refusal : null ,
631- tool_calls : [ ] ,
631+ tool_calls : undefined ,
632632 } ,
633633 ] ) ;
634634 expect ( listener . functionCallResults ) . toEqual ( [ `it's raining` ] ) ;
@@ -876,7 +876,7 @@ describe('resource completions', () => {
876876 content : 'there are 3 properties in {"a": 1, "b": 2, "c": 3}' ,
877877 parsed : null ,
878878 refusal : null ,
879- tool_calls : [ ] ,
879+ tool_calls : undefined ,
880880 } ,
881881 ] ) ;
882882 expect ( listener . functionCallResults ) . toEqual ( [ '3' ] ) ;
@@ -1125,7 +1125,7 @@ describe('resource completions', () => {
11251125 content : 'there are 3 properties in {"a": 1, "b": 2, "c": 3}' ,
11261126 parsed : null ,
11271127 refusal : null ,
1128- tool_calls : [ ] ,
1128+ tool_calls : undefined ,
11291129 } ,
11301130 ] ) ;
11311131 expect ( listener . functionCallResults ) . toEqual ( [ `must be an object` , '3' ] ) ;
@@ -1443,7 +1443,7 @@ describe('resource completions', () => {
14431443 content : "it's raining" ,
14441444 parsed : null ,
14451445 refusal : null ,
1446- tool_calls : [ ] ,
1446+ tool_calls : undefined ,
14471447 } ,
14481448 ] ) ;
14491449 expect ( listener . functionCallResults ) . toEqual ( [
@@ -1572,7 +1572,7 @@ describe('resource completions', () => {
15721572 content : "it's raining" ,
15731573 parsed : null ,
15741574 refusal : null ,
1575- tool_calls : [ ] ,
1575+ tool_calls : undefined ,
15761576 } ,
15771577 ] ) ;
15781578 expect ( listener . eventFunctionCallResults ) . toEqual ( [ `it's raining` ] ) ;
@@ -1795,7 +1795,7 @@ describe('resource completions', () => {
17951795 content : 'there are 3 properties in {"a": 1, "b": 2, "c": 3}' ,
17961796 parsed : null ,
17971797 refusal : null ,
1798- tool_calls : [ ] ,
1798+ tool_calls : undefined ,
17991799 } ,
18001800 ] ) ;
18011801 expect ( listener . eventFunctionCallResults ) . toEqual ( [ '3' ] ) ;
@@ -1997,7 +1997,7 @@ describe('resource completions', () => {
19971997 content : 'there are 3 properties in {"a": 1, "b": 2, "c": 3}' ,
19981998 parsed : null ,
19991999 refusal : null ,
2000- tool_calls : [ ] ,
2000+ tool_calls : undefined ,
20012001 } ,
20022002 ] ) ;
20032003 expect ( listener . eventFunctionCallResults ) . toEqual ( [ `must be an object` , '3' ] ) ;
@@ -2301,7 +2301,7 @@ describe('resource completions', () => {
23012301 content : "it's raining" ,
23022302 parsed : null ,
23032303 refusal : null ,
2304- tool_calls : [ ] ,
2304+ tool_calls : undefined ,
23052305 } ,
23062306 ] ) ;
23072307 expect ( listener . eventFunctionCallResults ) . toEqual ( [
@@ -2347,7 +2347,7 @@ describe('resource completions', () => {
23472347 content : 'The weather is great today!' ,
23482348 parsed : null ,
23492349 refusal : null ,
2350- tool_calls : [ ] ,
2350+ tool_calls : undefined ,
23512351 } ) ;
23522352 await listener . sanityCheck ( ) ;
23532353 } ) ;
@@ -2386,7 +2386,7 @@ describe('resource completions', () => {
23862386 content : 'The weather is great today!' ,
23872387 parsed : null ,
23882388 refusal : null ,
2389- tool_calls : [ ] ,
2389+ tool_calls : undefined ,
23902390 } ) ;
23912391 await listener . sanityCheck ( ) ;
23922392 } ) ;
0 commit comments