codebuff 1.0.174 → 1.0.175

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -35,8 +35,8 @@ export declare const LogSchema: z.ZodObject<{
35
35
  level: z.ZodOptional<z.ZodNumber>;
36
36
  source: z.ZodDefault<z.ZodEnum<["browser", "tool"]>>;
37
37
  }, "strip", z.ZodTypeAny, {
38
- message: string;
39
38
  type: "error" | "warning" | "info" | "debug" | "verbose";
39
+ message: string;
40
40
  source: "browser" | "tool";
41
41
  timestamp: number;
42
42
  location?: string | undefined;
@@ -44,8 +44,8 @@ export declare const LogSchema: z.ZodObject<{
44
44
  category?: string | undefined;
45
45
  level?: number | undefined;
46
46
  }, {
47
- message: string;
48
47
  type: "error" | "warning" | "info" | "debug" | "verbose";
48
+ message: string;
49
49
  timestamp: number;
50
50
  source?: "browser" | "tool" | undefined;
51
51
  location?: string | undefined;
@@ -267,26 +267,26 @@ export declare const ImageContentSchema: z.ZodObject<{
267
267
  media_type: z.ZodLiteral<"image/jpeg">;
268
268
  data: z.ZodString;
269
269
  }, "strip", z.ZodTypeAny, {
270
- data: string;
271
270
  type: "base64";
271
+ data: string;
272
272
  media_type: "image/jpeg";
273
273
  }, {
274
- data: string;
275
274
  type: "base64";
275
+ data: string;
276
276
  media_type: "image/jpeg";
277
277
  }>;
278
278
  }, "strip", z.ZodTypeAny, {
279
279
  type: "image";
280
280
  source: {
281
- data: string;
282
281
  type: "base64";
282
+ data: string;
283
283
  media_type: "image/jpeg";
284
284
  };
285
285
  }, {
286
286
  type: "image";
287
287
  source: {
288
- data: string;
289
288
  type: "base64";
289
+ data: string;
290
290
  media_type: "image/jpeg";
291
291
  };
292
292
  }>;
@@ -304,8 +304,8 @@ export declare const BrowserResponseSchema: z.ZodObject<{
304
304
  level: z.ZodOptional<z.ZodNumber>;
305
305
  source: z.ZodDefault<z.ZodEnum<["browser", "tool"]>>;
306
306
  }, "strip", z.ZodTypeAny, {
307
- message: string;
308
307
  type: "error" | "warning" | "info" | "debug" | "verbose";
308
+ message: string;
309
309
  source: "browser" | "tool";
310
310
  timestamp: number;
311
311
  location?: string | undefined;
@@ -313,8 +313,8 @@ export declare const BrowserResponseSchema: z.ZodObject<{
313
313
  category?: string | undefined;
314
314
  level?: number | undefined;
315
315
  }, {
316
- message: string;
317
316
  type: "error" | "warning" | "info" | "debug" | "verbose";
317
+ message: string;
318
318
  timestamp: number;
319
319
  source?: "browser" | "tool" | undefined;
320
320
  location?: string | undefined;
@@ -393,26 +393,26 @@ export declare const BrowserResponseSchema: z.ZodObject<{
393
393
  media_type: z.ZodLiteral<"image/jpeg">;
394
394
  data: z.ZodString;
395
395
  }, "strip", z.ZodTypeAny, {
396
- data: string;
397
396
  type: "base64";
397
+ data: string;
398
398
  media_type: "image/jpeg";
399
399
  }, {
400
- data: string;
401
400
  type: "base64";
401
+ data: string;
402
402
  media_type: "image/jpeg";
403
403
  }>;
404
404
  }, "strip", z.ZodTypeAny, {
405
405
  type: "image";
406
406
  source: {
407
- data: string;
408
407
  type: "base64";
408
+ data: string;
409
409
  media_type: "image/jpeg";
410
410
  };
411
411
  }, {
412
412
  type: "image";
413
413
  source: {
414
- data: string;
415
414
  type: "base64";
415
+ data: string;
416
416
  media_type: "image/jpeg";
417
417
  };
418
418
  }>>;
@@ -423,26 +423,26 @@ export declare const BrowserResponseSchema: z.ZodObject<{
423
423
  media_type: z.ZodLiteral<"image/jpeg">;
424
424
  data: z.ZodString;
425
425
  }, "strip", z.ZodTypeAny, {
426
- data: string;
427
426
  type: "base64";
427
+ data: string;
428
428
  media_type: "image/jpeg";
429
429
  }, {
430
- data: string;
431
430
  type: "base64";
431
+ data: string;
432
432
  media_type: "image/jpeg";
433
433
  }>;
434
434
  }, "strip", z.ZodTypeAny, {
435
435
  type: "image";
436
436
  source: {
437
- data: string;
438
437
  type: "base64";
438
+ data: string;
439
439
  media_type: "image/jpeg";
440
440
  };
441
441
  }, {
442
442
  type: "image";
443
443
  source: {
444
- data: string;
445
444
  type: "base64";
445
+ data: string;
446
446
  media_type: "image/jpeg";
447
447
  };
448
448
  }>;
@@ -450,16 +450,16 @@ export declare const BrowserResponseSchema: z.ZodObject<{
450
450
  post: {
451
451
  type: "image";
452
452
  source: {
453
- data: string;
454
453
  type: "base64";
454
+ data: string;
455
455
  media_type: "image/jpeg";
456
456
  };
457
457
  };
458
458
  pre?: {
459
459
  type: "image";
460
460
  source: {
461
- data: string;
462
461
  type: "base64";
462
+ data: string;
463
463
  media_type: "image/jpeg";
464
464
  };
465
465
  } | undefined;
@@ -467,16 +467,16 @@ export declare const BrowserResponseSchema: z.ZodObject<{
467
467
  post: {
468
468
  type: "image";
469
469
  source: {
470
- data: string;
471
470
  type: "base64";
471
+ data: string;
472
472
  media_type: "image/jpeg";
473
473
  };
474
474
  };
475
475
  pre?: {
476
476
  type: "image";
477
477
  source: {
478
- data: string;
479
478
  type: "base64";
479
+ data: string;
480
480
  media_type: "image/jpeg";
481
481
  };
482
482
  } | undefined;
@@ -484,8 +484,8 @@ export declare const BrowserResponseSchema: z.ZodObject<{
484
484
  }, "strip", z.ZodTypeAny, {
485
485
  success: boolean;
486
486
  logs: {
487
- message: string;
488
487
  type: "error" | "warning" | "info" | "debug" | "verbose";
488
+ message: string;
489
489
  source: "browser" | "tool";
490
490
  timestamp: number;
491
491
  location?: string | undefined;
@@ -521,16 +521,16 @@ export declare const BrowserResponseSchema: z.ZodObject<{
521
521
  post: {
522
522
  type: "image";
523
523
  source: {
524
- data: string;
525
524
  type: "base64";
525
+ data: string;
526
526
  media_type: "image/jpeg";
527
527
  };
528
528
  };
529
529
  pre?: {
530
530
  type: "image";
531
531
  source: {
532
- data: string;
533
532
  type: "base64";
533
+ data: string;
534
534
  media_type: "image/jpeg";
535
535
  };
536
536
  } | undefined;
@@ -538,8 +538,8 @@ export declare const BrowserResponseSchema: z.ZodObject<{
538
538
  }, {
539
539
  success: boolean;
540
540
  logs: {
541
- message: string;
542
541
  type: "error" | "warning" | "info" | "debug" | "verbose";
542
+ message: string;
543
543
  timestamp: number;
544
544
  source?: "browser" | "tool" | undefined;
545
545
  location?: string | undefined;
@@ -575,16 +575,16 @@ export declare const BrowserResponseSchema: z.ZodObject<{
575
575
  post: {
576
576
  type: "image";
577
577
  source: {
578
- data: string;
579
578
  type: "base64";
579
+ data: string;
580
580
  media_type: "image/jpeg";
581
581
  };
582
582
  };
583
583
  pre?: {
584
584
  type: "image";
585
585
  source: {
586
- data: string;
587
586
  type: "base64";
587
+ data: string;
588
588
  media_type: "image/jpeg";
589
589
  };
590
590
  } | undefined;
@@ -832,12 +832,12 @@ export declare const RequiredBrowserTypeActionSchema: z.ZodObject<{
832
832
  selector: z.ZodString;
833
833
  text: z.ZodString;
834
834
  }, "strip", z.ZodTypeAny, {
835
- text: string;
836
835
  type: "type";
836
+ text: string;
837
837
  selector: string;
838
838
  }, {
839
- text: string;
840
839
  type: "type";
840
+ text: string;
841
841
  selector: string;
842
842
  }>;
843
843
  export declare const BrowserTypeActionSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
@@ -876,8 +876,8 @@ export declare const BrowserTypeActionSchema: z.ZodObject<z.objectUtil.extendSha
876
876
  }>, {
877
877
  delay: z.ZodOptional<z.ZodNumber>;
878
878
  }>, "strip", z.ZodTypeAny, {
879
- text: string;
880
879
  type: "type";
880
+ text: string;
881
881
  selector: string;
882
882
  debug?: boolean | undefined;
883
883
  timeout?: number | undefined;
@@ -893,8 +893,8 @@ export declare const BrowserTypeActionSchema: z.ZodObject<z.objectUtil.extendSha
893
893
  } | undefined;
894
894
  delay?: number | undefined;
895
895
  }, {
896
- text: string;
897
896
  type: "type";
897
+ text: string;
898
898
  selector: string;
899
899
  debug?: boolean | undefined;
900
900
  timeout?: number | undefined;
@@ -1380,8 +1380,8 @@ export declare const DiagnosticStepSchema: z.ZodObject<{
1380
1380
  }>, {
1381
1381
  delay: z.ZodOptional<z.ZodNumber>;
1382
1382
  }>, "strip", z.ZodTypeAny, {
1383
- text: string;
1384
1383
  type: "type";
1384
+ text: string;
1385
1385
  selector: string;
1386
1386
  debug?: boolean | undefined;
1387
1387
  timeout?: number | undefined;
@@ -1397,8 +1397,8 @@ export declare const DiagnosticStepSchema: z.ZodObject<{
1397
1397
  } | undefined;
1398
1398
  delay?: number | undefined;
1399
1399
  }, {
1400
- text: string;
1401
1400
  type: "type";
1401
+ text: string;
1402
1402
  selector: string;
1403
1403
  debug?: boolean | undefined;
1404
1404
  timeout?: number | undefined;
@@ -1665,8 +1665,8 @@ export declare const DiagnosticStepSchema: z.ZodObject<{
1665
1665
  visualVerify?: boolean | undefined;
1666
1666
  visualThreshold?: number | undefined;
1667
1667
  } | {
1668
- text: string;
1669
1668
  type: "type";
1669
+ text: string;
1670
1670
  selector: string;
1671
1671
  debug?: boolean | undefined;
1672
1672
  timeout?: number | undefined;
@@ -1787,8 +1787,8 @@ export declare const DiagnosticStepSchema: z.ZodObject<{
1787
1787
  visualVerify?: boolean | undefined;
1788
1788
  visualThreshold?: number | undefined;
1789
1789
  } | {
1790
- text: string;
1791
1790
  type: "type";
1791
+ text: string;
1792
1792
  selector: string;
1793
1793
  debug?: boolean | undefined;
1794
1794
  timeout?: number | undefined;
@@ -2132,8 +2132,8 @@ export declare const BrowserDiagnoseActionSchema: z.ZodObject<{
2132
2132
  }>, {
2133
2133
  delay: z.ZodOptional<z.ZodNumber>;
2134
2134
  }>, "strip", z.ZodTypeAny, {
2135
- text: string;
2136
2135
  type: "type";
2136
+ text: string;
2137
2137
  selector: string;
2138
2138
  debug?: boolean | undefined;
2139
2139
  timeout?: number | undefined;
@@ -2149,8 +2149,8 @@ export declare const BrowserDiagnoseActionSchema: z.ZodObject<{
2149
2149
  } | undefined;
2150
2150
  delay?: number | undefined;
2151
2151
  }, {
2152
- text: string;
2153
2152
  type: "type";
2153
+ text: string;
2154
2154
  selector: string;
2155
2155
  debug?: boolean | undefined;
2156
2156
  timeout?: number | undefined;
@@ -2417,8 +2417,8 @@ export declare const BrowserDiagnoseActionSchema: z.ZodObject<{
2417
2417
  visualVerify?: boolean | undefined;
2418
2418
  visualThreshold?: number | undefined;
2419
2419
  } | {
2420
- text: string;
2421
2420
  type: "type";
2421
+ text: string;
2422
2422
  selector: string;
2423
2423
  debug?: boolean | undefined;
2424
2424
  timeout?: number | undefined;
@@ -2539,8 +2539,8 @@ export declare const BrowserDiagnoseActionSchema: z.ZodObject<{
2539
2539
  visualVerify?: boolean | undefined;
2540
2540
  visualThreshold?: number | undefined;
2541
2541
  } | {
2542
- text: string;
2543
2542
  type: "type";
2543
+ text: string;
2544
2544
  selector: string;
2545
2545
  debug?: boolean | undefined;
2546
2546
  timeout?: number | undefined;
@@ -2667,8 +2667,8 @@ export declare const BrowserDiagnoseActionSchema: z.ZodObject<{
2667
2667
  visualVerify?: boolean | undefined;
2668
2668
  visualThreshold?: number | undefined;
2669
2669
  } | {
2670
- text: string;
2671
2670
  type: "type";
2671
+ text: string;
2672
2672
  selector: string;
2673
2673
  debug?: boolean | undefined;
2674
2674
  timeout?: number | undefined;
@@ -2807,8 +2807,8 @@ export declare const BrowserDiagnoseActionSchema: z.ZodObject<{
2807
2807
  visualVerify?: boolean | undefined;
2808
2808
  visualThreshold?: number | undefined;
2809
2809
  } | {
2810
- text: string;
2811
2810
  type: "type";
2811
+ text: string;
2812
2812
  selector: string;
2813
2813
  debug?: boolean | undefined;
2814
2814
  timeout?: number | undefined;
@@ -3136,8 +3136,8 @@ export declare const BrowserActionSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
3136
3136
  }>, {
3137
3137
  delay: z.ZodOptional<z.ZodNumber>;
3138
3138
  }>, "strip", z.ZodTypeAny, {
3139
- text: string;
3140
3139
  type: "type";
3140
+ text: string;
3141
3141
  selector: string;
3142
3142
  debug?: boolean | undefined;
3143
3143
  timeout?: number | undefined;
@@ -3153,8 +3153,8 @@ export declare const BrowserActionSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
3153
3153
  } | undefined;
3154
3154
  delay?: number | undefined;
3155
3155
  }, {
3156
- text: string;
3157
3156
  type: "type";
3157
+ text: string;
3158
3158
  selector: string;
3159
3159
  debug?: boolean | undefined;
3160
3160
  timeout?: number | undefined;
@@ -3638,8 +3638,8 @@ export declare const BrowserActionSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
3638
3638
  }>, {
3639
3639
  delay: z.ZodOptional<z.ZodNumber>;
3640
3640
  }>, "strip", z.ZodTypeAny, {
3641
- text: string;
3642
3641
  type: "type";
3642
+ text: string;
3643
3643
  selector: string;
3644
3644
  debug?: boolean | undefined;
3645
3645
  timeout?: number | undefined;
@@ -3655,8 +3655,8 @@ export declare const BrowserActionSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
3655
3655
  } | undefined;
3656
3656
  delay?: number | undefined;
3657
3657
  }, {
3658
- text: string;
3659
3658
  type: "type";
3659
+ text: string;
3660
3660
  selector: string;
3661
3661
  debug?: boolean | undefined;
3662
3662
  timeout?: number | undefined;
@@ -3923,8 +3923,8 @@ export declare const BrowserActionSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
3923
3923
  visualVerify?: boolean | undefined;
3924
3924
  visualThreshold?: number | undefined;
3925
3925
  } | {
3926
- text: string;
3927
3926
  type: "type";
3927
+ text: string;
3928
3928
  selector: string;
3929
3929
  debug?: boolean | undefined;
3930
3930
  timeout?: number | undefined;
@@ -4045,8 +4045,8 @@ export declare const BrowserActionSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
4045
4045
  visualVerify?: boolean | undefined;
4046
4046
  visualThreshold?: number | undefined;
4047
4047
  } | {
4048
- text: string;
4049
4048
  type: "type";
4049
+ text: string;
4050
4050
  selector: string;
4051
4051
  debug?: boolean | undefined;
4052
4052
  timeout?: number | undefined;
@@ -4173,8 +4173,8 @@ export declare const BrowserActionSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
4173
4173
  visualVerify?: boolean | undefined;
4174
4174
  visualThreshold?: number | undefined;
4175
4175
  } | {
4176
- text: string;
4177
4176
  type: "type";
4177
+ text: string;
4178
4178
  selector: string;
4179
4179
  debug?: boolean | undefined;
4180
4180
  timeout?: number | undefined;
@@ -4313,8 +4313,8 @@ export declare const BrowserActionSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
4313
4313
  visualVerify?: boolean | undefined;
4314
4314
  visualThreshold?: number | undefined;
4315
4315
  } | {
4316
- text: string;
4317
4316
  type: "type";
4317
+ text: string;
4318
4318
  selector: string;
4319
4319
  debug?: boolean | undefined;
4320
4320
  timeout?: number | undefined;
@@ -5,12 +5,12 @@ export declare const ToolCallSchema: z.ZodObject<{
5
5
  parameters: z.ZodRecord<z.ZodString, z.ZodString>;
6
6
  id: z.ZodString;
7
7
  }, "strip", z.ZodTypeAny, {
8
- id: string;
9
8
  name: string;
9
+ id: string;
10
10
  parameters: Record<string, string>;
11
11
  }, {
12
- id: string;
13
12
  name: string;
13
+ id: string;
14
14
  parameters: Record<string, string>;
15
15
  }>;
16
16
  export type ToolCall = z.infer<typeof ToolCallSchema>;
@@ -19,12 +19,12 @@ export declare const ToolResultSchema: z.ZodObject<{
19
19
  result: z.ZodString;
20
20
  id: z.ZodString;
21
21
  }, "strip", z.ZodTypeAny, {
22
- id: string;
23
22
  name: string;
23
+ id: string;
24
24
  result: string;
25
25
  }, {
26
- id: string;
27
26
  name: string;
27
+ id: string;
28
28
  result: string;
29
29
  }>;
30
30
  export type ToolResult = z.infer<typeof ToolResultSchema>;
@@ -177,16 +177,16 @@ export declare const AgentStateSchema: z.ZodObject<{
177
177
  }>>;
178
178
  }, "strip", z.ZodTypeAny, {
179
179
  type: "tool_use";
180
- id: string;
181
180
  name: string;
181
+ id: string;
182
182
  input: Record<string, any>;
183
183
  cache_control?: {
184
184
  type: "ephemeral";
185
185
  } | undefined;
186
186
  }, {
187
187
  type: "tool_use";
188
- id: string;
189
188
  name: string;
189
+ id: string;
190
190
  input: Record<string, any>;
191
191
  cache_control?: {
192
192
  type: "ephemeral";
@@ -224,12 +224,12 @@ export declare const AgentStateSchema: z.ZodObject<{
224
224
  data: z.ZodString;
225
225
  }, "strip", z.ZodTypeAny, {
226
226
  type: "base64";
227
- media_type: "image/jpeg";
228
227
  data: string;
228
+ media_type: "image/jpeg";
229
229
  }, {
230
230
  type: "base64";
231
- media_type: "image/jpeg";
232
231
  data: string;
232
+ media_type: "image/jpeg";
233
233
  }>;
234
234
  cache_control: z.ZodOptional<z.ZodObject<{
235
235
  type: z.ZodLiteral<"ephemeral">;
@@ -242,8 +242,8 @@ export declare const AgentStateSchema: z.ZodObject<{
242
242
  type: "image";
243
243
  source: {
244
244
  type: "base64";
245
- media_type: "image/jpeg";
246
245
  data: string;
246
+ media_type: "image/jpeg";
247
247
  };
248
248
  cache_control?: {
249
249
  type: "ephemeral";
@@ -252,15 +252,14 @@ export declare const AgentStateSchema: z.ZodObject<{
252
252
  type: "image";
253
253
  source: {
254
254
  type: "base64";
255
- media_type: "image/jpeg";
256
255
  data: string;
256
+ media_type: "image/jpeg";
257
257
  };
258
258
  cache_control?: {
259
259
  type: "ephemeral";
260
260
  } | undefined;
261
261
  }>]>, "many">]>;
262
262
  }, "strip", z.ZodTypeAny, {
263
- role: "user" | "assistant";
264
263
  content: string | ({
265
264
  type: "text";
266
265
  text: string;
@@ -269,8 +268,8 @@ export declare const AgentStateSchema: z.ZodObject<{
269
268
  } | undefined;
270
269
  } | {
271
270
  type: "tool_use";
272
- id: string;
273
271
  name: string;
272
+ id: string;
274
273
  input: Record<string, any>;
275
274
  cache_control?: {
276
275
  type: "ephemeral";
@@ -286,15 +285,15 @@ export declare const AgentStateSchema: z.ZodObject<{
286
285
  type: "image";
287
286
  source: {
288
287
  type: "base64";
289
- media_type: "image/jpeg";
290
288
  data: string;
289
+ media_type: "image/jpeg";
291
290
  };
292
291
  cache_control?: {
293
292
  type: "ephemeral";
294
293
  } | undefined;
295
294
  })[];
296
- }, {
297
295
  role: "user" | "assistant";
296
+ }, {
298
297
  content: string | ({
299
298
  type: "text";
300
299
  text: string;
@@ -303,8 +302,8 @@ export declare const AgentStateSchema: z.ZodObject<{
303
302
  } | undefined;
304
303
  } | {
305
304
  type: "tool_use";
306
- id: string;
307
305
  name: string;
306
+ id: string;
308
307
  input: Record<string, any>;
309
308
  cache_control?: {
310
309
  type: "ephemeral";
@@ -320,13 +319,14 @@ export declare const AgentStateSchema: z.ZodObject<{
320
319
  type: "image";
321
320
  source: {
322
321
  type: "base64";
323
- media_type: "image/jpeg";
324
322
  data: string;
323
+ media_type: "image/jpeg";
325
324
  };
326
325
  cache_control?: {
327
326
  type: "ephemeral";
328
327
  } | undefined;
329
328
  })[];
329
+ role: "user" | "assistant";
330
330
  }>, "many">;
331
331
  }, "strip", z.ZodTypeAny, {
332
332
  agentContext: string;
@@ -358,7 +358,6 @@ export declare const AgentStateSchema: z.ZodObject<{
358
358
  userKnowledgeFiles?: Record<string, string> | undefined;
359
359
  };
360
360
  messageHistory: {
361
- role: "user" | "assistant";
362
361
  content: string | ({
363
362
  type: "text";
364
363
  text: string;
@@ -367,8 +366,8 @@ export declare const AgentStateSchema: z.ZodObject<{
367
366
  } | undefined;
368
367
  } | {
369
368
  type: "tool_use";
370
- id: string;
371
369
  name: string;
370
+ id: string;
372
371
  input: Record<string, any>;
373
372
  cache_control?: {
374
373
  type: "ephemeral";
@@ -384,13 +383,14 @@ export declare const AgentStateSchema: z.ZodObject<{
384
383
  type: "image";
385
384
  source: {
386
385
  type: "base64";
387
- media_type: "image/jpeg";
388
386
  data: string;
387
+ media_type: "image/jpeg";
389
388
  };
390
389
  cache_control?: {
391
390
  type: "ephemeral";
392
391
  } | undefined;
393
392
  })[];
393
+ role: "user" | "assistant";
394
394
  }[];
395
395
  }, {
396
396
  agentContext: string;
@@ -422,7 +422,6 @@ export declare const AgentStateSchema: z.ZodObject<{
422
422
  userKnowledgeFiles?: Record<string, string> | undefined;
423
423
  };
424
424
  messageHistory: {
425
- role: "user" | "assistant";
426
425
  content: string | ({
427
426
  type: "text";
428
427
  text: string;
@@ -431,8 +430,8 @@ export declare const AgentStateSchema: z.ZodObject<{
431
430
  } | undefined;
432
431
  } | {
433
432
  type: "tool_use";
434
- id: string;
435
433
  name: string;
434
+ id: string;
436
435
  input: Record<string, any>;
437
436
  cache_control?: {
438
437
  type: "ephemeral";
@@ -448,13 +447,14 @@ export declare const AgentStateSchema: z.ZodObject<{
448
447
  type: "image";
449
448
  source: {
450
449
  type: "base64";
451
- media_type: "image/jpeg";
452
450
  data: string;
451
+ media_type: "image/jpeg";
453
452
  };
454
453
  cache_control?: {
455
454
  type: "ephemeral";
456
455
  } | undefined;
457
456
  })[];
457
+ role: "user" | "assistant";
458
458
  }[];
459
459
  }>;
460
460
  export type AgentState = z.infer<typeof AgentStateSchema>;