@adaline/anthropic 0.26.0 → 0.27.0

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.
package/dist/index.d.mts CHANGED
@@ -157,6 +157,110 @@ declare const toolChoice: {
157
157
  schema: zod.ZodOptional<zod.ZodDefault<zod.ZodNullable<zod.ZodEnum<[string, ...string[]]>>>>;
158
158
  };
159
159
 
160
+ declare const ChatModelExtendedThinkingConfigDef: (maxOutputTokens: number, maxSequences: number, minThinkingTokens: number, maxThinkingTokens: number) => {
161
+ extendedThinking: {
162
+ type: "select-boolean";
163
+ param: string;
164
+ title: string;
165
+ description: string;
166
+ default: boolean | null;
167
+ };
168
+ maxExtendedThinkingTokens: {
169
+ type: "range";
170
+ param: string;
171
+ title: string;
172
+ description: string;
173
+ max: number;
174
+ default: number;
175
+ min: number;
176
+ step: number;
177
+ };
178
+ temperature: {
179
+ type: "range";
180
+ param: string;
181
+ title: string;
182
+ description: string;
183
+ max: number;
184
+ default: number;
185
+ min: number;
186
+ step: number;
187
+ };
188
+ maxTokens: {
189
+ type: "range";
190
+ param: string;
191
+ title: string;
192
+ description: string;
193
+ max: number;
194
+ default: number;
195
+ min: number;
196
+ step: number;
197
+ };
198
+ stop: {
199
+ type: "multi-string";
200
+ param: string;
201
+ title: string;
202
+ description: string;
203
+ max: number;
204
+ };
205
+ topP: {
206
+ type: "range";
207
+ param: string;
208
+ title: string;
209
+ description: string;
210
+ max: number;
211
+ default: number;
212
+ min: number;
213
+ step: number;
214
+ };
215
+ topK: {
216
+ type: "range";
217
+ param: string;
218
+ title: string;
219
+ description: string;
220
+ max: number;
221
+ default: number;
222
+ min: number;
223
+ step: number;
224
+ };
225
+ toolChoice: {
226
+ type: "select-string";
227
+ param: string;
228
+ title: string;
229
+ description: string;
230
+ default: string;
231
+ choices: string[];
232
+ };
233
+ };
234
+ declare const ChatModelExtendedThinkingConfigSchema: (maxOutputTokens: number, maxSequences: number, minThinkingTokens: number, maxThinkingTokens: number) => zod.ZodObject<zod.objectUtil.extendShape<{
235
+ temperature: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
236
+ maxTokens: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
237
+ stop: zod.ZodOptional<zod.ZodDefault<zod.ZodArray<zod.ZodString, "many">>>;
238
+ topP: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
239
+ topK: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
240
+ toolChoice: zod.ZodOptional<zod.ZodDefault<zod.ZodNullable<zod.ZodEnum<[string, ...string[]]>>>>;
241
+ }, {
242
+ extendedThinking: zod.ZodOptional<zod.ZodDefault<zod.ZodNullable<zod.ZodBoolean>>>;
243
+ maxExtendedThinkingTokens: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
244
+ }>, "strip", zod.ZodTypeAny, {
245
+ temperature?: number | undefined;
246
+ maxTokens?: number | undefined;
247
+ stop?: string[] | undefined;
248
+ topP?: number | undefined;
249
+ topK?: number | undefined;
250
+ toolChoice?: string | null | undefined;
251
+ extendedThinking?: boolean | null | undefined;
252
+ maxExtendedThinkingTokens?: number | undefined;
253
+ }, {
254
+ temperature?: number | undefined;
255
+ maxTokens?: number | undefined;
256
+ stop?: string[] | undefined;
257
+ topP?: number | undefined;
258
+ topK?: number | undefined;
259
+ toolChoice?: string | null | undefined;
260
+ extendedThinking?: boolean | null | undefined;
261
+ maxExtendedThinkingTokens?: number | undefined;
262
+ }>;
263
+
160
264
  declare const AnthropicChatModelConfigs: {
161
265
  readonly base: (maxOutputTokens: number, maxSequences: number) => {
162
266
  def: {
@@ -239,6 +343,111 @@ declare const AnthropicChatModelConfigs: {
239
343
  toolChoice?: string | null | undefined;
240
344
  }>;
241
345
  };
346
+ readonly extendedThinking: (maxOutputTokens: number, maxSequences: number, minThinkingTokens: number, maxThinkingTokens: number) => {
347
+ def: {
348
+ extendedThinking: {
349
+ type: "select-boolean";
350
+ param: string;
351
+ title: string;
352
+ description: string;
353
+ default: boolean | null;
354
+ };
355
+ maxExtendedThinkingTokens: {
356
+ type: "range";
357
+ param: string;
358
+ title: string;
359
+ description: string;
360
+ max: number;
361
+ default: number;
362
+ min: number;
363
+ step: number;
364
+ };
365
+ temperature: {
366
+ type: "range";
367
+ param: string;
368
+ title: string;
369
+ description: string;
370
+ max: number;
371
+ default: number;
372
+ min: number;
373
+ step: number;
374
+ };
375
+ maxTokens: {
376
+ type: "range";
377
+ param: string;
378
+ title: string;
379
+ description: string;
380
+ max: number;
381
+ default: number;
382
+ min: number;
383
+ step: number;
384
+ };
385
+ stop: {
386
+ type: "multi-string";
387
+ param: string;
388
+ title: string;
389
+ description: string;
390
+ max: number;
391
+ };
392
+ topP: {
393
+ type: "range";
394
+ param: string;
395
+ title: string;
396
+ description: string;
397
+ max: number;
398
+ default: number;
399
+ min: number;
400
+ step: number;
401
+ };
402
+ topK: {
403
+ type: "range";
404
+ param: string;
405
+ title: string;
406
+ description: string;
407
+ max: number;
408
+ default: number;
409
+ min: number;
410
+ step: number;
411
+ };
412
+ toolChoice: {
413
+ type: "select-string";
414
+ param: string;
415
+ title: string;
416
+ description: string;
417
+ default: string;
418
+ choices: string[];
419
+ };
420
+ };
421
+ schema: zod.ZodObject<zod.objectUtil.extendShape<{
422
+ temperature: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
423
+ maxTokens: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
424
+ stop: zod.ZodOptional<zod.ZodDefault<zod.ZodArray<zod.ZodString, "many">>>;
425
+ topP: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
426
+ topK: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
427
+ toolChoice: zod.ZodOptional<zod.ZodDefault<zod.ZodNullable<zod.ZodEnum<[string, ...string[]]>>>>;
428
+ }, {
429
+ extendedThinking: zod.ZodOptional<zod.ZodDefault<zod.ZodNullable<zod.ZodBoolean>>>;
430
+ maxExtendedThinkingTokens: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
431
+ }>, "strip", zod.ZodTypeAny, {
432
+ temperature?: number | undefined;
433
+ maxTokens?: number | undefined;
434
+ stop?: string[] | undefined;
435
+ topP?: number | undefined;
436
+ topK?: number | undefined;
437
+ toolChoice?: string | null | undefined;
438
+ extendedThinking?: boolean | null | undefined;
439
+ maxExtendedThinkingTokens?: number | undefined;
440
+ }, {
441
+ temperature?: number | undefined;
442
+ maxTokens?: number | undefined;
443
+ stop?: string[] | undefined;
444
+ topP?: number | undefined;
445
+ topK?: number | undefined;
446
+ toolChoice?: string | null | undefined;
447
+ extendedThinking?: boolean | null | undefined;
448
+ maxExtendedThinkingTokens?: number | undefined;
449
+ }>;
450
+ };
242
451
  };
243
452
  declare const AnthropicEmbeddingModelConfigs: {
244
453
  readonly base: () => {
@@ -465,6 +674,7 @@ declare const Claude3_5Sonnet20240620Schema: {
465
674
  }>;
466
675
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
467
676
  };
677
+ maxReasoningTokens?: number | undefined;
468
678
  };
469
679
  declare const Claude3_5Sonnet20240620Options: z.ZodObject<{
470
680
  modelName: z.ZodString;
@@ -533,6 +743,7 @@ declare const Claude3_5Sonnet20241022Schema: {
533
743
  }>;
534
744
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
535
745
  };
746
+ maxReasoningTokens?: number | undefined;
536
747
  };
537
748
  declare const Claude3_5Sonnet20241022Options: z.ZodObject<{
538
749
  modelName: z.ZodString;
@@ -601,6 +812,7 @@ declare const Claude3_5SonnetLatestSchema: {
601
812
  }>;
602
813
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
603
814
  };
815
+ maxReasoningTokens?: number | undefined;
604
816
  };
605
817
  declare const Claude3_5SonnetLatestOptions: z.ZodObject<{
606
818
  modelName: z.ZodString;
@@ -623,6 +835,75 @@ declare class Claude3_5SonnetLatest extends BaseChatModel {
623
835
  constructor(options: Claude3_5SonnetLatestOptionsType);
624
836
  }
625
837
 
838
+ declare const Claude3_7Sonnet20250219Literal = "claude-3-7-sonnet-20250219";
839
+ declare const Claude3_7Sonnet20250219Schema: {
840
+ description: string;
841
+ name: string;
842
+ roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
843
+ modalities: ["text" | "image" | "tool-call" | "tool-response" | "reasoning", ...("text" | "image" | "tool-call" | "tool-response" | "reasoning")[]];
844
+ maxInputTokens: number;
845
+ maxOutputTokens: number;
846
+ config: {
847
+ def: Record<string, {
848
+ type: "multi-string";
849
+ param: string;
850
+ title: string;
851
+ description: string;
852
+ max: number;
853
+ } | {
854
+ type: "object-schema";
855
+ param: string;
856
+ title: string;
857
+ description: string;
858
+ objectSchema?: any;
859
+ } | {
860
+ type: "range";
861
+ param: string;
862
+ title: string;
863
+ description: string;
864
+ max: number;
865
+ default: number;
866
+ min: number;
867
+ step: number;
868
+ } | {
869
+ type: "select-boolean";
870
+ param: string;
871
+ title: string;
872
+ description: string;
873
+ default: boolean | null;
874
+ } | {
875
+ type: "select-string";
876
+ param: string;
877
+ title: string;
878
+ description: string;
879
+ default: string;
880
+ choices: string[];
881
+ }>;
882
+ schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
883
+ };
884
+ maxReasoningTokens?: number | undefined;
885
+ };
886
+ declare const Claude3_7Sonnet20250219Options: z.ZodObject<{
887
+ modelName: z.ZodString;
888
+ apiKey: z.ZodString;
889
+ completeChatUrl: z.ZodOptional<z.ZodString>;
890
+ streamChatUrl: z.ZodOptional<z.ZodString>;
891
+ }, "strip", z.ZodTypeAny, {
892
+ modelName: string;
893
+ apiKey: string;
894
+ completeChatUrl?: string | undefined;
895
+ streamChatUrl?: string | undefined;
896
+ }, {
897
+ modelName: string;
898
+ apiKey: string;
899
+ completeChatUrl?: string | undefined;
900
+ streamChatUrl?: string | undefined;
901
+ }>;
902
+ type Claude3_7Sonnet20250219OptionsType = z.infer<typeof Claude3_7Sonnet20250219Options>;
903
+ declare class Claude3_7Sonnet20250219 extends BaseChatModel {
904
+ constructor(options: Claude3_7Sonnet20250219OptionsType);
905
+ }
906
+
626
907
  declare const Claude3Haiku20240307Literal = "claude-3-haiku-20240307";
627
908
  declare const Claude3Haiku20240307Schema: {
628
909
  description: string;
@@ -669,6 +950,7 @@ declare const Claude3Haiku20240307Schema: {
669
950
  }>;
670
951
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
671
952
  };
953
+ maxReasoningTokens?: number | undefined;
672
954
  };
673
955
  declare const Claude3Haiku20240307Options: z.ZodObject<{
674
956
  modelName: z.ZodString;
@@ -737,6 +1019,7 @@ declare const Claude3_5Haiku20241022Schema: {
737
1019
  }>;
738
1020
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
739
1021
  };
1022
+ maxReasoningTokens?: number | undefined;
740
1023
  };
741
1024
  declare const Claude3_5Haiku20241022Options: z.ZodObject<{
742
1025
  modelName: z.ZodString;
@@ -805,6 +1088,7 @@ declare const Claude3_5HaikuLatestSchema: {
805
1088
  }>;
806
1089
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
807
1090
  };
1091
+ maxReasoningTokens?: number | undefined;
808
1092
  };
809
1093
  declare const Claude3_5HaikuLatestOptions: z.ZodObject<{
810
1094
  modelName: z.ZodString;
@@ -873,6 +1157,7 @@ declare const Claude3Opus20240229Schema: {
873
1157
  }>;
874
1158
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
875
1159
  };
1160
+ maxReasoningTokens?: number | undefined;
876
1161
  };
877
1162
  declare const Claude3Opus20240229Options: z.ZodObject<{
878
1163
  modelName: z.ZodString;
@@ -941,6 +1226,7 @@ declare const Claude3Sonnet20240229Schema: {
941
1226
  }>;
942
1227
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
943
1228
  };
1229
+ maxReasoningTokens?: number | undefined;
944
1230
  };
945
1231
  declare const Claude3Sonnet20240229Options: z.ZodObject<{
946
1232
  modelName: z.ZodString;
@@ -973,6 +1259,8 @@ declare const AnthropicChatModelRolesMap: {
973
1259
 
974
1260
  declare const AnthropicChatModelModalities: ChatModelSchemaType["modalities"];
975
1261
  declare const AnthropicChatModelModalitiesEnum: z.ZodEnum<["text", "image", "tool-call", "tool-response"]>;
1262
+ declare const AnthropicThinkingChatModelModalities: ChatModelSchemaType["modalities"];
1263
+ declare const AnthropicThinkingChatModelModalitiesEnum: z.ZodEnum<["text", "image", "tool-call", "tool-response", "reasoning"]>;
976
1264
 
977
1265
  declare const AnthropicCompleteChatResponse: z.ZodObject<{
978
1266
  content: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -999,6 +1287,27 @@ declare const AnthropicCompleteChatResponse: z.ZodObject<{
999
1287
  name: string;
1000
1288
  id: string;
1001
1289
  input: Record<string, any>;
1290
+ }>, z.ZodObject<{
1291
+ type: z.ZodLiteral<"thinking">;
1292
+ thinking: z.ZodString;
1293
+ signature: z.ZodString;
1294
+ }, "strip", z.ZodTypeAny, {
1295
+ type: "thinking";
1296
+ thinking: string;
1297
+ signature: string;
1298
+ }, {
1299
+ type: "thinking";
1300
+ thinking: string;
1301
+ signature: string;
1302
+ }>, z.ZodObject<{
1303
+ type: z.ZodLiteral<"redacted_thinking">;
1304
+ data: z.ZodString;
1305
+ }, "strip", z.ZodTypeAny, {
1306
+ type: "redacted_thinking";
1307
+ data: string;
1308
+ }, {
1309
+ type: "redacted_thinking";
1310
+ data: string;
1002
1311
  }>]>, "many">;
1003
1312
  id: z.ZodString;
1004
1313
  model: z.ZodString;
@@ -1033,6 +1342,13 @@ declare const AnthropicCompleteChatResponse: z.ZodObject<{
1033
1342
  name: string;
1034
1343
  id: string;
1035
1344
  input: Record<string, any>;
1345
+ } | {
1346
+ type: "thinking";
1347
+ thinking: string;
1348
+ signature: string;
1349
+ } | {
1350
+ type: "redacted_thinking";
1351
+ data: string;
1036
1352
  })[];
1037
1353
  id: string;
1038
1354
  model: string;
@@ -1055,6 +1371,13 @@ declare const AnthropicCompleteChatResponse: z.ZodObject<{
1055
1371
  name: string;
1056
1372
  id: string;
1057
1373
  input: Record<string, any>;
1374
+ } | {
1375
+ type: "thinking";
1376
+ thinking: string;
1377
+ signature: string;
1378
+ } | {
1379
+ type: "redacted_thinking";
1380
+ data: string;
1058
1381
  })[];
1059
1382
  id: string;
1060
1383
  model: string;
@@ -1209,6 +1532,24 @@ declare const AnthropicStreamChatContentBlockStartResponse: z.ZodObject<{
1209
1532
  name: string;
1210
1533
  id: string;
1211
1534
  input: {};
1535
+ }>, z.ZodObject<{
1536
+ type: z.ZodLiteral<"thinking">;
1537
+ thinking: z.ZodString;
1538
+ }, "strip", z.ZodTypeAny, {
1539
+ type: "thinking";
1540
+ thinking: string;
1541
+ }, {
1542
+ type: "thinking";
1543
+ thinking: string;
1544
+ }>, z.ZodObject<{
1545
+ type: z.ZodLiteral<"redacted_thinking">;
1546
+ data: z.ZodString;
1547
+ }, "strip", z.ZodTypeAny, {
1548
+ type: "redacted_thinking";
1549
+ data: string;
1550
+ }, {
1551
+ type: "redacted_thinking";
1552
+ data: string;
1212
1553
  }>]>;
1213
1554
  }, "strip", z.ZodTypeAny, {
1214
1555
  type: "content_block_start";
@@ -1221,6 +1562,12 @@ declare const AnthropicStreamChatContentBlockStartResponse: z.ZodObject<{
1221
1562
  name: string;
1222
1563
  id: string;
1223
1564
  input: {};
1565
+ } | {
1566
+ type: "thinking";
1567
+ thinking: string;
1568
+ } | {
1569
+ type: "redacted_thinking";
1570
+ data: string;
1224
1571
  };
1225
1572
  }, {
1226
1573
  type: "content_block_start";
@@ -1233,6 +1580,12 @@ declare const AnthropicStreamChatContentBlockStartResponse: z.ZodObject<{
1233
1580
  name: string;
1234
1581
  id: string;
1235
1582
  input: {};
1583
+ } | {
1584
+ type: "thinking";
1585
+ thinking: string;
1586
+ } | {
1587
+ type: "redacted_thinking";
1588
+ data: string;
1236
1589
  };
1237
1590
  }>;
1238
1591
  declare const AnthropicStreamChatContentBlockDeltaResponse: z.ZodObject<{
@@ -1256,6 +1609,24 @@ declare const AnthropicStreamChatContentBlockDeltaResponse: z.ZodObject<{
1256
1609
  }, {
1257
1610
  type: "input_json_delta";
1258
1611
  partial_json: string;
1612
+ }>, z.ZodObject<{
1613
+ type: z.ZodLiteral<"thinking_delta">;
1614
+ thinking: z.ZodString;
1615
+ }, "strip", z.ZodTypeAny, {
1616
+ type: "thinking_delta";
1617
+ thinking: string;
1618
+ }, {
1619
+ type: "thinking_delta";
1620
+ thinking: string;
1621
+ }>, z.ZodObject<{
1622
+ type: z.ZodLiteral<"signature_delta">;
1623
+ signature: z.ZodString;
1624
+ }, "strip", z.ZodTypeAny, {
1625
+ type: "signature_delta";
1626
+ signature: string;
1627
+ }, {
1628
+ type: "signature_delta";
1629
+ signature: string;
1259
1630
  }>]>;
1260
1631
  }, "strip", z.ZodTypeAny, {
1261
1632
  type: "content_block_delta";
@@ -1266,6 +1637,12 @@ declare const AnthropicStreamChatContentBlockDeltaResponse: z.ZodObject<{
1266
1637
  } | {
1267
1638
  type: "input_json_delta";
1268
1639
  partial_json: string;
1640
+ } | {
1641
+ type: "thinking_delta";
1642
+ thinking: string;
1643
+ } | {
1644
+ type: "signature_delta";
1645
+ signature: string;
1269
1646
  };
1270
1647
  }, {
1271
1648
  type: "content_block_delta";
@@ -1276,9 +1653,40 @@ declare const AnthropicStreamChatContentBlockDeltaResponse: z.ZodObject<{
1276
1653
  } | {
1277
1654
  type: "input_json_delta";
1278
1655
  partial_json: string;
1656
+ } | {
1657
+ type: "thinking_delta";
1658
+ thinking: string;
1659
+ } | {
1660
+ type: "signature_delta";
1661
+ signature: string;
1279
1662
  };
1280
1663
  }>;
1281
1664
 
1665
+ declare const AnthropicRequestThinkingContent: z.ZodObject<{
1666
+ type: z.ZodLiteral<"thinking">;
1667
+ thinking: z.ZodOptional<z.ZodString>;
1668
+ signature: z.ZodOptional<z.ZodString>;
1669
+ }, "strip", z.ZodTypeAny, {
1670
+ type: "thinking";
1671
+ thinking?: string | undefined;
1672
+ signature?: string | undefined;
1673
+ }, {
1674
+ type: "thinking";
1675
+ thinking?: string | undefined;
1676
+ signature?: string | undefined;
1677
+ }>;
1678
+ type AnthropicRequestThinkingContentType = z.infer<typeof AnthropicRequestThinkingContent>;
1679
+ declare const AnthropicRequestRedactedThinkingContent: z.ZodObject<{
1680
+ type: z.ZodLiteral<"redacted_thinking">;
1681
+ data: z.ZodString;
1682
+ }, "strip", z.ZodTypeAny, {
1683
+ type: "redacted_thinking";
1684
+ data: string;
1685
+ }, {
1686
+ type: "redacted_thinking";
1687
+ data: string;
1688
+ }>;
1689
+ type AnthropicRequestRedactedThinkingContentType = z.infer<typeof AnthropicRequestRedactedThinkingContent>;
1282
1690
  declare const AnthropicRequestTool: z.ZodObject<{
1283
1691
  name: z.ZodString;
1284
1692
  description: z.ZodOptional<z.ZodString>;
@@ -1691,10 +2099,38 @@ declare const AnthropicRequestAssistantMessage: z.ZodObject<{
1691
2099
  };
1692
2100
  })[];
1693
2101
  tool_use_id: string;
2102
+ }>, z.ZodObject<{
2103
+ type: z.ZodLiteral<"thinking">;
2104
+ thinking: z.ZodOptional<z.ZodString>;
2105
+ signature: z.ZodOptional<z.ZodString>;
2106
+ }, "strip", z.ZodTypeAny, {
2107
+ type: "thinking";
2108
+ thinking?: string | undefined;
2109
+ signature?: string | undefined;
2110
+ }, {
2111
+ type: "thinking";
2112
+ thinking?: string | undefined;
2113
+ signature?: string | undefined;
2114
+ }>, z.ZodObject<{
2115
+ type: z.ZodLiteral<"redacted_thinking">;
2116
+ data: z.ZodString;
2117
+ }, "strip", z.ZodTypeAny, {
2118
+ type: "redacted_thinking";
2119
+ data: string;
2120
+ }, {
2121
+ type: "redacted_thinking";
2122
+ data: string;
1694
2123
  }>]>, "many">]>;
1695
2124
  }, "strip", z.ZodTypeAny, {
1696
2125
  role: "assistant";
1697
2126
  content: string | ({
2127
+ type: "thinking";
2128
+ thinking?: string | undefined;
2129
+ signature?: string | undefined;
2130
+ } | {
2131
+ type: "redacted_thinking";
2132
+ data: string;
2133
+ } | {
1698
2134
  type: "text";
1699
2135
  text: string;
1700
2136
  } | {
@@ -1715,6 +2151,13 @@ declare const AnthropicRequestAssistantMessage: z.ZodObject<{
1715
2151
  }, {
1716
2152
  role: "assistant";
1717
2153
  content: string | ({
2154
+ type: "thinking";
2155
+ thinking?: string | undefined;
2156
+ signature?: string | undefined;
2157
+ } | {
2158
+ type: "redacted_thinking";
2159
+ data: string;
2160
+ } | {
1718
2161
  type: "text";
1719
2162
  text: string;
1720
2163
  } | {
@@ -1980,10 +2423,38 @@ declare const AnthropicRequestMessage: z.ZodUnion<[z.ZodObject<{
1980
2423
  };
1981
2424
  })[];
1982
2425
  tool_use_id: string;
2426
+ }>, z.ZodObject<{
2427
+ type: z.ZodLiteral<"thinking">;
2428
+ thinking: z.ZodOptional<z.ZodString>;
2429
+ signature: z.ZodOptional<z.ZodString>;
2430
+ }, "strip", z.ZodTypeAny, {
2431
+ type: "thinking";
2432
+ thinking?: string | undefined;
2433
+ signature?: string | undefined;
2434
+ }, {
2435
+ type: "thinking";
2436
+ thinking?: string | undefined;
2437
+ signature?: string | undefined;
2438
+ }>, z.ZodObject<{
2439
+ type: z.ZodLiteral<"redacted_thinking">;
2440
+ data: z.ZodString;
2441
+ }, "strip", z.ZodTypeAny, {
2442
+ type: "redacted_thinking";
2443
+ data: string;
2444
+ }, {
2445
+ type: "redacted_thinking";
2446
+ data: string;
1983
2447
  }>]>, "many">]>;
1984
2448
  }, "strip", z.ZodTypeAny, {
1985
2449
  role: "assistant";
1986
2450
  content: string | ({
2451
+ type: "thinking";
2452
+ thinking?: string | undefined;
2453
+ signature?: string | undefined;
2454
+ } | {
2455
+ type: "redacted_thinking";
2456
+ data: string;
2457
+ } | {
1987
2458
  type: "text";
1988
2459
  text: string;
1989
2460
  } | {
@@ -2004,6 +2475,13 @@ declare const AnthropicRequestMessage: z.ZodUnion<[z.ZodObject<{
2004
2475
  }, {
2005
2476
  role: "assistant";
2006
2477
  content: string | ({
2478
+ type: "thinking";
2479
+ thinking?: string | undefined;
2480
+ signature?: string | undefined;
2481
+ } | {
2482
+ type: "redacted_thinking";
2483
+ data: string;
2484
+ } | {
2007
2485
  type: "text";
2008
2486
  text: string;
2009
2487
  } | {
@@ -2271,10 +2749,38 @@ declare const AnthropicRequest: z.ZodObject<{
2271
2749
  };
2272
2750
  })[];
2273
2751
  tool_use_id: string;
2752
+ }>, z.ZodObject<{
2753
+ type: z.ZodLiteral<"thinking">;
2754
+ thinking: z.ZodOptional<z.ZodString>;
2755
+ signature: z.ZodOptional<z.ZodString>;
2756
+ }, "strip", z.ZodTypeAny, {
2757
+ type: "thinking";
2758
+ thinking?: string | undefined;
2759
+ signature?: string | undefined;
2760
+ }, {
2761
+ type: "thinking";
2762
+ thinking?: string | undefined;
2763
+ signature?: string | undefined;
2764
+ }>, z.ZodObject<{
2765
+ type: z.ZodLiteral<"redacted_thinking">;
2766
+ data: z.ZodString;
2767
+ }, "strip", z.ZodTypeAny, {
2768
+ type: "redacted_thinking";
2769
+ data: string;
2770
+ }, {
2771
+ type: "redacted_thinking";
2772
+ data: string;
2274
2773
  }>]>, "many">]>;
2275
2774
  }, "strip", z.ZodTypeAny, {
2276
2775
  role: "assistant";
2277
2776
  content: string | ({
2777
+ type: "thinking";
2778
+ thinking?: string | undefined;
2779
+ signature?: string | undefined;
2780
+ } | {
2781
+ type: "redacted_thinking";
2782
+ data: string;
2783
+ } | {
2278
2784
  type: "text";
2279
2785
  text: string;
2280
2786
  } | {
@@ -2295,6 +2801,13 @@ declare const AnthropicRequest: z.ZodObject<{
2295
2801
  }, {
2296
2802
  role: "assistant";
2297
2803
  content: string | ({
2804
+ type: "thinking";
2805
+ thinking?: string | undefined;
2806
+ signature?: string | undefined;
2807
+ } | {
2808
+ type: "redacted_thinking";
2809
+ data: string;
2810
+ } | {
2298
2811
  type: "text";
2299
2812
  text: string;
2300
2813
  } | {
@@ -2379,6 +2892,13 @@ declare const AnthropicRequest: z.ZodObject<{
2379
2892
  } | {
2380
2893
  role: "assistant";
2381
2894
  content: string | ({
2895
+ type: "thinking";
2896
+ thinking?: string | undefined;
2897
+ signature?: string | undefined;
2898
+ } | {
2899
+ type: "redacted_thinking";
2900
+ data: string;
2901
+ } | {
2382
2902
  type: "text";
2383
2903
  text: string;
2384
2904
  } | {
@@ -2446,6 +2966,13 @@ declare const AnthropicRequest: z.ZodObject<{
2446
2966
  } | {
2447
2967
  role: "assistant";
2448
2968
  content: string | ({
2969
+ type: "thinking";
2970
+ thinking?: string | undefined;
2971
+ signature?: string | undefined;
2972
+ } | {
2973
+ type: "redacted_thinking";
2974
+ data: string;
2975
+ } | {
2449
2976
  type: "text";
2450
2977
  text: string;
2451
2978
  } | {
@@ -3001,4 +3528,4 @@ declare class Anthropic<C extends BaseChatModelOptionsType, E extends BaseEmbedd
3001
3528
  embeddingModel(options: E): EmbeddingModelV1;
3002
3529
  }
3003
3530
 
3004
- export { Anthropic, AnthropicChatModelConfigs, AnthropicChatModelModalities, AnthropicChatModelModalitiesEnum, AnthropicChatModelRoles, AnthropicChatModelRolesMap, AnthropicCompleteChatResponse, type AnthropicCompleteChatResponseType, AnthropicEmbeddingModelConfigs, AnthropicEmbeddingModelModalities, AnthropicEmbeddingModelModalitiesEnum, AnthropicEmbeddingRequest, AnthropicEmbeddingRequestInput, type AnthropicEmbeddingRequestInputType, type AnthropicEmbeddingRequestType, AnthropicGetEmbeddingsResponse, AnthropicRequest, AnthropicRequestAssistantMessage, type AnthropicRequestAssistantMessageType, AnthropicRequestImageContent, type AnthropicRequestImageContentType, AnthropicRequestMessage, type AnthropicRequestMessageType, AnthropicRequestTextContent, type AnthropicRequestTextContentType, AnthropicRequestTool, AnthropicRequestToolCallContent, type AnthropicRequestToolCallContentType, AnthropicRequestToolChoiceEnum, type AnthropicRequestToolChoiceEnumType, AnthropicRequestToolChoiceTool, type AnthropicRequestToolChoiceToolType, AnthropicRequestToolResponseContent, type AnthropicRequestToolResponseContentType, type AnthropicRequestToolType, type AnthropicRequestType, AnthropicRequestUserMessage, type AnthropicRequestUserMessageType, AnthropicStreamChatContentBlockDeltaResponse, AnthropicStreamChatContentBlockStartResponse, AnthropicStreamChatMessageDeltaResponse, AnthropicStreamChatMessageStartResponse, BaseChatModel, BaseChatModelOptions, type BaseChatModelOptionsType, BaseEmbeddingModel, BaseEmbeddingModelOptions, type BaseEmbeddingModelOptionsType, ChatModelBaseConfigDef, ChatModelBaseConfigSchema, Claude3Haiku20240307, Claude3Haiku20240307Literal, Claude3Haiku20240307Options, type Claude3Haiku20240307OptionsType, Claude3Haiku20240307Schema, Claude3Opus20240229, Claude3Opus20240229Literal, Claude3Opus20240229Options, type Claude3Opus20240229OptionsType, Claude3Opus20240229Schema, Claude3Sonnet20240229, Claude3Sonnet20240229Literal, Claude3Sonnet20240229Options, type Claude3Sonnet20240229OptionsType, Claude3Sonnet20240229Schema, Claude3_5Haiku20241022, Claude3_5Haiku20241022Literal, Claude3_5Haiku20241022Options, type Claude3_5Haiku20241022OptionsType, Claude3_5Haiku20241022Schema, Claude3_5HaikuLatest, Claude3_5HaikuLatestLiteral, Claude3_5HaikuLatestOptions, type Claude3_5HaikuLatestOptionsType, Claude3_5HaikuLatestSchema, Claude3_5Sonnet20240620, Claude3_5Sonnet20240620Literal, Claude3_5Sonnet20240620Options, type Claude3_5Sonnet20240620OptionsType, Claude3_5Sonnet20240620Schema, Claude3_5Sonnet20241022, Claude3_5Sonnet20241022Literal, Claude3_5Sonnet20241022Options, type Claude3_5Sonnet20241022OptionsType, Claude3_5Sonnet20241022Schema, Claude3_5SonnetLatest, Claude3_5SonnetLatestLiteral, Claude3_5SonnetLatestOptions, type Claude3_5SonnetLatestOptionsType, Claude3_5SonnetLatestSchema, EmbeddingModelBaseConfigDef, EmbeddingModelBaseConfigSchema, ProviderLiteral, Voyage3, Voyage3Lite, Voyage3LiteLiteral, Voyage3LiteOptions, type Voyage3LiteOptionsType, Voyage3LiteSchema, Voyage3Literal, Voyage3Options, type Voyage3OptionsType, Voyage3Schema, VoyageCode2, VoyageCode2Literal, VoyageCode2Options, type VoyageCode2OptionsType, VoyageCode2Schema, VoyageFinance2, VoyageFinance2Literal, VoyageFinance2Options, type VoyageFinance2OptionsType, VoyageFinance2Schema, VoyageLaw2, VoyageLaw2Literal, VoyageLaw2Options, type VoyageLaw2OptionsType, VoyageLaw2Schema, VoyageMultilingual2, VoyageMultilingual2Literal, VoyageMultilingual2Options, type VoyageMultilingual2OptionsType, VoyageMultilingual2Schema, encodingFormat, inputType, maxTokens, stop, temperature, toolChoice, topK, topP, truncation };
3531
+ export { Anthropic, AnthropicChatModelConfigs, AnthropicChatModelModalities, AnthropicChatModelModalitiesEnum, AnthropicChatModelRoles, AnthropicChatModelRolesMap, AnthropicCompleteChatResponse, type AnthropicCompleteChatResponseType, AnthropicEmbeddingModelConfigs, AnthropicEmbeddingModelModalities, AnthropicEmbeddingModelModalitiesEnum, AnthropicEmbeddingRequest, AnthropicEmbeddingRequestInput, type AnthropicEmbeddingRequestInputType, type AnthropicEmbeddingRequestType, AnthropicGetEmbeddingsResponse, AnthropicRequest, AnthropicRequestAssistantMessage, type AnthropicRequestAssistantMessageType, AnthropicRequestImageContent, type AnthropicRequestImageContentType, AnthropicRequestMessage, type AnthropicRequestMessageType, AnthropicRequestRedactedThinkingContent, type AnthropicRequestRedactedThinkingContentType, AnthropicRequestTextContent, type AnthropicRequestTextContentType, AnthropicRequestThinkingContent, type AnthropicRequestThinkingContentType, AnthropicRequestTool, AnthropicRequestToolCallContent, type AnthropicRequestToolCallContentType, AnthropicRequestToolChoiceEnum, type AnthropicRequestToolChoiceEnumType, AnthropicRequestToolChoiceTool, type AnthropicRequestToolChoiceToolType, AnthropicRequestToolResponseContent, type AnthropicRequestToolResponseContentType, type AnthropicRequestToolType, type AnthropicRequestType, AnthropicRequestUserMessage, type AnthropicRequestUserMessageType, AnthropicStreamChatContentBlockDeltaResponse, AnthropicStreamChatContentBlockStartResponse, AnthropicStreamChatMessageDeltaResponse, AnthropicStreamChatMessageStartResponse, AnthropicThinkingChatModelModalities, AnthropicThinkingChatModelModalitiesEnum, BaseChatModel, BaseChatModelOptions, type BaseChatModelOptionsType, BaseEmbeddingModel, BaseEmbeddingModelOptions, type BaseEmbeddingModelOptionsType, ChatModelBaseConfigDef, ChatModelBaseConfigSchema, ChatModelExtendedThinkingConfigDef, ChatModelExtendedThinkingConfigSchema, Claude3Haiku20240307, Claude3Haiku20240307Literal, Claude3Haiku20240307Options, type Claude3Haiku20240307OptionsType, Claude3Haiku20240307Schema, Claude3Opus20240229, Claude3Opus20240229Literal, Claude3Opus20240229Options, type Claude3Opus20240229OptionsType, Claude3Opus20240229Schema, Claude3Sonnet20240229, Claude3Sonnet20240229Literal, Claude3Sonnet20240229Options, type Claude3Sonnet20240229OptionsType, Claude3Sonnet20240229Schema, Claude3_5Haiku20241022, Claude3_5Haiku20241022Literal, Claude3_5Haiku20241022Options, type Claude3_5Haiku20241022OptionsType, Claude3_5Haiku20241022Schema, Claude3_5HaikuLatest, Claude3_5HaikuLatestLiteral, Claude3_5HaikuLatestOptions, type Claude3_5HaikuLatestOptionsType, Claude3_5HaikuLatestSchema, Claude3_5Sonnet20240620, Claude3_5Sonnet20240620Literal, Claude3_5Sonnet20240620Options, type Claude3_5Sonnet20240620OptionsType, Claude3_5Sonnet20240620Schema, Claude3_5Sonnet20241022, Claude3_5Sonnet20241022Literal, Claude3_5Sonnet20241022Options, type Claude3_5Sonnet20241022OptionsType, Claude3_5Sonnet20241022Schema, Claude3_5SonnetLatest, Claude3_5SonnetLatestLiteral, Claude3_5SonnetLatestOptions, type Claude3_5SonnetLatestOptionsType, Claude3_5SonnetLatestSchema, Claude3_7Sonnet20250219, Claude3_7Sonnet20250219Literal, Claude3_7Sonnet20250219Options, type Claude3_7Sonnet20250219OptionsType, Claude3_7Sonnet20250219Schema, EmbeddingModelBaseConfigDef, EmbeddingModelBaseConfigSchema, ProviderLiteral, Voyage3, Voyage3Lite, Voyage3LiteLiteral, Voyage3LiteOptions, type Voyage3LiteOptionsType, Voyage3LiteSchema, Voyage3Literal, Voyage3Options, type Voyage3OptionsType, Voyage3Schema, VoyageCode2, VoyageCode2Literal, VoyageCode2Options, type VoyageCode2OptionsType, VoyageCode2Schema, VoyageFinance2, VoyageFinance2Literal, VoyageFinance2Options, type VoyageFinance2OptionsType, VoyageFinance2Schema, VoyageLaw2, VoyageLaw2Literal, VoyageLaw2Options, type VoyageLaw2OptionsType, VoyageLaw2Schema, VoyageMultilingual2, VoyageMultilingual2Literal, VoyageMultilingual2Options, type VoyageMultilingual2OptionsType, VoyageMultilingual2Schema, encodingFormat, inputType, maxTokens, stop, temperature, toolChoice, topK, topP, truncation };