@effect/ai-anthropic 0.2.2 → 0.2.4

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.
@@ -13,10 +13,7 @@ declare const MessagesPostParams_base: S.Struct<{
13
13
  }>;
14
14
  export declare class MessagesPostParams extends MessagesPostParams_base {
15
15
  }
16
- declare const ModelEnum_base: S.Literal<["claude-3-7-sonnet-latest", "claude-3-7-sonnet-20250219", "claude-3-5-sonnet-latest", "claude-3-5-sonnet-20241022", "claude-3-5-sonnet-20240620", "claude-3-5-haiku-latest", "claude-3-5-haiku-20241022", "claude-3-5-haiku-20240307", "claude-3-opus-latest", "claude-3-opus-20240229"]>;
17
- export declare class ModelEnum extends ModelEnum_base {
18
- }
19
- declare const Model_base: S.Union<[typeof S.String, typeof ModelEnum]>;
16
+ declare const Model_base: S.Union<[S.Literal<["claude-3-7-sonnet-latest"]>, S.Literal<["claude-3-7-sonnet-20250219"]>, S.Literal<["claude-3-5-haiku-latest"]>, S.Literal<["claude-3-5-haiku-20241022"]>, S.Literal<["claude-3-5-sonnet-latest"]>, S.Literal<["claude-3-5-sonnet-20241022"]>, S.Literal<["claude-3-5-sonnet-20240620"]>, S.Literal<["claude-3-opus-latest"]>, S.Literal<["claude-3-opus-20240229"]>, S.Literal<["claude-3-sonnet-20240229"]>, S.Literal<["claude-3-haiku-20240307"]>, S.Literal<["claude-2.1"]>, S.Literal<["claude-2.0"]>]>;
20
17
  export declare class Model extends Model_base {
21
18
  }
22
19
  declare const InputMessageRole_base: S.Literal<["user", "assistant"]>;
@@ -100,12 +97,21 @@ declare const Base64ImageSource_base: S.Struct<{
100
97
  }>;
101
98
  export declare class Base64ImageSource extends Base64ImageSource_base {
102
99
  }
100
+ declare const URLImageSourceType_base: S.Literal<["url"]>;
101
+ export declare class URLImageSourceType extends URLImageSourceType_base {
102
+ }
103
+ declare const URLImageSource_base: S.Struct<{
104
+ type: typeof URLImageSourceType;
105
+ url: typeof S.String;
106
+ }>;
107
+ export declare class URLImageSource extends URLImageSource_base {
108
+ }
103
109
  declare const RequestImageBlock_base: S.Struct<{
104
110
  cache_control: S.optionalWith<S.Union<[typeof CacheControlEphemeral, typeof S.Null]>, {
105
111
  nullable: true;
106
112
  }>;
107
113
  type: typeof RequestImageBlockType;
108
- source: typeof Base64ImageSource;
114
+ source: S.Union<[typeof Base64ImageSource, typeof URLImageSource]>;
109
115
  }>;
110
116
  export declare class RequestImageBlock extends RequestImageBlock_base {
111
117
  }
@@ -179,6 +185,15 @@ declare const ContentBlockSource_base: S.Struct<{
179
185
  }>;
180
186
  export declare class ContentBlockSource extends ContentBlockSource_base {
181
187
  }
188
+ declare const URLPDFSourceType_base: S.Literal<["url"]>;
189
+ export declare class URLPDFSourceType extends URLPDFSourceType_base {
190
+ }
191
+ declare const URLPDFSource_base: S.Struct<{
192
+ type: typeof URLPDFSourceType;
193
+ url: typeof S.String;
194
+ }>;
195
+ export declare class URLPDFSource extends URLPDFSource_base {
196
+ }
182
197
  declare const RequestCitationsConfig_base: S.Struct<{
183
198
  enabled: S.optionalWith<typeof S.Boolean, {
184
199
  nullable: true;
@@ -191,7 +206,7 @@ declare const RequestDocumentBlock_base: S.Struct<{
191
206
  nullable: true;
192
207
  }>;
193
208
  type: typeof RequestDocumentBlockType;
194
- source: S.Union<[typeof Base64PDFSource, typeof PlainTextSource, typeof ContentBlockSource]>;
209
+ source: S.Union<[typeof Base64PDFSource, typeof PlainTextSource, typeof ContentBlockSource, typeof URLPDFSource]>;
195
210
  title: S.optionalWith<S.Union<[S.filter<S.filter<typeof S.String>>, typeof S.Null]>, {
196
211
  nullable: true;
197
212
  }>;
@@ -204,7 +219,26 @@ declare const RequestDocumentBlock_base: S.Struct<{
204
219
  }>;
205
220
  export declare class RequestDocumentBlock extends RequestDocumentBlock_base {
206
221
  }
207
- declare const InputContentBlock_base: S.Union<[typeof RequestTextBlock, typeof RequestImageBlock, typeof RequestToolUseBlock, typeof RequestToolResultBlock, typeof RequestDocumentBlock]>;
222
+ declare const RequestThinkingBlockType_base: S.Literal<["thinking"]>;
223
+ export declare class RequestThinkingBlockType extends RequestThinkingBlockType_base {
224
+ }
225
+ declare const RequestThinkingBlock_base: S.Struct<{
226
+ type: typeof RequestThinkingBlockType;
227
+ thinking: typeof S.String;
228
+ signature: typeof S.String;
229
+ }>;
230
+ export declare class RequestThinkingBlock extends RequestThinkingBlock_base {
231
+ }
232
+ declare const RequestRedactedThinkingBlockType_base: S.Literal<["redacted_thinking"]>;
233
+ export declare class RequestRedactedThinkingBlockType extends RequestRedactedThinkingBlockType_base {
234
+ }
235
+ declare const RequestRedactedThinkingBlock_base: S.Struct<{
236
+ type: typeof RequestRedactedThinkingBlockType;
237
+ data: typeof S.String;
238
+ }>;
239
+ export declare class RequestRedactedThinkingBlock extends RequestRedactedThinkingBlock_base {
240
+ }
241
+ declare const InputContentBlock_base: S.Union<[typeof RequestTextBlock, typeof RequestImageBlock, typeof RequestToolUseBlock, typeof RequestToolResultBlock, typeof RequestDocumentBlock, typeof RequestThinkingBlock, typeof RequestRedactedThinkingBlock]>;
208
242
  export declare class InputContentBlock extends InputContentBlock_base {
209
243
  }
210
244
  declare const InputMessage_base: S.Struct<{
@@ -220,6 +254,26 @@ declare const Metadata_base: S.Struct<{
220
254
  }>;
221
255
  export declare class Metadata extends Metadata_base {
222
256
  }
257
+ declare const ThinkingConfigEnabledType_base: S.Literal<["enabled"]>;
258
+ export declare class ThinkingConfigEnabledType extends ThinkingConfigEnabledType_base {
259
+ }
260
+ declare const ThinkingConfigEnabled_base: S.Struct<{
261
+ type: typeof ThinkingConfigEnabledType;
262
+ budget_tokens: S.filter<typeof S.Int>;
263
+ }>;
264
+ export declare class ThinkingConfigEnabled extends ThinkingConfigEnabled_base {
265
+ }
266
+ declare const ThinkingConfigDisabledType_base: S.Literal<["disabled"]>;
267
+ export declare class ThinkingConfigDisabledType extends ThinkingConfigDisabledType_base {
268
+ }
269
+ declare const ThinkingConfigDisabled_base: S.Struct<{
270
+ type: typeof ThinkingConfigDisabledType;
271
+ }>;
272
+ export declare class ThinkingConfigDisabled extends ThinkingConfigDisabled_base {
273
+ }
274
+ declare const ThinkingConfigParam_base: S.Union<[typeof ThinkingConfigEnabled, typeof ThinkingConfigDisabled]>;
275
+ export declare class ThinkingConfigParam extends ThinkingConfigParam_base {
276
+ }
223
277
  declare const ToolChoiceAutoType_base: S.Literal<["auto"]>;
224
278
  export declare class ToolChoiceAutoType extends ToolChoiceAutoType_base {
225
279
  }
@@ -254,7 +308,15 @@ declare const ToolChoiceTool_base: S.Struct<{
254
308
  }>;
255
309
  export declare class ToolChoiceTool extends ToolChoiceTool_base {
256
310
  }
257
- declare const ToolChoice_base: S.Union<[typeof ToolChoiceAuto, typeof ToolChoiceAny, typeof ToolChoiceTool]>;
311
+ declare const ToolChoiceNoneType_base: S.Literal<["none"]>;
312
+ export declare class ToolChoiceNoneType extends ToolChoiceNoneType_base {
313
+ }
314
+ declare const ToolChoiceNone_base: S.Struct<{
315
+ type: typeof ToolChoiceNoneType;
316
+ }>;
317
+ export declare class ToolChoiceNone extends ToolChoiceNone_base {
318
+ }
319
+ declare const ToolChoice_base: S.Union<[typeof ToolChoiceAuto, typeof ToolChoiceAny, typeof ToolChoiceTool, typeof ToolChoiceNone]>;
258
320
  export declare class ToolChoice extends ToolChoice_base {
259
321
  }
260
322
  declare const InputSchemaType_base: S.Literal<["object"]>;
@@ -280,6 +342,36 @@ declare const Tool_base: S.Struct<{
280
342
  }>;
281
343
  export declare class Tool extends Tool_base {
282
344
  }
345
+ declare const BashTool20250124Type_base: S.Literal<["bash_20250124"]>;
346
+ export declare class BashTool20250124Type extends BashTool20250124Type_base {
347
+ }
348
+ declare const BashTool20250124Name_base: S.Literal<["bash"]>;
349
+ export declare class BashTool20250124Name extends BashTool20250124Name_base {
350
+ }
351
+ declare const BashTool20250124_base: S.Struct<{
352
+ cache_control: S.optionalWith<S.Union<[typeof CacheControlEphemeral, typeof S.Null]>, {
353
+ nullable: true;
354
+ }>;
355
+ type: typeof BashTool20250124Type;
356
+ name: typeof BashTool20250124Name;
357
+ }>;
358
+ export declare class BashTool20250124 extends BashTool20250124_base {
359
+ }
360
+ declare const TextEditor20250124Type_base: S.Literal<["text_editor_20250124"]>;
361
+ export declare class TextEditor20250124Type extends TextEditor20250124Type_base {
362
+ }
363
+ declare const TextEditor20250124Name_base: S.Literal<["str_replace_editor"]>;
364
+ export declare class TextEditor20250124Name extends TextEditor20250124Name_base {
365
+ }
366
+ declare const TextEditor20250124_base: S.Struct<{
367
+ cache_control: S.optionalWith<S.Union<[typeof CacheControlEphemeral, typeof S.Null]>, {
368
+ nullable: true;
369
+ }>;
370
+ type: typeof TextEditor20250124Type;
371
+ name: typeof TextEditor20250124Name;
372
+ }>;
373
+ export declare class TextEditor20250124 extends TextEditor20250124_base {
374
+ }
283
375
  declare const CreateMessageParams_base: S.Class<CreateMessageParams, {
284
376
  model: typeof Model;
285
377
  messages: S.Array$<typeof InputMessage>;
@@ -299,10 +391,13 @@ declare const CreateMessageParams_base: S.Class<CreateMessageParams, {
299
391
  temperature: S.optionalWith<S.filter<S.filter<typeof S.Number>>, {
300
392
  nullable: true;
301
393
  }>;
394
+ thinking: S.optionalWith<typeof ThinkingConfigParam, {
395
+ nullable: true;
396
+ }>;
302
397
  tool_choice: S.optionalWith<typeof ToolChoice, {
303
398
  nullable: true;
304
399
  }>;
305
- tools: S.optionalWith<S.Array$<typeof Tool>, {
400
+ tools: S.optionalWith<S.Array$<S.Union<[typeof Tool, typeof BashTool20250124, typeof TextEditor20250124]>>, {
306
401
  nullable: true;
307
402
  }>;
308
403
  top_k: S.optionalWith<S.filter<typeof S.Int>, {
@@ -330,10 +425,13 @@ declare const CreateMessageParams_base: S.Class<CreateMessageParams, {
330
425
  temperature: S.optionalWith<S.filter<S.filter<typeof S.Number>>, {
331
426
  nullable: true;
332
427
  }>;
428
+ thinking: S.optionalWith<typeof ThinkingConfigParam, {
429
+ nullable: true;
430
+ }>;
333
431
  tool_choice: S.optionalWith<typeof ToolChoice, {
334
432
  nullable: true;
335
433
  }>;
336
- tools: S.optionalWith<S.Array$<typeof Tool>, {
434
+ tools: S.optionalWith<S.Array$<S.Union<[typeof Tool, typeof BashTool20250124, typeof TextEditor20250124]>>, {
337
435
  nullable: true;
338
436
  }>;
339
437
  top_k: S.optionalWith<S.filter<typeof S.Int>, {
@@ -343,7 +441,14 @@ declare const CreateMessageParams_base: S.Class<CreateMessageParams, {
343
441
  nullable: true;
344
442
  }>;
345
443
  }>, never, {
346
- readonly model: string;
444
+ readonly thinking?: {
445
+ readonly type: "enabled";
446
+ readonly budget_tokens: number;
447
+ } | {
448
+ readonly type: "disabled";
449
+ } | undefined;
450
+ } & {
451
+ readonly model: "claude-3-7-sonnet-latest" | "claude-3-7-sonnet-20250219" | "claude-3-5-haiku-latest" | "claude-3-5-haiku-20241022" | "claude-3-5-sonnet-latest" | "claude-3-5-sonnet-20241022" | "claude-3-5-sonnet-20240620" | "claude-3-opus-latest" | "claude-3-opus-20240229" | "claude-3-sonnet-20240229" | "claude-3-haiku-20240307" | "claude-2.1" | "claude-2.0";
347
452
  } & {
348
453
  readonly messages: readonly {
349
454
  readonly content: string | readonly ({
@@ -383,6 +488,9 @@ declare const CreateMessageParams_base: S.Class<CreateMessageParams, {
383
488
  readonly type: "base64";
384
489
  readonly media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
385
490
  readonly data: string;
491
+ } | {
492
+ readonly type: "url";
493
+ readonly url: string;
386
494
  };
387
495
  } | {
388
496
  readonly type: "tool_use";
@@ -438,6 +546,9 @@ declare const CreateMessageParams_base: S.Class<CreateMessageParams, {
438
546
  readonly type: "base64";
439
547
  readonly media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
440
548
  readonly data: string;
549
+ } | {
550
+ readonly type: "url";
551
+ readonly url: string;
441
552
  };
442
553
  })[] | undefined;
443
554
  } | {
@@ -495,11 +606,24 @@ declare const CreateMessageParams_base: S.Class<CreateMessageParams, {
495
606
  readonly type: "base64";
496
607
  readonly media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
497
608
  readonly data: string;
609
+ } | {
610
+ readonly type: "url";
611
+ readonly url: string;
498
612
  };
499
613
  })[];
614
+ } | {
615
+ readonly type: "url";
616
+ readonly url: string;
500
617
  };
501
618
  readonly title?: string | null | undefined;
502
619
  readonly context?: string | null | undefined;
620
+ } | {
621
+ readonly type: "thinking";
622
+ readonly thinking: string;
623
+ readonly signature: string;
624
+ } | {
625
+ readonly type: "redacted_thinking";
626
+ readonly data: string;
503
627
  })[];
504
628
  readonly role: "user" | "assistant";
505
629
  }[];
@@ -556,9 +680,11 @@ declare const CreateMessageParams_base: S.Class<CreateMessageParams, {
556
680
  readonly type: "tool";
557
681
  readonly name: string;
558
682
  readonly disable_parallel_tool_use?: boolean | undefined;
683
+ } | {
684
+ readonly type: "none";
559
685
  } | undefined;
560
686
  } & {
561
- readonly tools?: readonly {
687
+ readonly tools?: readonly ({
562
688
  readonly cache_control?: {
563
689
  readonly type: "ephemeral";
564
690
  } | null | undefined;
@@ -570,7 +696,19 @@ declare const CreateMessageParams_base: S.Class<CreateMessageParams, {
570
696
  readonly [x: string]: unknown;
571
697
  } | null | undefined;
572
698
  };
573
- }[] | undefined;
699
+ } | {
700
+ readonly type: "bash_20250124";
701
+ readonly cache_control?: {
702
+ readonly type: "ephemeral";
703
+ } | null | undefined;
704
+ readonly name: "bash";
705
+ } | {
706
+ readonly type: "text_editor_20250124";
707
+ readonly cache_control?: {
708
+ readonly type: "ephemeral";
709
+ } | null | undefined;
710
+ readonly name: "str_replace_editor";
711
+ })[] | undefined;
574
712
  } & {
575
713
  readonly top_k?: number | undefined;
576
714
  } & {
@@ -646,7 +784,26 @@ declare const ResponseToolUseBlock_base: S.Struct<{
646
784
  }>;
647
785
  export declare class ResponseToolUseBlock extends ResponseToolUseBlock_base {
648
786
  }
649
- declare const ContentBlock_base: S.Union<[typeof ResponseTextBlock, typeof ResponseToolUseBlock]>;
787
+ declare const ResponseThinkingBlockType_base: S.Literal<["thinking"]>;
788
+ export declare class ResponseThinkingBlockType extends ResponseThinkingBlockType_base {
789
+ }
790
+ declare const ResponseThinkingBlock_base: S.Struct<{
791
+ type: S.PropertySignature<":", "thinking", never, ":", "thinking", true, never>;
792
+ thinking: typeof S.String;
793
+ signature: typeof S.String;
794
+ }>;
795
+ export declare class ResponseThinkingBlock extends ResponseThinkingBlock_base {
796
+ }
797
+ declare const ResponseRedactedThinkingBlockType_base: S.Literal<["redacted_thinking"]>;
798
+ export declare class ResponseRedactedThinkingBlockType extends ResponseRedactedThinkingBlockType_base {
799
+ }
800
+ declare const ResponseRedactedThinkingBlock_base: S.Struct<{
801
+ type: S.PropertySignature<":", "redacted_thinking", never, ":", "redacted_thinking", true, never>;
802
+ data: typeof S.String;
803
+ }>;
804
+ export declare class ResponseRedactedThinkingBlock extends ResponseRedactedThinkingBlock_base {
805
+ }
806
+ declare const ContentBlock_base: S.Union<[typeof ResponseTextBlock, typeof ResponseToolUseBlock, typeof ResponseThinkingBlock, typeof ResponseRedactedThinkingBlock]>;
650
807
  export declare class ContentBlock extends ContentBlock_base {
651
808
  }
652
809
  declare const MessageStopReasonEnum_base: S.Literal<["end_turn", "max_tokens", "stop_sequence", "tool_use"]>;
@@ -723,11 +880,18 @@ declare const Message_base: S.Class<Message, {
723
880
  readonly input: {
724
881
  readonly [x: string]: unknown;
725
882
  };
883
+ } | {
884
+ readonly type: "thinking";
885
+ readonly thinking: string;
886
+ readonly signature: string;
887
+ } | {
888
+ readonly type: "redacted_thinking";
889
+ readonly data: string;
726
890
  })[];
727
891
  } & {
728
892
  readonly role?: "assistant" | undefined;
729
893
  } & {
730
- readonly model: string;
894
+ readonly model: "claude-3-7-sonnet-latest" | "claude-3-7-sonnet-20250219" | "claude-3-5-haiku-latest" | "claude-3-5-haiku-20241022" | "claude-3-5-sonnet-latest" | "claude-3-5-sonnet-20241022" | "claude-3-5-sonnet-20240620" | "claude-3-opus-latest" | "claude-3-opus-20240229" | "claude-3-sonnet-20240229" | "claude-3-haiku-20240307" | "claude-2.1" | "claude-2.0";
731
895
  } & {
732
896
  readonly stop_sequence?: string | null | undefined;
733
897
  } & {
@@ -918,7 +1082,7 @@ declare const CompletionRequest_base: S.Class<CompletionRequest, {
918
1082
  nullable: true;
919
1083
  }>;
920
1084
  }>, never, {
921
- readonly model: string;
1085
+ readonly model: "claude-3-7-sonnet-latest" | "claude-3-7-sonnet-20250219" | "claude-3-5-haiku-latest" | "claude-3-5-haiku-20241022" | "claude-3-5-sonnet-latest" | "claude-3-5-sonnet-20241022" | "claude-3-5-sonnet-20240620" | "claude-3-opus-latest" | "claude-3-opus-20240229" | "claude-3-sonnet-20240229" | "claude-3-haiku-20240307" | "claude-2.1" | "claude-2.0";
922
1086
  } & {
923
1087
  readonly metadata?: {
924
1088
  readonly user_id?: string | null | undefined;
@@ -960,7 +1124,7 @@ declare const CompletionResponse_base: S.Class<CompletionResponse, {
960
1124
  } & {
961
1125
  readonly id: string;
962
1126
  } & {
963
- readonly model: string;
1127
+ readonly model: "claude-3-7-sonnet-latest" | "claude-3-7-sonnet-20250219" | "claude-3-5-haiku-latest" | "claude-3-5-haiku-20241022" | "claude-3-5-sonnet-latest" | "claude-3-5-sonnet-20241022" | "claude-3-5-sonnet-20240620" | "claude-3-opus-latest" | "claude-3-opus-20240229" | "claude-3-sonnet-20240229" | "claude-3-haiku-20240307" | "claude-2.1" | "claude-2.0";
964
1128
  } & {
965
1129
  readonly stop_reason: string | null;
966
1130
  } & {
@@ -1211,28 +1375,41 @@ declare const CountMessageTokensParams_base: S.Class<CountMessageTokensParams, {
1211
1375
  tool_choice: S.optionalWith<typeof ToolChoice, {
1212
1376
  nullable: true;
1213
1377
  }>;
1214
- tools: S.optionalWith<S.Array$<typeof Tool>, {
1378
+ tools: S.optionalWith<S.Array$<S.Union<[typeof Tool, typeof BashTool20250124, typeof TextEditor20250124]>>, {
1215
1379
  nullable: true;
1216
1380
  }>;
1217
1381
  messages: S.Array$<typeof InputMessage>;
1218
1382
  system: S.optionalWith<S.Union<[typeof S.String, S.Array$<typeof RequestTextBlock>]>, {
1219
1383
  nullable: true;
1220
1384
  }>;
1385
+ thinking: S.optionalWith<typeof ThinkingConfigParam, {
1386
+ nullable: true;
1387
+ }>;
1221
1388
  model: typeof Model;
1222
1389
  }, S.Struct.Encoded<{
1223
1390
  tool_choice: S.optionalWith<typeof ToolChoice, {
1224
1391
  nullable: true;
1225
1392
  }>;
1226
- tools: S.optionalWith<S.Array$<typeof Tool>, {
1393
+ tools: S.optionalWith<S.Array$<S.Union<[typeof Tool, typeof BashTool20250124, typeof TextEditor20250124]>>, {
1227
1394
  nullable: true;
1228
1395
  }>;
1229
1396
  messages: S.Array$<typeof InputMessage>;
1230
1397
  system: S.optionalWith<S.Union<[typeof S.String, S.Array$<typeof RequestTextBlock>]>, {
1231
1398
  nullable: true;
1232
1399
  }>;
1400
+ thinking: S.optionalWith<typeof ThinkingConfigParam, {
1401
+ nullable: true;
1402
+ }>;
1233
1403
  model: typeof Model;
1234
1404
  }>, never, {
1235
- readonly model: string;
1405
+ readonly thinking?: {
1406
+ readonly type: "enabled";
1407
+ readonly budget_tokens: number;
1408
+ } | {
1409
+ readonly type: "disabled";
1410
+ } | undefined;
1411
+ } & {
1412
+ readonly model: "claude-3-7-sonnet-latest" | "claude-3-7-sonnet-20250219" | "claude-3-5-haiku-latest" | "claude-3-5-haiku-20241022" | "claude-3-5-sonnet-latest" | "claude-3-5-sonnet-20241022" | "claude-3-5-sonnet-20240620" | "claude-3-opus-latest" | "claude-3-opus-20240229" | "claude-3-sonnet-20240229" | "claude-3-haiku-20240307" | "claude-2.1" | "claude-2.0";
1236
1413
  } & {
1237
1414
  readonly messages: readonly {
1238
1415
  readonly content: string | readonly ({
@@ -1272,6 +1449,9 @@ declare const CountMessageTokensParams_base: S.Class<CountMessageTokensParams, {
1272
1449
  readonly type: "base64";
1273
1450
  readonly media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
1274
1451
  readonly data: string;
1452
+ } | {
1453
+ readonly type: "url";
1454
+ readonly url: string;
1275
1455
  };
1276
1456
  } | {
1277
1457
  readonly type: "tool_use";
@@ -1327,6 +1507,9 @@ declare const CountMessageTokensParams_base: S.Class<CountMessageTokensParams, {
1327
1507
  readonly type: "base64";
1328
1508
  readonly media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
1329
1509
  readonly data: string;
1510
+ } | {
1511
+ readonly type: "url";
1512
+ readonly url: string;
1330
1513
  };
1331
1514
  })[] | undefined;
1332
1515
  } | {
@@ -1384,11 +1567,24 @@ declare const CountMessageTokensParams_base: S.Class<CountMessageTokensParams, {
1384
1567
  readonly type: "base64";
1385
1568
  readonly media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
1386
1569
  readonly data: string;
1570
+ } | {
1571
+ readonly type: "url";
1572
+ readonly url: string;
1387
1573
  };
1388
1574
  })[];
1575
+ } | {
1576
+ readonly type: "url";
1577
+ readonly url: string;
1389
1578
  };
1390
1579
  readonly title?: string | null | undefined;
1391
1580
  readonly context?: string | null | undefined;
1581
+ } | {
1582
+ readonly type: "thinking";
1583
+ readonly thinking: string;
1584
+ readonly signature: string;
1585
+ } | {
1586
+ readonly type: "redacted_thinking";
1587
+ readonly data: string;
1392
1588
  })[];
1393
1589
  readonly role: "user" | "assistant";
1394
1590
  }[];
@@ -1433,9 +1629,11 @@ declare const CountMessageTokensParams_base: S.Class<CountMessageTokensParams, {
1433
1629
  readonly type: "tool";
1434
1630
  readonly name: string;
1435
1631
  readonly disable_parallel_tool_use?: boolean | undefined;
1632
+ } | {
1633
+ readonly type: "none";
1436
1634
  } | undefined;
1437
1635
  } & {
1438
- readonly tools?: readonly {
1636
+ readonly tools?: readonly ({
1439
1637
  readonly cache_control?: {
1440
1638
  readonly type: "ephemeral";
1441
1639
  } | null | undefined;
@@ -1447,7 +1645,19 @@ declare const CountMessageTokensParams_base: S.Class<CountMessageTokensParams, {
1447
1645
  readonly [x: string]: unknown;
1448
1646
  } | null | undefined;
1449
1647
  };
1450
- }[] | undefined;
1648
+ } | {
1649
+ readonly type: "bash_20250124";
1650
+ readonly cache_control?: {
1651
+ readonly type: "ephemeral";
1652
+ } | null | undefined;
1653
+ readonly name: "bash";
1654
+ } | {
1655
+ readonly type: "text_editor_20250124";
1656
+ readonly cache_control?: {
1657
+ readonly type: "ephemeral";
1658
+ } | null | undefined;
1659
+ readonly name: "str_replace_editor";
1660
+ })[] | undefined;
1451
1661
  }, {}, {}>;
1452
1662
  export declare class CountMessageTokensParams extends CountMessageTokensParams_base {
1453
1663
  }
@@ -1551,12 +1761,21 @@ declare const BetaBase64ImageSource_base: S.Struct<{
1551
1761
  }>;
1552
1762
  export declare class BetaBase64ImageSource extends BetaBase64ImageSource_base {
1553
1763
  }
1764
+ declare const BetaURLImageSourceType_base: S.Literal<["url"]>;
1765
+ export declare class BetaURLImageSourceType extends BetaURLImageSourceType_base {
1766
+ }
1767
+ declare const BetaURLImageSource_base: S.Struct<{
1768
+ type: typeof BetaURLImageSourceType;
1769
+ url: typeof S.String;
1770
+ }>;
1771
+ export declare class BetaURLImageSource extends BetaURLImageSource_base {
1772
+ }
1554
1773
  declare const BetaRequestImageBlock_base: S.Struct<{
1555
1774
  cache_control: S.optionalWith<S.Union<[typeof BetaCacheControlEphemeral, typeof S.Null]>, {
1556
1775
  nullable: true;
1557
1776
  }>;
1558
1777
  type: typeof BetaRequestImageBlockType;
1559
- source: typeof BetaBase64ImageSource;
1778
+ source: S.Union<[typeof BetaBase64ImageSource, typeof BetaURLImageSource]>;
1560
1779
  }>;
1561
1780
  export declare class BetaRequestImageBlock extends BetaRequestImageBlock_base {
1562
1781
  }
@@ -1630,6 +1849,15 @@ declare const BetaContentBlockSource_base: S.Struct<{
1630
1849
  }>;
1631
1850
  export declare class BetaContentBlockSource extends BetaContentBlockSource_base {
1632
1851
  }
1852
+ declare const BetaURLPDFSourceType_base: S.Literal<["url"]>;
1853
+ export declare class BetaURLPDFSourceType extends BetaURLPDFSourceType_base {
1854
+ }
1855
+ declare const BetaURLPDFSource_base: S.Struct<{
1856
+ type: typeof BetaURLPDFSourceType;
1857
+ url: typeof S.String;
1858
+ }>;
1859
+ export declare class BetaURLPDFSource extends BetaURLPDFSource_base {
1860
+ }
1633
1861
  declare const BetaRequestCitationsConfig_base: S.Struct<{
1634
1862
  enabled: S.optionalWith<typeof S.Boolean, {
1635
1863
  nullable: true;
@@ -1642,7 +1870,7 @@ declare const BetaRequestDocumentBlock_base: S.Struct<{
1642
1870
  nullable: true;
1643
1871
  }>;
1644
1872
  type: typeof BetaRequestDocumentBlockType;
1645
- source: S.Union<[typeof BetaBase64PDFSource, typeof BetaPlainTextSource, typeof BetaContentBlockSource]>;
1873
+ source: S.Union<[typeof BetaBase64PDFSource, typeof BetaPlainTextSource, typeof BetaContentBlockSource, typeof BetaURLPDFSource]>;
1646
1874
  title: S.optionalWith<S.Union<[S.filter<S.filter<typeof S.String>>, typeof S.Null]>, {
1647
1875
  nullable: true;
1648
1876
  }>;
@@ -1655,7 +1883,26 @@ declare const BetaRequestDocumentBlock_base: S.Struct<{
1655
1883
  }>;
1656
1884
  export declare class BetaRequestDocumentBlock extends BetaRequestDocumentBlock_base {
1657
1885
  }
1658
- declare const BetaInputContentBlock_base: S.Union<[typeof BetaRequestTextBlock, typeof BetaRequestImageBlock, typeof BetaRequestToolUseBlock, typeof BetaRequestToolResultBlock, typeof BetaRequestDocumentBlock]>;
1886
+ declare const BetaRequestThinkingBlockType_base: S.Literal<["thinking"]>;
1887
+ export declare class BetaRequestThinkingBlockType extends BetaRequestThinkingBlockType_base {
1888
+ }
1889
+ declare const BetaRequestThinkingBlock_base: S.Struct<{
1890
+ type: typeof BetaRequestThinkingBlockType;
1891
+ thinking: typeof S.String;
1892
+ signature: typeof S.String;
1893
+ }>;
1894
+ export declare class BetaRequestThinkingBlock extends BetaRequestThinkingBlock_base {
1895
+ }
1896
+ declare const BetaRequestRedactedThinkingBlockType_base: S.Literal<["redacted_thinking"]>;
1897
+ export declare class BetaRequestRedactedThinkingBlockType extends BetaRequestRedactedThinkingBlockType_base {
1898
+ }
1899
+ declare const BetaRequestRedactedThinkingBlock_base: S.Struct<{
1900
+ type: typeof BetaRequestRedactedThinkingBlockType;
1901
+ data: typeof S.String;
1902
+ }>;
1903
+ export declare class BetaRequestRedactedThinkingBlock extends BetaRequestRedactedThinkingBlock_base {
1904
+ }
1905
+ declare const BetaInputContentBlock_base: S.Union<[typeof BetaRequestTextBlock, typeof BetaRequestImageBlock, typeof BetaRequestToolUseBlock, typeof BetaRequestToolResultBlock, typeof BetaRequestDocumentBlock, typeof BetaRequestThinkingBlock, typeof BetaRequestRedactedThinkingBlock]>;
1659
1906
  export declare class BetaInputContentBlock extends BetaInputContentBlock_base {
1660
1907
  }
1661
1908
  declare const BetaInputMessage_base: S.Struct<{
@@ -1671,6 +1918,26 @@ declare const BetaMetadata_base: S.Struct<{
1671
1918
  }>;
1672
1919
  export declare class BetaMetadata extends BetaMetadata_base {
1673
1920
  }
1921
+ declare const BetaThinkingConfigEnabledType_base: S.Literal<["enabled"]>;
1922
+ export declare class BetaThinkingConfigEnabledType extends BetaThinkingConfigEnabledType_base {
1923
+ }
1924
+ declare const BetaThinkingConfigEnabled_base: S.Struct<{
1925
+ type: typeof BetaThinkingConfigEnabledType;
1926
+ budget_tokens: S.filter<typeof S.Int>;
1927
+ }>;
1928
+ export declare class BetaThinkingConfigEnabled extends BetaThinkingConfigEnabled_base {
1929
+ }
1930
+ declare const BetaThinkingConfigDisabledType_base: S.Literal<["disabled"]>;
1931
+ export declare class BetaThinkingConfigDisabledType extends BetaThinkingConfigDisabledType_base {
1932
+ }
1933
+ declare const BetaThinkingConfigDisabled_base: S.Struct<{
1934
+ type: typeof BetaThinkingConfigDisabledType;
1935
+ }>;
1936
+ export declare class BetaThinkingConfigDisabled extends BetaThinkingConfigDisabled_base {
1937
+ }
1938
+ declare const BetaThinkingConfigParam_base: S.Union<[typeof BetaThinkingConfigEnabled, typeof BetaThinkingConfigDisabled]>;
1939
+ export declare class BetaThinkingConfigParam extends BetaThinkingConfigParam_base {
1940
+ }
1674
1941
  declare const BetaToolChoiceAutoType_base: S.Literal<["auto"]>;
1675
1942
  export declare class BetaToolChoiceAutoType extends BetaToolChoiceAutoType_base {
1676
1943
  }
@@ -1705,7 +1972,15 @@ declare const BetaToolChoiceTool_base: S.Struct<{
1705
1972
  }>;
1706
1973
  export declare class BetaToolChoiceTool extends BetaToolChoiceTool_base {
1707
1974
  }
1708
- declare const BetaToolChoice_base: S.Union<[typeof BetaToolChoiceAuto, typeof BetaToolChoiceAny, typeof BetaToolChoiceTool]>;
1975
+ declare const BetaToolChoiceNoneType_base: S.Literal<["none"]>;
1976
+ export declare class BetaToolChoiceNoneType extends BetaToolChoiceNoneType_base {
1977
+ }
1978
+ declare const BetaToolChoiceNone_base: S.Struct<{
1979
+ type: typeof BetaToolChoiceNoneType;
1980
+ }>;
1981
+ export declare class BetaToolChoiceNone extends BetaToolChoiceNone_base {
1982
+ }
1983
+ declare const BetaToolChoice_base: S.Union<[typeof BetaToolChoiceAuto, typeof BetaToolChoiceAny, typeof BetaToolChoiceTool, typeof BetaToolChoiceNone]>;
1709
1984
  export declare class BetaToolChoice extends BetaToolChoice_base {
1710
1985
  }
1711
1986
  declare const BetaToolTypeEnum_base: S.Literal<["custom"]>;
@@ -1787,6 +2062,56 @@ declare const BetaTextEditor20241022_base: S.Struct<{
1787
2062
  }>;
1788
2063
  export declare class BetaTextEditor20241022 extends BetaTextEditor20241022_base {
1789
2064
  }
2065
+ declare const BetaComputerUseTool20250124Type_base: S.Literal<["computer_20250124"]>;
2066
+ export declare class BetaComputerUseTool20250124Type extends BetaComputerUseTool20250124Type_base {
2067
+ }
2068
+ declare const BetaComputerUseTool20250124Name_base: S.Literal<["computer"]>;
2069
+ export declare class BetaComputerUseTool20250124Name extends BetaComputerUseTool20250124Name_base {
2070
+ }
2071
+ declare const BetaComputerUseTool20250124_base: S.Struct<{
2072
+ cache_control: S.optionalWith<S.Union<[typeof BetaCacheControlEphemeral, typeof S.Null]>, {
2073
+ nullable: true;
2074
+ }>;
2075
+ type: typeof BetaComputerUseTool20250124Type;
2076
+ name: typeof BetaComputerUseTool20250124Name;
2077
+ display_height_px: S.filter<typeof S.Int>;
2078
+ display_width_px: S.filter<typeof S.Int>;
2079
+ display_number: S.optionalWith<S.Union<[S.filter<typeof S.Int>, typeof S.Null]>, {
2080
+ nullable: true;
2081
+ }>;
2082
+ }>;
2083
+ export declare class BetaComputerUseTool20250124 extends BetaComputerUseTool20250124_base {
2084
+ }
2085
+ declare const BetaBashTool20250124Type_base: S.Literal<["bash_20250124"]>;
2086
+ export declare class BetaBashTool20250124Type extends BetaBashTool20250124Type_base {
2087
+ }
2088
+ declare const BetaBashTool20250124Name_base: S.Literal<["bash"]>;
2089
+ export declare class BetaBashTool20250124Name extends BetaBashTool20250124Name_base {
2090
+ }
2091
+ declare const BetaBashTool20250124_base: S.Struct<{
2092
+ cache_control: S.optionalWith<S.Union<[typeof BetaCacheControlEphemeral, typeof S.Null]>, {
2093
+ nullable: true;
2094
+ }>;
2095
+ type: typeof BetaBashTool20250124Type;
2096
+ name: typeof BetaBashTool20250124Name;
2097
+ }>;
2098
+ export declare class BetaBashTool20250124 extends BetaBashTool20250124_base {
2099
+ }
2100
+ declare const BetaTextEditor20250124Type_base: S.Literal<["text_editor_20250124"]>;
2101
+ export declare class BetaTextEditor20250124Type extends BetaTextEditor20250124Type_base {
2102
+ }
2103
+ declare const BetaTextEditor20250124Name_base: S.Literal<["str_replace_editor"]>;
2104
+ export declare class BetaTextEditor20250124Name extends BetaTextEditor20250124Name_base {
2105
+ }
2106
+ declare const BetaTextEditor20250124_base: S.Struct<{
2107
+ cache_control: S.optionalWith<S.Union<[typeof BetaCacheControlEphemeral, typeof S.Null]>, {
2108
+ nullable: true;
2109
+ }>;
2110
+ type: typeof BetaTextEditor20250124Type;
2111
+ name: typeof BetaTextEditor20250124Name;
2112
+ }>;
2113
+ export declare class BetaTextEditor20250124 extends BetaTextEditor20250124_base {
2114
+ }
1790
2115
  declare const BetaCreateMessageParams_base: S.Class<BetaCreateMessageParams, {
1791
2116
  model: typeof Model;
1792
2117
  messages: S.Array$<typeof BetaInputMessage>;
@@ -1806,10 +2131,13 @@ declare const BetaCreateMessageParams_base: S.Class<BetaCreateMessageParams, {
1806
2131
  temperature: S.optionalWith<S.filter<S.filter<typeof S.Number>>, {
1807
2132
  nullable: true;
1808
2133
  }>;
2134
+ thinking: S.optionalWith<typeof BetaThinkingConfigParam, {
2135
+ nullable: true;
2136
+ }>;
1809
2137
  tool_choice: S.optionalWith<typeof BetaToolChoice, {
1810
2138
  nullable: true;
1811
2139
  }>;
1812
- tools: S.optionalWith<S.Array$<S.Union<[typeof BetaTool, typeof BetaComputerUseTool20241022, typeof BetaBashTool20241022, typeof BetaTextEditor20241022]>>, {
2140
+ tools: S.optionalWith<S.Array$<S.Union<[typeof BetaTool, typeof BetaComputerUseTool20241022, typeof BetaBashTool20241022, typeof BetaTextEditor20241022, typeof BetaComputerUseTool20250124, typeof BetaBashTool20250124, typeof BetaTextEditor20250124]>>, {
1813
2141
  nullable: true;
1814
2142
  }>;
1815
2143
  top_k: S.optionalWith<S.filter<typeof S.Int>, {
@@ -1837,10 +2165,13 @@ declare const BetaCreateMessageParams_base: S.Class<BetaCreateMessageParams, {
1837
2165
  temperature: S.optionalWith<S.filter<S.filter<typeof S.Number>>, {
1838
2166
  nullable: true;
1839
2167
  }>;
2168
+ thinking: S.optionalWith<typeof BetaThinkingConfigParam, {
2169
+ nullable: true;
2170
+ }>;
1840
2171
  tool_choice: S.optionalWith<typeof BetaToolChoice, {
1841
2172
  nullable: true;
1842
2173
  }>;
1843
- tools: S.optionalWith<S.Array$<S.Union<[typeof BetaTool, typeof BetaComputerUseTool20241022, typeof BetaBashTool20241022, typeof BetaTextEditor20241022]>>, {
2174
+ tools: S.optionalWith<S.Array$<S.Union<[typeof BetaTool, typeof BetaComputerUseTool20241022, typeof BetaBashTool20241022, typeof BetaTextEditor20241022, typeof BetaComputerUseTool20250124, typeof BetaBashTool20250124, typeof BetaTextEditor20250124]>>, {
1844
2175
  nullable: true;
1845
2176
  }>;
1846
2177
  top_k: S.optionalWith<S.filter<typeof S.Int>, {
@@ -1850,7 +2181,14 @@ declare const BetaCreateMessageParams_base: S.Class<BetaCreateMessageParams, {
1850
2181
  nullable: true;
1851
2182
  }>;
1852
2183
  }>, never, {
1853
- readonly model: string;
2184
+ readonly thinking?: {
2185
+ readonly type: "enabled";
2186
+ readonly budget_tokens: number;
2187
+ } | {
2188
+ readonly type: "disabled";
2189
+ } | undefined;
2190
+ } & {
2191
+ readonly model: "claude-3-7-sonnet-latest" | "claude-3-7-sonnet-20250219" | "claude-3-5-haiku-latest" | "claude-3-5-haiku-20241022" | "claude-3-5-sonnet-latest" | "claude-3-5-sonnet-20241022" | "claude-3-5-sonnet-20240620" | "claude-3-opus-latest" | "claude-3-opus-20240229" | "claude-3-sonnet-20240229" | "claude-3-haiku-20240307" | "claude-2.1" | "claude-2.0";
1854
2192
  } & {
1855
2193
  readonly messages: readonly {
1856
2194
  readonly content: string | readonly ({
@@ -1890,6 +2228,9 @@ declare const BetaCreateMessageParams_base: S.Class<BetaCreateMessageParams, {
1890
2228
  readonly type: "base64";
1891
2229
  readonly media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
1892
2230
  readonly data: string;
2231
+ } | {
2232
+ readonly type: "url";
2233
+ readonly url: string;
1893
2234
  };
1894
2235
  } | {
1895
2236
  readonly type: "tool_use";
@@ -1945,6 +2286,9 @@ declare const BetaCreateMessageParams_base: S.Class<BetaCreateMessageParams, {
1945
2286
  readonly type: "base64";
1946
2287
  readonly media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
1947
2288
  readonly data: string;
2289
+ } | {
2290
+ readonly type: "url";
2291
+ readonly url: string;
1948
2292
  };
1949
2293
  })[] | undefined;
1950
2294
  } | {
@@ -2002,11 +2346,24 @@ declare const BetaCreateMessageParams_base: S.Class<BetaCreateMessageParams, {
2002
2346
  readonly type: "base64";
2003
2347
  readonly media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2004
2348
  readonly data: string;
2349
+ } | {
2350
+ readonly type: "url";
2351
+ readonly url: string;
2005
2352
  };
2006
2353
  })[];
2354
+ } | {
2355
+ readonly type: "url";
2356
+ readonly url: string;
2007
2357
  };
2008
2358
  readonly title?: string | null | undefined;
2009
2359
  readonly context?: string | null | undefined;
2360
+ } | {
2361
+ readonly type: "thinking";
2362
+ readonly thinking: string;
2363
+ readonly signature: string;
2364
+ } | {
2365
+ readonly type: "redacted_thinking";
2366
+ readonly data: string;
2010
2367
  })[];
2011
2368
  readonly role: "user" | "assistant";
2012
2369
  }[];
@@ -2063,6 +2420,8 @@ declare const BetaCreateMessageParams_base: S.Class<BetaCreateMessageParams, {
2063
2420
  readonly type: "tool";
2064
2421
  readonly name: string;
2065
2422
  readonly disable_parallel_tool_use?: boolean | undefined;
2423
+ } | {
2424
+ readonly type: "none";
2066
2425
  } | undefined;
2067
2426
  } & {
2068
2427
  readonly tools?: readonly ({
@@ -2099,6 +2458,27 @@ declare const BetaCreateMessageParams_base: S.Class<BetaCreateMessageParams, {
2099
2458
  readonly type: "ephemeral";
2100
2459
  } | null | undefined;
2101
2460
  readonly name: "str_replace_editor";
2461
+ } | {
2462
+ readonly type: "computer_20250124";
2463
+ readonly cache_control?: {
2464
+ readonly type: "ephemeral";
2465
+ } | null | undefined;
2466
+ readonly name: "computer";
2467
+ readonly display_height_px: number;
2468
+ readonly display_width_px: number;
2469
+ readonly display_number?: number | null | undefined;
2470
+ } | {
2471
+ readonly type: "bash_20250124";
2472
+ readonly cache_control?: {
2473
+ readonly type: "ephemeral";
2474
+ } | null | undefined;
2475
+ readonly name: "bash";
2476
+ } | {
2477
+ readonly type: "text_editor_20250124";
2478
+ readonly cache_control?: {
2479
+ readonly type: "ephemeral";
2480
+ } | null | undefined;
2481
+ readonly name: "str_replace_editor";
2102
2482
  })[] | undefined;
2103
2483
  } & {
2104
2484
  readonly top_k?: number | undefined;
@@ -2175,7 +2555,26 @@ declare const BetaResponseToolUseBlock_base: S.Struct<{
2175
2555
  }>;
2176
2556
  export declare class BetaResponseToolUseBlock extends BetaResponseToolUseBlock_base {
2177
2557
  }
2178
- declare const BetaContentBlock_base: S.Union<[typeof BetaResponseTextBlock, typeof BetaResponseToolUseBlock]>;
2558
+ declare const BetaResponseThinkingBlockType_base: S.Literal<["thinking"]>;
2559
+ export declare class BetaResponseThinkingBlockType extends BetaResponseThinkingBlockType_base {
2560
+ }
2561
+ declare const BetaResponseThinkingBlock_base: S.Struct<{
2562
+ type: S.PropertySignature<":", "thinking", never, ":", "thinking", true, never>;
2563
+ thinking: typeof S.String;
2564
+ signature: typeof S.String;
2565
+ }>;
2566
+ export declare class BetaResponseThinkingBlock extends BetaResponseThinkingBlock_base {
2567
+ }
2568
+ declare const BetaResponseRedactedThinkingBlockType_base: S.Literal<["redacted_thinking"]>;
2569
+ export declare class BetaResponseRedactedThinkingBlockType extends BetaResponseRedactedThinkingBlockType_base {
2570
+ }
2571
+ declare const BetaResponseRedactedThinkingBlock_base: S.Struct<{
2572
+ type: S.PropertySignature<":", "redacted_thinking", never, ":", "redacted_thinking", true, never>;
2573
+ data: typeof S.String;
2574
+ }>;
2575
+ export declare class BetaResponseRedactedThinkingBlock extends BetaResponseRedactedThinkingBlock_base {
2576
+ }
2577
+ declare const BetaContentBlock_base: S.Union<[typeof BetaResponseTextBlock, typeof BetaResponseToolUseBlock, typeof BetaResponseThinkingBlock, typeof BetaResponseRedactedThinkingBlock]>;
2179
2578
  export declare class BetaContentBlock extends BetaContentBlock_base {
2180
2579
  }
2181
2580
  declare const BetaMessageStopReasonEnum_base: S.Literal<["end_turn", "max_tokens", "stop_sequence", "tool_use"]>;
@@ -2252,11 +2651,18 @@ declare const BetaMessage_base: S.Class<BetaMessage, {
2252
2651
  readonly input: {
2253
2652
  readonly [x: string]: unknown;
2254
2653
  };
2654
+ } | {
2655
+ readonly type: "thinking";
2656
+ readonly thinking: string;
2657
+ readonly signature: string;
2658
+ } | {
2659
+ readonly type: "redacted_thinking";
2660
+ readonly data: string;
2255
2661
  })[];
2256
2662
  } & {
2257
2663
  readonly role?: "assistant" | undefined;
2258
2664
  } & {
2259
- readonly model: string;
2665
+ readonly model: "claude-3-7-sonnet-latest" | "claude-3-7-sonnet-20250219" | "claude-3-5-haiku-latest" | "claude-3-5-haiku-20241022" | "claude-3-5-sonnet-latest" | "claude-3-5-sonnet-20241022" | "claude-3-5-sonnet-20240620" | "claude-3-opus-latest" | "claude-3-opus-20240229" | "claude-3-sonnet-20240229" | "claude-3-haiku-20240307" | "claude-2.1" | "claude-2.0";
2260
2666
  } & {
2261
2667
  readonly stop_sequence?: string | null | undefined;
2262
2668
  } & {
@@ -2659,28 +3065,41 @@ declare const BetaCountMessageTokensParams_base: S.Class<BetaCountMessageTokensP
2659
3065
  tool_choice: S.optionalWith<typeof BetaToolChoice, {
2660
3066
  nullable: true;
2661
3067
  }>;
2662
- tools: S.optionalWith<S.Array$<S.Union<[typeof BetaTool, typeof BetaComputerUseTool20241022, typeof BetaBashTool20241022, typeof BetaTextEditor20241022]>>, {
3068
+ tools: S.optionalWith<S.Array$<S.Union<[typeof BetaTool, typeof BetaComputerUseTool20241022, typeof BetaBashTool20241022, typeof BetaTextEditor20241022, typeof BetaComputerUseTool20250124, typeof BetaBashTool20250124, typeof BetaTextEditor20250124]>>, {
2663
3069
  nullable: true;
2664
3070
  }>;
2665
3071
  messages: S.Array$<typeof BetaInputMessage>;
2666
3072
  system: S.optionalWith<S.Union<[typeof S.String, S.Array$<typeof BetaRequestTextBlock>]>, {
2667
3073
  nullable: true;
2668
3074
  }>;
3075
+ thinking: S.optionalWith<typeof BetaThinkingConfigParam, {
3076
+ nullable: true;
3077
+ }>;
2669
3078
  model: typeof Model;
2670
3079
  }, S.Struct.Encoded<{
2671
3080
  tool_choice: S.optionalWith<typeof BetaToolChoice, {
2672
3081
  nullable: true;
2673
3082
  }>;
2674
- tools: S.optionalWith<S.Array$<S.Union<[typeof BetaTool, typeof BetaComputerUseTool20241022, typeof BetaBashTool20241022, typeof BetaTextEditor20241022]>>, {
3083
+ tools: S.optionalWith<S.Array$<S.Union<[typeof BetaTool, typeof BetaComputerUseTool20241022, typeof BetaBashTool20241022, typeof BetaTextEditor20241022, typeof BetaComputerUseTool20250124, typeof BetaBashTool20250124, typeof BetaTextEditor20250124]>>, {
2675
3084
  nullable: true;
2676
3085
  }>;
2677
3086
  messages: S.Array$<typeof BetaInputMessage>;
2678
3087
  system: S.optionalWith<S.Union<[typeof S.String, S.Array$<typeof BetaRequestTextBlock>]>, {
2679
3088
  nullable: true;
2680
3089
  }>;
3090
+ thinking: S.optionalWith<typeof BetaThinkingConfigParam, {
3091
+ nullable: true;
3092
+ }>;
2681
3093
  model: typeof Model;
2682
3094
  }>, never, {
2683
- readonly model: string;
3095
+ readonly thinking?: {
3096
+ readonly type: "enabled";
3097
+ readonly budget_tokens: number;
3098
+ } | {
3099
+ readonly type: "disabled";
3100
+ } | undefined;
3101
+ } & {
3102
+ readonly model: "claude-3-7-sonnet-latest" | "claude-3-7-sonnet-20250219" | "claude-3-5-haiku-latest" | "claude-3-5-haiku-20241022" | "claude-3-5-sonnet-latest" | "claude-3-5-sonnet-20241022" | "claude-3-5-sonnet-20240620" | "claude-3-opus-latest" | "claude-3-opus-20240229" | "claude-3-sonnet-20240229" | "claude-3-haiku-20240307" | "claude-2.1" | "claude-2.0";
2684
3103
  } & {
2685
3104
  readonly messages: readonly {
2686
3105
  readonly content: string | readonly ({
@@ -2720,6 +3139,9 @@ declare const BetaCountMessageTokensParams_base: S.Class<BetaCountMessageTokensP
2720
3139
  readonly type: "base64";
2721
3140
  readonly media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2722
3141
  readonly data: string;
3142
+ } | {
3143
+ readonly type: "url";
3144
+ readonly url: string;
2723
3145
  };
2724
3146
  } | {
2725
3147
  readonly type: "tool_use";
@@ -2775,6 +3197,9 @@ declare const BetaCountMessageTokensParams_base: S.Class<BetaCountMessageTokensP
2775
3197
  readonly type: "base64";
2776
3198
  readonly media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2777
3199
  readonly data: string;
3200
+ } | {
3201
+ readonly type: "url";
3202
+ readonly url: string;
2778
3203
  };
2779
3204
  })[] | undefined;
2780
3205
  } | {
@@ -2832,11 +3257,24 @@ declare const BetaCountMessageTokensParams_base: S.Class<BetaCountMessageTokensP
2832
3257
  readonly type: "base64";
2833
3258
  readonly media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2834
3259
  readonly data: string;
3260
+ } | {
3261
+ readonly type: "url";
3262
+ readonly url: string;
2835
3263
  };
2836
3264
  })[];
3265
+ } | {
3266
+ readonly type: "url";
3267
+ readonly url: string;
2837
3268
  };
2838
3269
  readonly title?: string | null | undefined;
2839
3270
  readonly context?: string | null | undefined;
3271
+ } | {
3272
+ readonly type: "thinking";
3273
+ readonly thinking: string;
3274
+ readonly signature: string;
3275
+ } | {
3276
+ readonly type: "redacted_thinking";
3277
+ readonly data: string;
2840
3278
  })[];
2841
3279
  readonly role: "user" | "assistant";
2842
3280
  }[];
@@ -2881,6 +3319,8 @@ declare const BetaCountMessageTokensParams_base: S.Class<BetaCountMessageTokensP
2881
3319
  readonly type: "tool";
2882
3320
  readonly name: string;
2883
3321
  readonly disable_parallel_tool_use?: boolean | undefined;
3322
+ } | {
3323
+ readonly type: "none";
2884
3324
  } | undefined;
2885
3325
  } & {
2886
3326
  readonly tools?: readonly ({
@@ -2917,6 +3357,27 @@ declare const BetaCountMessageTokensParams_base: S.Class<BetaCountMessageTokensP
2917
3357
  readonly type: "ephemeral";
2918
3358
  } | null | undefined;
2919
3359
  readonly name: "str_replace_editor";
3360
+ } | {
3361
+ readonly type: "computer_20250124";
3362
+ readonly cache_control?: {
3363
+ readonly type: "ephemeral";
3364
+ } | null | undefined;
3365
+ readonly name: "computer";
3366
+ readonly display_height_px: number;
3367
+ readonly display_width_px: number;
3368
+ readonly display_number?: number | null | undefined;
3369
+ } | {
3370
+ readonly type: "bash_20250124";
3371
+ readonly cache_control?: {
3372
+ readonly type: "ephemeral";
3373
+ } | null | undefined;
3374
+ readonly name: "bash";
3375
+ } | {
3376
+ readonly type: "text_editor_20250124";
3377
+ readonly cache_control?: {
3378
+ readonly type: "ephemeral";
3379
+ } | null | undefined;
3380
+ readonly name: "str_replace_editor";
2920
3381
  })[] | undefined;
2921
3382
  }, {}, {}>;
2922
3383
  export declare class BetaCountMessageTokensParams extends BetaCountMessageTokensParams_base {