@@ -165,11 +165,21 @@ describe("createAgentSession tool defaults", () => {
165165 assistantMessage : {
166166 role : "assistant" ,
167167 content : [ ] ,
168- usage : { input : 0 , output : 0 , cacheRead : 0 , cacheWrite : 0 , cost : { total : 0 } } ,
169- stopReason : "tool_call" ,
168+ api : testModel . api ,
169+ provider : testModel . provider ,
170+ model : testModel . id ,
171+ usage : {
172+ input : 0 ,
173+ output : 0 ,
174+ cacheRead : 0 ,
175+ cacheWrite : 0 ,
176+ totalTokens : 0 ,
177+ cost : { input : 0 , output : 0 , cacheRead : 0 , cacheWrite : 0 , total : 0 } ,
178+ } ,
179+ stopReason : "toolUse" ,
170180 timestamp : Date . now ( ) ,
171181 } ,
172- toolCall : { type : "toolCall" , id : "call_1" , name : "read" , input : { } } ,
182+ toolCall : { type : "toolCall" , id : "call_1" , name : "read" , arguments : { } } ,
173183 args : { } ,
174184 context : {
175185 systemPrompt : "" ,
@@ -203,11 +213,21 @@ describe("createAgentSession tool defaults", () => {
203213 assistantMessage : {
204214 role : "assistant" ,
205215 content : [ ] ,
206- usage : { input : 0 , output : 0 , cacheRead : 0 , cacheWrite : 0 , cost : { total : 0 } } ,
207- stopReason : "tool_call" ,
216+ api : testModel . api ,
217+ provider : testModel . provider ,
218+ model : testModel . id ,
219+ usage : {
220+ input : 0 ,
221+ output : 0 ,
222+ cacheRead : 0 ,
223+ cacheWrite : 0 ,
224+ totalTokens : 0 ,
225+ cost : { input : 0 , output : 0 , cacheRead : 0 , cacheWrite : 0 , total : 0 } ,
226+ } ,
227+ stopReason : "toolUse" ,
208228 timestamp : Date . now ( ) ,
209229 } ,
210- toolCall : { type : "toolCall" , id : "call_1" , name : "write_file" , input : { } } ,
230+ toolCall : { type : "toolCall" , id : "call_1" , name : "write_file" , arguments : { } } ,
211231 args : { } ,
212232 context : {
213233 systemPrompt : "" ,
0 commit comments