@@ -29,16 +29,16 @@ exports[`ChatContext.toJSON > should match snapshot for edge cases > edge-cases-
2929 " type" : " message" ,
3030 },
3131 {
32- " arguments " : " {}" ,
33- " call_id " : " minimal" ,
32+ " args " : " {}" ,
33+ " callId " : " minimal" ,
3434 " id" : " func_minimal" ,
3535 " name" : " test" ,
3636 " type" : " function_call" ,
3737 },
3838 {
39- " call_id " : " minimal" ,
39+ " callId " : " minimal" ,
4040 " id" : " func_output_nameless" ,
41- " is_error " : false ,
41+ " isError " : false ,
4242 " name" : " " ,
4343 " output" : " OK" ,
4444 " type" : " function_call_output" ,
@@ -63,7 +63,7 @@ exports[`ChatContext.toJSON > should match snapshot for edge cases > edge-cases-
6363 " items" : [
6464 {
6565 " content" : [],
66- " created_at " : 5000000000 ,
66+ " createdAt " : 5000000000 ,
6767 " id" : " msg_empty_1" ,
6868 " interrupted" : false ,
6969 " role" : " user" ,
@@ -76,7 +76,7 @@ exports[`ChatContext.toJSON > should match snapshot for edge cases > edge-cases-
7676 " type" : " audio_content" ,
7777 },
7878 ],
79- " created_at " : 5000000001 ,
79+ " createdAt " : 5000000001 ,
8080 " id" : " msg_silent_audio" ,
8181 " interrupted" : false ,
8282 " role" : " user" ,
@@ -88,25 +88,25 @@ exports[`ChatContext.toJSON > should match snapshot for edge cases > edge-cases-
8888 " Part 2. " ,
8989 " Part 3." ,
9090 ],
91- " created_at " : 5000000002 ,
91+ " createdAt " : 5000000002 ,
9292 " id" : " msg_multi_text" ,
9393 " interrupted" : false ,
9494 " role" : " assistant" ,
9595 " type" : " message" ,
9696 },
9797 {
98- " arguments " : " {}" ,
99- " call_id " : " minimal" ,
100- " created_at " : 5000000003 ,
98+ " args " : " {}" ,
99+ " callId " : " minimal" ,
100+ " createdAt " : 5000000003 ,
101101 " id" : " func_minimal" ,
102102 " name" : " test" ,
103103 " type" : " function_call" ,
104104 },
105105 {
106- " call_id " : " minimal" ,
107- " created_at " : 5000000004 ,
106+ " callId " : " minimal" ,
107+ " createdAt " : 5000000004 ,
108108 " id" : " func_output_nameless" ,
109- " is_error " : false ,
109+ " isError " : false ,
110110 " name" : " " ,
111111 " output" : " OK" ,
112112 " type" : " function_call_output" ,
@@ -117,7 +117,7 @@ exports[`ChatContext.toJSON > should match snapshot for edge cases > edge-cases-
117117
118118 " quotes" ' apostrophes' \\backslashes \\ {braces } [brackets ]" ,
119119 ],
120- " created_at " : 5000000005 ,
120+ " createdAt " : 5000000005 ,
121121 " id" : " msg_special_chars" ,
122122 " interrupted" : false ,
123123 " role" : " user" ,
@@ -146,16 +146,16 @@ exports[`ChatContext.toJSON > should match snapshot for function calls > convers
146146 " type" : " message" ,
147147 },
148148 {
149- " arguments " : " {" location " : " Paris , France", " unit" : " celsius" }" ,
150- " call_id " : " call_weather_123" ,
149+ " args " : " {" location " : " Paris , France", " unit" : " celsius" }" ,
150+ " callId " : " call_weather_123" ,
151151 " id" : " func_call_1" ,
152152 " name" : " get_weather" ,
153153 " type" : " function_call" ,
154154 },
155155 {
156- " call_id " : " call_weather_123" ,
156+ " callId " : " call_weather_123" ,
157157 " id" : " func_output_1" ,
158- " is_error " : false ,
158+ " isError " : false ,
159159 " name" : " get_weather" ,
160160 " output" : " {" temperature " : 22, " condition " : " partly cloudy " , " humidity " : 65}" ,
161161 " type" : " function_call_output" ,
@@ -180,25 +180,25 @@ exports[`ChatContext.toJSON > should match snapshot for function calls > convers
180180 " content" : [
181181 " What's the weather in Paris?" ,
182182 ],
183- " created_at " : 3000000000 ,
183+ " createdAt " : 3000000000 ,
184184 " id" : " msg_user_3" ,
185185 " interrupted" : false ,
186186 " role" : " user" ,
187187 " type" : " message" ,
188188 },
189189 {
190- " arguments " : " {" location " : " Paris , France", " unit" : " celsius" }" ,
191- " call_id " : " call_weather_123" ,
192- " created_at " : 3000000001 ,
190+ " args " : " {" location " : " Paris , France", " unit" : " celsius" }" ,
191+ " callId " : " call_weather_123" ,
192+ " createdAt " : 3000000001 ,
193193 " id" : " func_call_1" ,
194194 " name" : " get_weather" ,
195195 " type" : " function_call" ,
196196 },
197197 {
198- " call_id " : " call_weather_123" ,
199- " created_at " : 3000000002 ,
198+ " callId " : " call_weather_123" ,
199+ " createdAt " : 3000000002 ,
200200 " id" : " func_output_1" ,
201- " is_error " : false ,
201+ " isError " : false ,
202202 " name" : " get_weather" ,
203203 " output" : " {" temperature " : 22, " condition " : " partly cloudy " , " humidity " : 65}" ,
204204 " type" : " function_call_output" ,
@@ -207,7 +207,7 @@ exports[`ChatContext.toJSON > should match snapshot for function calls > convers
207207 " content" : [
208208 " The weather in Paris is currently 22°C and partly cloudy with 65% humidity." ,
209209 ],
210- " created_at " : 3000000003 ,
210+ " createdAt " : 3000000003 ,
211211 " id" : " msg_assistant_2" ,
212212 " interrupted" : false ,
213213 " role" : " assistant" ,
@@ -301,7 +301,7 @@ exports[`ChatContext.toJSON > should match snapshot for message property variati
301301 " content" : [
302302 " Message with custom ID" ,
303303 ],
304- " created_at " : 6000000000 ,
304+ " createdAt " : 6000000000 ,
305305 " id" : " custom-message-id-123" ,
306306 " interrupted" : false ,
307307 " role" : " user" ,
@@ -311,7 +311,7 @@ exports[`ChatContext.toJSON > should match snapshot for message property variati
311311 " content" : [
312312 " This response was interrupted..." ,
313313 ],
314- " created_at " : 6000000001 ,
314+ " createdAt " : 6000000001 ,
315315 " id" : " msg_interrupted" ,
316316 " interrupted" : true ,
317317 " role" : " assistant" ,
@@ -321,7 +321,7 @@ exports[`ChatContext.toJSON > should match snapshot for message property variati
321321 " content" : [
322322 " Developer message" ,
323323 ],
324- " created_at " : 6000000002 ,
324+ " createdAt " : 6000000002 ,
325325 " id" : " msg_dev_2" ,
326326 " interrupted" : false ,
327327 " role" : " developer" ,
@@ -331,7 +331,7 @@ exports[`ChatContext.toJSON > should match snapshot for message property variati
331331 " content" : [
332332 " System message" ,
333333 ],
334- " created_at " : 6000000003 ,
334+ " createdAt " : 6000000003 ,
335335 " id" : " msg_system_3" ,
336336 " interrupted" : false ,
337337 " role" : " system" ,
@@ -343,14 +343,14 @@ exports[`ChatContext.toJSON > should match snapshot for message property variati
343343 {
344344 " id" : " img_detailed" ,
345345 " image" : " https://example.com/image.jpg" ,
346- " inference_detail " : " low" ,
347- " inference_height " : 512 ,
348- " inference_width " : 512 ,
349- " mime_type " : " image/png" ,
346+ " inferenceDetail " : " low" ,
347+ " inferenceHeight " : 512 ,
348+ " inferenceWidth " : 512 ,
349+ " mimeType " : " image/png" ,
350350 " type" : " image_content" ,
351351 },
352352 ],
353- " created_at " : 6000000004 ,
353+ " createdAt " : 6000000004 ,
354354 " id" : " msg_with_image" ,
355355 " interrupted" : false ,
356356 " role" : " user" ,
@@ -386,10 +386,10 @@ exports[`ChatContext.toJSON > should match snapshot for multimodal content > mul
386386 {
387387 " id" : " img_test_1" ,
388388 " image" : " https://example.com/test-image.jpg" ,
389- " inference_detail " : " high" ,
390- " inference_height " : 768 ,
391- " inference_width " : 1024 ,
392- " mime_type " : " image/jpeg" ,
389+ " inferenceDetail " : " high" ,
390+ " inferenceHeight " : 768 ,
391+ " inferenceWidth " : 1024 ,
392+ " mimeType " : " image/jpeg" ,
393393 " type" : " image_content" ,
394394 },
395395 {
@@ -398,7 +398,7 @@ exports[`ChatContext.toJSON > should match snapshot for multimodal content > mul
398398 },
399399 " What do you think?" ,
400400 ],
401- " created_at " : 2000000000 ,
401+ " createdAt " : 2000000000 ,
402402 " id" : " msg_user_2" ,
403403 " interrupted" : false ,
404404 " role" : " user" ,
@@ -438,10 +438,10 @@ exports[`ChatContext.toJSON > should match snapshot for multimodal content > mul
438438 {
439439 " id" : " img_test_1" ,
440440 " image" : " https://example.com/test-image.jpg" ,
441- " inference_detail " : " high" ,
442- " inference_height " : 768 ,
443- " inference_width " : 1024 ,
444- " mime_type " : " image/jpeg" ,
441+ " inferenceDetail " : " high" ,
442+ " inferenceHeight " : 768 ,
443+ " inferenceWidth " : 1024 ,
444+ " mimeType " : " image/jpeg" ,
445445 " type" : " image_content" ,
446446 },
447447 " What do you think?" ,
@@ -496,7 +496,7 @@ exports[`ChatContext.toJSON > should match snapshot for simple conversation > si
496496 " content" : [
497497 " You are a helpful assistant." ,
498498 ],
499- " created_at " : 1000000000 ,
499+ " createdAt " : 1000000000 ,
500500 " id" : " msg_system_1" ,
501501 " interrupted" : false ,
502502 " role" : " system" ,
@@ -506,7 +506,7 @@ exports[`ChatContext.toJSON > should match snapshot for simple conversation > si
506506 " content" : [
507507 " Hello, how are you?" ,
508508 ],
509- " created_at " : 1000000001 ,
509+ " createdAt " : 1000000001 ,
510510 " id" : " msg_user_1" ,
511511 " interrupted" : false ,
512512 " role" : " user" ,
@@ -516,7 +516,7 @@ exports[`ChatContext.toJSON > should match snapshot for simple conversation > si
516516 " content" : [
517517 " I'm doing well, thank you! How can I help you today?" ,
518518 ],
519- " created_at " : 1000000002 ,
519+ " createdAt " : 1000000002 ,
520520 " id" : " msg_assistant_1" ,
521521 " interrupted" : false ,
522522 " role" : " assistant" ,
0 commit comments