@@ -118,7 +118,7 @@ describe('itemsToLanguageV1Messages', () => {
118118 type : 'tool-call' ,
119119 toolCallId : '1' ,
120120 toolName : 'foo' ,
121- args : '{}' ,
121+ args : { } ,
122122 } ,
123123 ] ,
124124 providerMetadata : { stub : { a : 1 } } ,
@@ -181,7 +181,7 @@ describe('itemsToLanguageV1Messages', () => {
181181 {
182182 role : 'assistant' ,
183183 content : [
184- { type : 'tool-call' , toolCallId : '1' , toolName : 'do' , args : '{}' } ,
184+ { type : 'tool-call' , toolCallId : '1' , toolName : 'do' , args : { } } ,
185185 ] ,
186186 providerMetadata : { stub : { } } ,
187187 } ,
@@ -376,7 +376,7 @@ describe('AiSdkModel.getResponse', () => {
376376 toolCallType : 'function' ,
377377 toolCallId : 'c1' ,
378378 toolName : 'foo' ,
379- args : '{}' ,
379+ args : { } as any ,
380380 } ,
381381 ] ,
382382 finishReason : 'stop' ,
@@ -404,7 +404,7 @@ describe('AiSdkModel.getResponse', () => {
404404 type : 'function_call' ,
405405 callId : 'c1' ,
406406 name : 'foo' ,
407- arguments : '{}' ,
407+ arguments : { } ,
408408 status : 'completed' ,
409409 providerData : { p : 1 } ,
410410 } ,
@@ -465,7 +465,7 @@ describe('AiSdkModel.getResponse', () => {
465465
466466 expect ( received [ 0 ] ) . toEqual ( {
467467 role : 'system' ,
468- content : [ { type : 'text' , text : ' inst' } ] ,
468+ content : ' inst',
469469 } ) ;
470470 } ) ;
471471} ) ;
@@ -636,7 +636,7 @@ describe('AiSdkModel.getStreamedResponse', () => {
636636
637637 expect ( received [ 0 ] ) . toEqual ( {
638638 role : 'system' ,
639- content : [ { type : 'text' , text : ' inst' } ] ,
639+ content : ' inst',
640640 } ) ;
641641 } ) ;
642642} ) ;
@@ -695,7 +695,7 @@ describe('AiSdkModel', () => {
695695 type : 'tool-call' ,
696696 toolCallId : 'call1' ,
697697 toolName : 'do' ,
698- args : '{}' ,
698+ args : { } ,
699699 } ,
700700 ] ,
701701 providerMetadata : { fake : { meta : 1 } } ,
0 commit comments