@adaline/anthropic 1.2.0 → 1.4.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
@@ -629,12 +629,12 @@ declare class BaseChatModel implements ChatModelV1<ChatModelSchemaType> {
629
629
  getModelPricing(): ChatModelPriceType;
630
630
  }
631
631
 
632
- declare const Claude3_5Sonnet20240620Literal = "claude-3-5-sonnet-20240620";
633
- declare const Claude3_5Sonnet20240620Schema: {
632
+ declare const Claude4Opus20250514Literal = "claude-4-opus-20250514";
633
+ declare const Claude4Opus20250514Schema: {
634
634
  description: string;
635
635
  name: string;
636
636
  roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
637
- modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
637
+ modalities: ["text" | "image" | "tool-call" | "tool-response" | "reasoning", ...("text" | "image" | "tool-call" | "tool-response" | "reasoning")[]];
638
638
  maxInputTokens: number;
639
639
  maxOutputTokens: number;
640
640
  config: {
@@ -691,7 +691,7 @@ declare const Claude3_5Sonnet20240620Schema: {
691
691
  };
692
692
  maxReasoningTokens?: number | undefined;
693
693
  };
694
- declare const Claude3_5Sonnet20240620Options: z.ZodObject<{
694
+ declare const Claude4Opus20250514Options: z.ZodObject<{
695
695
  modelName: z.ZodString;
696
696
  apiKey: z.ZodString;
697
697
  completeChatUrl: z.ZodOptional<z.ZodString>;
@@ -707,17 +707,17 @@ declare const Claude3_5Sonnet20240620Options: z.ZodObject<{
707
707
  completeChatUrl?: string | undefined;
708
708
  streamChatUrl?: string | undefined;
709
709
  }>;
710
- type Claude3_5Sonnet20240620OptionsType = z.infer<typeof Claude3_5Sonnet20240620Options>;
711
- declare class Claude3_5Sonnet20240620 extends BaseChatModel {
712
- constructor(options: Claude3_5Sonnet20240620OptionsType);
710
+ type Claude4Opus20250514OptionsType = z.infer<typeof Claude4Opus20250514Options>;
711
+ declare class Claude4Opus20250514 extends BaseChatModel {
712
+ constructor(options: Claude4Opus20250514OptionsType);
713
713
  }
714
714
 
715
- declare const Claude3_5Sonnet20241022Literal = "claude-3-5-sonnet-20241022";
716
- declare const Claude3_5Sonnet20241022Schema: {
715
+ declare const Claude4Sonnet20250514Literal = "claude-4-sonnet-20250514";
716
+ declare const Claude4Sonnet20250514Schema: {
717
717
  description: string;
718
718
  name: string;
719
719
  roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
720
- modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
720
+ modalities: ["text" | "image" | "tool-call" | "tool-response" | "reasoning", ...("text" | "image" | "tool-call" | "tool-response" | "reasoning")[]];
721
721
  maxInputTokens: number;
722
722
  maxOutputTokens: number;
723
723
  config: {
@@ -774,7 +774,7 @@ declare const Claude3_5Sonnet20241022Schema: {
774
774
  };
775
775
  maxReasoningTokens?: number | undefined;
776
776
  };
777
- declare const Claude3_5Sonnet20241022Options: z.ZodObject<{
777
+ declare const Claude4Sonnet20250514Options: z.ZodObject<{
778
778
  modelName: z.ZodString;
779
779
  apiKey: z.ZodString;
780
780
  completeChatUrl: z.ZodOptional<z.ZodString>;
@@ -790,13 +790,13 @@ declare const Claude3_5Sonnet20241022Options: z.ZodObject<{
790
790
  completeChatUrl?: string | undefined;
791
791
  streamChatUrl?: string | undefined;
792
792
  }>;
793
- type Claude3_5Sonnet20241022OptionsType = z.infer<typeof Claude3_5Sonnet20241022Options>;
794
- declare class Claude3_5Sonnet20241022 extends BaseChatModel {
795
- constructor(options: Claude3_5Sonnet20241022OptionsType);
793
+ type Claude4Sonnet20250514OptionsType = z.infer<typeof Claude4Sonnet20250514Options>;
794
+ declare class Claude4Sonnet20250514 extends BaseChatModel {
795
+ constructor(options: Claude4Sonnet20250514OptionsType);
796
796
  }
797
797
 
798
- declare const Claude3_5SonnetLatestLiteral = "claude-3-5-sonnet-latest";
799
- declare const Claude3_5SonnetLatestSchema: {
798
+ declare const Claude3_5Sonnet20240620Literal = "claude-3-5-sonnet-20240620";
799
+ declare const Claude3_5Sonnet20240620Schema: {
800
800
  description: string;
801
801
  name: string;
802
802
  roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
@@ -857,7 +857,7 @@ declare const Claude3_5SonnetLatestSchema: {
857
857
  };
858
858
  maxReasoningTokens?: number | undefined;
859
859
  };
860
- declare const Claude3_5SonnetLatestOptions: z.ZodObject<{
860
+ declare const Claude3_5Sonnet20240620Options: z.ZodObject<{
861
861
  modelName: z.ZodString;
862
862
  apiKey: z.ZodString;
863
863
  completeChatUrl: z.ZodOptional<z.ZodString>;
@@ -873,17 +873,17 @@ declare const Claude3_5SonnetLatestOptions: z.ZodObject<{
873
873
  completeChatUrl?: string | undefined;
874
874
  streamChatUrl?: string | undefined;
875
875
  }>;
876
- type Claude3_5SonnetLatestOptionsType = z.infer<typeof Claude3_5SonnetLatestOptions>;
877
- declare class Claude3_5SonnetLatest extends BaseChatModel {
878
- constructor(options: Claude3_5SonnetLatestOptionsType);
876
+ type Claude3_5Sonnet20240620OptionsType = z.infer<typeof Claude3_5Sonnet20240620Options>;
877
+ declare class Claude3_5Sonnet20240620 extends BaseChatModel {
878
+ constructor(options: Claude3_5Sonnet20240620OptionsType);
879
879
  }
880
880
 
881
- declare const Claude3_7Sonnet20250219Literal = "claude-3-7-sonnet-20250219";
882
- declare const Claude3_7Sonnet20250219Schema: {
881
+ declare const Claude3_5Sonnet20241022Literal = "claude-3-5-sonnet-20241022";
882
+ declare const Claude3_5Sonnet20241022Schema: {
883
883
  description: string;
884
884
  name: string;
885
885
  roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
886
- modalities: ["text" | "image" | "tool-call" | "tool-response" | "reasoning", ...("text" | "image" | "tool-call" | "tool-response" | "reasoning")[]];
886
+ modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
887
887
  maxInputTokens: number;
888
888
  maxOutputTokens: number;
889
889
  config: {
@@ -940,7 +940,7 @@ declare const Claude3_7Sonnet20250219Schema: {
940
940
  };
941
941
  maxReasoningTokens?: number | undefined;
942
942
  };
943
- declare const Claude3_7Sonnet20250219Options: z.ZodObject<{
943
+ declare const Claude3_5Sonnet20241022Options: z.ZodObject<{
944
944
  modelName: z.ZodString;
945
945
  apiKey: z.ZodString;
946
946
  completeChatUrl: z.ZodOptional<z.ZodString>;
@@ -956,18 +956,17 @@ declare const Claude3_7Sonnet20250219Options: z.ZodObject<{
956
956
  completeChatUrl?: string | undefined;
957
957
  streamChatUrl?: string | undefined;
958
958
  }>;
959
- type Claude3_7Sonnet20250219OptionsType = z.infer<typeof Claude3_7Sonnet20250219Options>;
960
- declare class Claude3_7Sonnet20250219 extends BaseChatModel {
961
- constructor(options: Claude3_7Sonnet20250219OptionsType);
962
- getDefaultHeaders(): HeadersType;
959
+ type Claude3_5Sonnet20241022OptionsType = z.infer<typeof Claude3_5Sonnet20241022Options>;
960
+ declare class Claude3_5Sonnet20241022 extends BaseChatModel {
961
+ constructor(options: Claude3_5Sonnet20241022OptionsType);
963
962
  }
964
963
 
965
- declare const Claude3Haiku20240307Literal = "claude-3-haiku-20240307";
966
- declare const Claude3Haiku20240307Schema: {
964
+ declare const Claude3_7Sonnet20250219Literal = "claude-3-7-sonnet-20250219";
965
+ declare const Claude3_7Sonnet20250219Schema: {
967
966
  description: string;
968
967
  name: string;
969
968
  roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
970
- modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
969
+ modalities: ["text" | "image" | "tool-call" | "tool-response" | "reasoning", ...("text" | "image" | "tool-call" | "tool-response" | "reasoning")[]];
971
970
  maxInputTokens: number;
972
971
  maxOutputTokens: number;
973
972
  config: {
@@ -1024,7 +1023,7 @@ declare const Claude3Haiku20240307Schema: {
1024
1023
  };
1025
1024
  maxReasoningTokens?: number | undefined;
1026
1025
  };
1027
- declare const Claude3Haiku20240307Options: z.ZodObject<{
1026
+ declare const Claude3_7Sonnet20250219Options: z.ZodObject<{
1028
1027
  modelName: z.ZodString;
1029
1028
  apiKey: z.ZodString;
1030
1029
  completeChatUrl: z.ZodOptional<z.ZodString>;
@@ -1040,13 +1039,14 @@ declare const Claude3Haiku20240307Options: z.ZodObject<{
1040
1039
  completeChatUrl?: string | undefined;
1041
1040
  streamChatUrl?: string | undefined;
1042
1041
  }>;
1043
- type Claude3Haiku20240307OptionsType = z.infer<typeof Claude3Haiku20240307Options>;
1044
- declare class Claude3Haiku20240307 extends BaseChatModel {
1045
- constructor(options: Claude3Haiku20240307OptionsType);
1042
+ type Claude3_7Sonnet20250219OptionsType = z.infer<typeof Claude3_7Sonnet20250219Options>;
1043
+ declare class Claude3_7Sonnet20250219 extends BaseChatModel {
1044
+ constructor(options: Claude3_7Sonnet20250219OptionsType);
1045
+ getDefaultHeaders(): HeadersType;
1046
1046
  }
1047
1047
 
1048
- declare const Claude3_5Haiku20241022Literal = "claude-3-5-haiku-20241022";
1049
- declare const Claude3_5Haiku20241022Schema: {
1048
+ declare const Claude3Haiku20240307Literal = "claude-3-haiku-20240307";
1049
+ declare const Claude3Haiku20240307Schema: {
1050
1050
  description: string;
1051
1051
  name: string;
1052
1052
  roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
@@ -1107,7 +1107,7 @@ declare const Claude3_5Haiku20241022Schema: {
1107
1107
  };
1108
1108
  maxReasoningTokens?: number | undefined;
1109
1109
  };
1110
- declare const Claude3_5Haiku20241022Options: z.ZodObject<{
1110
+ declare const Claude3Haiku20240307Options: z.ZodObject<{
1111
1111
  modelName: z.ZodString;
1112
1112
  apiKey: z.ZodString;
1113
1113
  completeChatUrl: z.ZodOptional<z.ZodString>;
@@ -1123,13 +1123,13 @@ declare const Claude3_5Haiku20241022Options: z.ZodObject<{
1123
1123
  completeChatUrl?: string | undefined;
1124
1124
  streamChatUrl?: string | undefined;
1125
1125
  }>;
1126
- type Claude3_5Haiku20241022OptionsType = z.infer<typeof Claude3_5Haiku20241022Options>;
1127
- declare class Claude3_5Haiku20241022 extends BaseChatModel {
1128
- constructor(options: Claude3_5Haiku20241022OptionsType);
1126
+ type Claude3Haiku20240307OptionsType = z.infer<typeof Claude3Haiku20240307Options>;
1127
+ declare class Claude3Haiku20240307 extends BaseChatModel {
1128
+ constructor(options: Claude3Haiku20240307OptionsType);
1129
1129
  }
1130
1130
 
1131
- declare const Claude3_5HaikuLatestLiteral = "claude-3-5-haiku-latest";
1132
- declare const Claude3_5HaikuLatestSchema: {
1131
+ declare const Claude3_5Haiku20241022Literal = "claude-3-5-haiku-20241022";
1132
+ declare const Claude3_5Haiku20241022Schema: {
1133
1133
  description: string;
1134
1134
  name: string;
1135
1135
  roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
@@ -1190,7 +1190,7 @@ declare const Claude3_5HaikuLatestSchema: {
1190
1190
  };
1191
1191
  maxReasoningTokens?: number | undefined;
1192
1192
  };
1193
- declare const Claude3_5HaikuLatestOptions: z.ZodObject<{
1193
+ declare const Claude3_5Haiku20241022Options: z.ZodObject<{
1194
1194
  modelName: z.ZodString;
1195
1195
  apiKey: z.ZodString;
1196
1196
  completeChatUrl: z.ZodOptional<z.ZodString>;
@@ -1206,9 +1206,9 @@ declare const Claude3_5HaikuLatestOptions: z.ZodObject<{
1206
1206
  completeChatUrl?: string | undefined;
1207
1207
  streamChatUrl?: string | undefined;
1208
1208
  }>;
1209
- type Claude3_5HaikuLatestOptionsType = z.infer<typeof Claude3_5HaikuLatestOptions>;
1210
- declare class Claude3_5HaikuLatest extends BaseChatModel {
1211
- constructor(options: Claude3_5HaikuLatestOptionsType);
1209
+ type Claude3_5Haiku20241022OptionsType = z.infer<typeof Claude3_5Haiku20241022Options>;
1210
+ declare class Claude3_5Haiku20241022 extends BaseChatModel {
1211
+ constructor(options: Claude3_5Haiku20241022OptionsType);
1212
1212
  }
1213
1213
 
1214
1214
  declare const Claude3Opus20240229Literal = "claude-3-opus-20240229";
@@ -1863,30 +1863,30 @@ declare const AnthropicRequestImageContent: z.ZodObject<{
1863
1863
  type: z.ZodLiteral<"image">;
1864
1864
  source: z.ZodObject<{
1865
1865
  type: z.ZodLiteral<"base64">;
1866
- mediaType: z.ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>;
1866
+ media_type: z.ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>;
1867
1867
  data: z.ZodString;
1868
1868
  }, "strip", z.ZodTypeAny, {
1869
1869
  type: "base64";
1870
1870
  data: string;
1871
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
1871
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
1872
1872
  }, {
1873
1873
  type: "base64";
1874
1874
  data: string;
1875
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
1875
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
1876
1876
  }>;
1877
1877
  }, "strip", z.ZodTypeAny, {
1878
1878
  type: "image";
1879
1879
  source: {
1880
1880
  type: "base64";
1881
1881
  data: string;
1882
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
1882
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
1883
1883
  };
1884
1884
  }, {
1885
1885
  type: "image";
1886
1886
  source: {
1887
1887
  type: "base64";
1888
1888
  data: string;
1889
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
1889
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
1890
1890
  };
1891
1891
  }>;
1892
1892
  type AnthropicRequestImageContentType = z.infer<typeof AnthropicRequestImageContent>;
@@ -1923,30 +1923,30 @@ declare const AnthropicRequestToolResponseContent: z.ZodObject<{
1923
1923
  type: z.ZodLiteral<"image">;
1924
1924
  source: z.ZodObject<{
1925
1925
  type: z.ZodLiteral<"base64">;
1926
- mediaType: z.ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>;
1926
+ media_type: z.ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>;
1927
1927
  data: z.ZodString;
1928
1928
  }, "strip", z.ZodTypeAny, {
1929
1929
  type: "base64";
1930
1930
  data: string;
1931
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
1931
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
1932
1932
  }, {
1933
1933
  type: "base64";
1934
1934
  data: string;
1935
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
1935
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
1936
1936
  }>;
1937
1937
  }, "strip", z.ZodTypeAny, {
1938
1938
  type: "image";
1939
1939
  source: {
1940
1940
  type: "base64";
1941
1941
  data: string;
1942
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
1942
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
1943
1943
  };
1944
1944
  }, {
1945
1945
  type: "image";
1946
1946
  source: {
1947
1947
  type: "base64";
1948
1948
  data: string;
1949
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
1949
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
1950
1950
  };
1951
1951
  }>]>, "many">]>;
1952
1952
  }, "strip", z.ZodTypeAny, {
@@ -1959,7 +1959,7 @@ declare const AnthropicRequestToolResponseContent: z.ZodObject<{
1959
1959
  source: {
1960
1960
  type: "base64";
1961
1961
  data: string;
1962
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
1962
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
1963
1963
  };
1964
1964
  })[];
1965
1965
  tool_use_id: string;
@@ -1973,7 +1973,7 @@ declare const AnthropicRequestToolResponseContent: z.ZodObject<{
1973
1973
  source: {
1974
1974
  type: "base64";
1975
1975
  data: string;
1976
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
1976
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
1977
1977
  };
1978
1978
  })[];
1979
1979
  tool_use_id: string;
@@ -1994,30 +1994,30 @@ declare const AnthropicRequestUserMessage: z.ZodObject<{
1994
1994
  type: z.ZodLiteral<"image">;
1995
1995
  source: z.ZodObject<{
1996
1996
  type: z.ZodLiteral<"base64">;
1997
- mediaType: z.ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>;
1997
+ media_type: z.ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>;
1998
1998
  data: z.ZodString;
1999
1999
  }, "strip", z.ZodTypeAny, {
2000
2000
  type: "base64";
2001
2001
  data: string;
2002
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2002
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2003
2003
  }, {
2004
2004
  type: "base64";
2005
2005
  data: string;
2006
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2006
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2007
2007
  }>;
2008
2008
  }, "strip", z.ZodTypeAny, {
2009
2009
  type: "image";
2010
2010
  source: {
2011
2011
  type: "base64";
2012
2012
  data: string;
2013
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2013
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2014
2014
  };
2015
2015
  }, {
2016
2016
  type: "image";
2017
2017
  source: {
2018
2018
  type: "base64";
2019
2019
  data: string;
2020
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2020
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2021
2021
  };
2022
2022
  }>, z.ZodObject<{
2023
2023
  type: z.ZodLiteral<"tool_result">;
@@ -2035,30 +2035,30 @@ declare const AnthropicRequestUserMessage: z.ZodObject<{
2035
2035
  type: z.ZodLiteral<"image">;
2036
2036
  source: z.ZodObject<{
2037
2037
  type: z.ZodLiteral<"base64">;
2038
- mediaType: z.ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>;
2038
+ media_type: z.ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>;
2039
2039
  data: z.ZodString;
2040
2040
  }, "strip", z.ZodTypeAny, {
2041
2041
  type: "base64";
2042
2042
  data: string;
2043
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2043
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2044
2044
  }, {
2045
2045
  type: "base64";
2046
2046
  data: string;
2047
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2047
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2048
2048
  }>;
2049
2049
  }, "strip", z.ZodTypeAny, {
2050
2050
  type: "image";
2051
2051
  source: {
2052
2052
  type: "base64";
2053
2053
  data: string;
2054
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2054
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2055
2055
  };
2056
2056
  }, {
2057
2057
  type: "image";
2058
2058
  source: {
2059
2059
  type: "base64";
2060
2060
  data: string;
2061
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2061
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2062
2062
  };
2063
2063
  }>]>, "many">]>;
2064
2064
  }, "strip", z.ZodTypeAny, {
@@ -2071,7 +2071,7 @@ declare const AnthropicRequestUserMessage: z.ZodObject<{
2071
2071
  source: {
2072
2072
  type: "base64";
2073
2073
  data: string;
2074
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2074
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2075
2075
  };
2076
2076
  })[];
2077
2077
  tool_use_id: string;
@@ -2085,7 +2085,7 @@ declare const AnthropicRequestUserMessage: z.ZodObject<{
2085
2085
  source: {
2086
2086
  type: "base64";
2087
2087
  data: string;
2088
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2088
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2089
2089
  };
2090
2090
  })[];
2091
2091
  tool_use_id: string;
@@ -2100,7 +2100,7 @@ declare const AnthropicRequestUserMessage: z.ZodObject<{
2100
2100
  source: {
2101
2101
  type: "base64";
2102
2102
  data: string;
2103
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2103
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2104
2104
  };
2105
2105
  } | {
2106
2106
  type: "tool_result";
@@ -2112,7 +2112,7 @@ declare const AnthropicRequestUserMessage: z.ZodObject<{
2112
2112
  source: {
2113
2113
  type: "base64";
2114
2114
  data: string;
2115
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2115
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2116
2116
  };
2117
2117
  })[];
2118
2118
  tool_use_id: string;
@@ -2127,7 +2127,7 @@ declare const AnthropicRequestUserMessage: z.ZodObject<{
2127
2127
  source: {
2128
2128
  type: "base64";
2129
2129
  data: string;
2130
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2130
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2131
2131
  };
2132
2132
  } | {
2133
2133
  type: "tool_result";
@@ -2139,7 +2139,7 @@ declare const AnthropicRequestUserMessage: z.ZodObject<{
2139
2139
  source: {
2140
2140
  type: "base64";
2141
2141
  data: string;
2142
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2142
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2143
2143
  };
2144
2144
  })[];
2145
2145
  tool_use_id: string;
@@ -2173,30 +2173,30 @@ declare const AnthropicRequestAssistantMessage: z.ZodObject<{
2173
2173
  type: z.ZodLiteral<"image">;
2174
2174
  source: z.ZodObject<{
2175
2175
  type: z.ZodLiteral<"base64">;
2176
- mediaType: z.ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>;
2176
+ media_type: z.ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>;
2177
2177
  data: z.ZodString;
2178
2178
  }, "strip", z.ZodTypeAny, {
2179
2179
  type: "base64";
2180
2180
  data: string;
2181
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2181
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2182
2182
  }, {
2183
2183
  type: "base64";
2184
2184
  data: string;
2185
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2185
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2186
2186
  }>;
2187
2187
  }, "strip", z.ZodTypeAny, {
2188
2188
  type: "image";
2189
2189
  source: {
2190
2190
  type: "base64";
2191
2191
  data: string;
2192
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2192
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2193
2193
  };
2194
2194
  }, {
2195
2195
  type: "image";
2196
2196
  source: {
2197
2197
  type: "base64";
2198
2198
  data: string;
2199
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2199
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2200
2200
  };
2201
2201
  }>]>, "many">]>;
2202
2202
  }, "strip", z.ZodTypeAny, {
@@ -2209,7 +2209,7 @@ declare const AnthropicRequestAssistantMessage: z.ZodObject<{
2209
2209
  source: {
2210
2210
  type: "base64";
2211
2211
  data: string;
2212
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2212
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2213
2213
  };
2214
2214
  })[];
2215
2215
  tool_use_id: string;
@@ -2223,7 +2223,7 @@ declare const AnthropicRequestAssistantMessage: z.ZodObject<{
2223
2223
  source: {
2224
2224
  type: "base64";
2225
2225
  data: string;
2226
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2226
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2227
2227
  };
2228
2228
  })[];
2229
2229
  tool_use_id: string;
@@ -2271,7 +2271,7 @@ declare const AnthropicRequestAssistantMessage: z.ZodObject<{
2271
2271
  source: {
2272
2272
  type: "base64";
2273
2273
  data: string;
2274
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2274
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2275
2275
  };
2276
2276
  })[];
2277
2277
  tool_use_id: string;
@@ -2298,7 +2298,7 @@ declare const AnthropicRequestAssistantMessage: z.ZodObject<{
2298
2298
  source: {
2299
2299
  type: "base64";
2300
2300
  data: string;
2301
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2301
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2302
2302
  };
2303
2303
  })[];
2304
2304
  tool_use_id: string;
@@ -2320,30 +2320,30 @@ declare const AnthropicRequestMessage: z.ZodUnion<[z.ZodObject<{
2320
2320
  type: z.ZodLiteral<"image">;
2321
2321
  source: z.ZodObject<{
2322
2322
  type: z.ZodLiteral<"base64">;
2323
- mediaType: z.ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>;
2323
+ media_type: z.ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>;
2324
2324
  data: z.ZodString;
2325
2325
  }, "strip", z.ZodTypeAny, {
2326
2326
  type: "base64";
2327
2327
  data: string;
2328
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2328
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2329
2329
  }, {
2330
2330
  type: "base64";
2331
2331
  data: string;
2332
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2332
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2333
2333
  }>;
2334
2334
  }, "strip", z.ZodTypeAny, {
2335
2335
  type: "image";
2336
2336
  source: {
2337
2337
  type: "base64";
2338
2338
  data: string;
2339
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2339
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2340
2340
  };
2341
2341
  }, {
2342
2342
  type: "image";
2343
2343
  source: {
2344
2344
  type: "base64";
2345
2345
  data: string;
2346
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2346
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2347
2347
  };
2348
2348
  }>, z.ZodObject<{
2349
2349
  type: z.ZodLiteral<"tool_result">;
@@ -2361,30 +2361,30 @@ declare const AnthropicRequestMessage: z.ZodUnion<[z.ZodObject<{
2361
2361
  type: z.ZodLiteral<"image">;
2362
2362
  source: z.ZodObject<{
2363
2363
  type: z.ZodLiteral<"base64">;
2364
- mediaType: z.ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>;
2364
+ media_type: z.ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>;
2365
2365
  data: z.ZodString;
2366
2366
  }, "strip", z.ZodTypeAny, {
2367
2367
  type: "base64";
2368
2368
  data: string;
2369
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2369
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2370
2370
  }, {
2371
2371
  type: "base64";
2372
2372
  data: string;
2373
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2373
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2374
2374
  }>;
2375
2375
  }, "strip", z.ZodTypeAny, {
2376
2376
  type: "image";
2377
2377
  source: {
2378
2378
  type: "base64";
2379
2379
  data: string;
2380
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2380
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2381
2381
  };
2382
2382
  }, {
2383
2383
  type: "image";
2384
2384
  source: {
2385
2385
  type: "base64";
2386
2386
  data: string;
2387
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2387
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2388
2388
  };
2389
2389
  }>]>, "many">]>;
2390
2390
  }, "strip", z.ZodTypeAny, {
@@ -2397,7 +2397,7 @@ declare const AnthropicRequestMessage: z.ZodUnion<[z.ZodObject<{
2397
2397
  source: {
2398
2398
  type: "base64";
2399
2399
  data: string;
2400
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2400
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2401
2401
  };
2402
2402
  })[];
2403
2403
  tool_use_id: string;
@@ -2411,7 +2411,7 @@ declare const AnthropicRequestMessage: z.ZodUnion<[z.ZodObject<{
2411
2411
  source: {
2412
2412
  type: "base64";
2413
2413
  data: string;
2414
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2414
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2415
2415
  };
2416
2416
  })[];
2417
2417
  tool_use_id: string;
@@ -2426,7 +2426,7 @@ declare const AnthropicRequestMessage: z.ZodUnion<[z.ZodObject<{
2426
2426
  source: {
2427
2427
  type: "base64";
2428
2428
  data: string;
2429
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2429
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2430
2430
  };
2431
2431
  } | {
2432
2432
  type: "tool_result";
@@ -2438,7 +2438,7 @@ declare const AnthropicRequestMessage: z.ZodUnion<[z.ZodObject<{
2438
2438
  source: {
2439
2439
  type: "base64";
2440
2440
  data: string;
2441
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2441
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2442
2442
  };
2443
2443
  })[];
2444
2444
  tool_use_id: string;
@@ -2453,7 +2453,7 @@ declare const AnthropicRequestMessage: z.ZodUnion<[z.ZodObject<{
2453
2453
  source: {
2454
2454
  type: "base64";
2455
2455
  data: string;
2456
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2456
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2457
2457
  };
2458
2458
  } | {
2459
2459
  type: "tool_result";
@@ -2465,7 +2465,7 @@ declare const AnthropicRequestMessage: z.ZodUnion<[z.ZodObject<{
2465
2465
  source: {
2466
2466
  type: "base64";
2467
2467
  data: string;
2468
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2468
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2469
2469
  };
2470
2470
  })[];
2471
2471
  tool_use_id: string;
@@ -2497,30 +2497,30 @@ declare const AnthropicRequestMessage: z.ZodUnion<[z.ZodObject<{
2497
2497
  type: z.ZodLiteral<"image">;
2498
2498
  source: z.ZodObject<{
2499
2499
  type: z.ZodLiteral<"base64">;
2500
- mediaType: z.ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>;
2500
+ media_type: z.ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>;
2501
2501
  data: z.ZodString;
2502
2502
  }, "strip", z.ZodTypeAny, {
2503
2503
  type: "base64";
2504
2504
  data: string;
2505
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2505
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2506
2506
  }, {
2507
2507
  type: "base64";
2508
2508
  data: string;
2509
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2509
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2510
2510
  }>;
2511
2511
  }, "strip", z.ZodTypeAny, {
2512
2512
  type: "image";
2513
2513
  source: {
2514
2514
  type: "base64";
2515
2515
  data: string;
2516
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2516
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2517
2517
  };
2518
2518
  }, {
2519
2519
  type: "image";
2520
2520
  source: {
2521
2521
  type: "base64";
2522
2522
  data: string;
2523
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2523
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2524
2524
  };
2525
2525
  }>]>, "many">]>;
2526
2526
  }, "strip", z.ZodTypeAny, {
@@ -2533,7 +2533,7 @@ declare const AnthropicRequestMessage: z.ZodUnion<[z.ZodObject<{
2533
2533
  source: {
2534
2534
  type: "base64";
2535
2535
  data: string;
2536
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2536
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2537
2537
  };
2538
2538
  })[];
2539
2539
  tool_use_id: string;
@@ -2547,7 +2547,7 @@ declare const AnthropicRequestMessage: z.ZodUnion<[z.ZodObject<{
2547
2547
  source: {
2548
2548
  type: "base64";
2549
2549
  data: string;
2550
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2550
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2551
2551
  };
2552
2552
  })[];
2553
2553
  tool_use_id: string;
@@ -2595,7 +2595,7 @@ declare const AnthropicRequestMessage: z.ZodUnion<[z.ZodObject<{
2595
2595
  source: {
2596
2596
  type: "base64";
2597
2597
  data: string;
2598
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2598
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2599
2599
  };
2600
2600
  })[];
2601
2601
  tool_use_id: string;
@@ -2622,7 +2622,7 @@ declare const AnthropicRequestMessage: z.ZodUnion<[z.ZodObject<{
2622
2622
  source: {
2623
2623
  type: "base64";
2624
2624
  data: string;
2625
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2625
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2626
2626
  };
2627
2627
  })[];
2628
2628
  tool_use_id: string;
@@ -2646,30 +2646,30 @@ declare const AnthropicRequest: z.ZodObject<{
2646
2646
  type: z.ZodLiteral<"image">;
2647
2647
  source: z.ZodObject<{
2648
2648
  type: z.ZodLiteral<"base64">;
2649
- mediaType: z.ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>;
2649
+ media_type: z.ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>;
2650
2650
  data: z.ZodString;
2651
2651
  }, "strip", z.ZodTypeAny, {
2652
2652
  type: "base64";
2653
2653
  data: string;
2654
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2654
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2655
2655
  }, {
2656
2656
  type: "base64";
2657
2657
  data: string;
2658
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2658
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2659
2659
  }>;
2660
2660
  }, "strip", z.ZodTypeAny, {
2661
2661
  type: "image";
2662
2662
  source: {
2663
2663
  type: "base64";
2664
2664
  data: string;
2665
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2665
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2666
2666
  };
2667
2667
  }, {
2668
2668
  type: "image";
2669
2669
  source: {
2670
2670
  type: "base64";
2671
2671
  data: string;
2672
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2672
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2673
2673
  };
2674
2674
  }>, z.ZodObject<{
2675
2675
  type: z.ZodLiteral<"tool_result">;
@@ -2687,30 +2687,30 @@ declare const AnthropicRequest: z.ZodObject<{
2687
2687
  type: z.ZodLiteral<"image">;
2688
2688
  source: z.ZodObject<{
2689
2689
  type: z.ZodLiteral<"base64">;
2690
- mediaType: z.ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>;
2690
+ media_type: z.ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>;
2691
2691
  data: z.ZodString;
2692
2692
  }, "strip", z.ZodTypeAny, {
2693
2693
  type: "base64";
2694
2694
  data: string;
2695
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2695
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2696
2696
  }, {
2697
2697
  type: "base64";
2698
2698
  data: string;
2699
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2699
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2700
2700
  }>;
2701
2701
  }, "strip", z.ZodTypeAny, {
2702
2702
  type: "image";
2703
2703
  source: {
2704
2704
  type: "base64";
2705
2705
  data: string;
2706
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2706
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2707
2707
  };
2708
2708
  }, {
2709
2709
  type: "image";
2710
2710
  source: {
2711
2711
  type: "base64";
2712
2712
  data: string;
2713
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2713
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2714
2714
  };
2715
2715
  }>]>, "many">]>;
2716
2716
  }, "strip", z.ZodTypeAny, {
@@ -2723,7 +2723,7 @@ declare const AnthropicRequest: z.ZodObject<{
2723
2723
  source: {
2724
2724
  type: "base64";
2725
2725
  data: string;
2726
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2726
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2727
2727
  };
2728
2728
  })[];
2729
2729
  tool_use_id: string;
@@ -2737,7 +2737,7 @@ declare const AnthropicRequest: z.ZodObject<{
2737
2737
  source: {
2738
2738
  type: "base64";
2739
2739
  data: string;
2740
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2740
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2741
2741
  };
2742
2742
  })[];
2743
2743
  tool_use_id: string;
@@ -2752,7 +2752,7 @@ declare const AnthropicRequest: z.ZodObject<{
2752
2752
  source: {
2753
2753
  type: "base64";
2754
2754
  data: string;
2755
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2755
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2756
2756
  };
2757
2757
  } | {
2758
2758
  type: "tool_result";
@@ -2764,7 +2764,7 @@ declare const AnthropicRequest: z.ZodObject<{
2764
2764
  source: {
2765
2765
  type: "base64";
2766
2766
  data: string;
2767
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2767
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2768
2768
  };
2769
2769
  })[];
2770
2770
  tool_use_id: string;
@@ -2779,7 +2779,7 @@ declare const AnthropicRequest: z.ZodObject<{
2779
2779
  source: {
2780
2780
  type: "base64";
2781
2781
  data: string;
2782
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2782
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2783
2783
  };
2784
2784
  } | {
2785
2785
  type: "tool_result";
@@ -2791,7 +2791,7 @@ declare const AnthropicRequest: z.ZodObject<{
2791
2791
  source: {
2792
2792
  type: "base64";
2793
2793
  data: string;
2794
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2794
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2795
2795
  };
2796
2796
  })[];
2797
2797
  tool_use_id: string;
@@ -2823,30 +2823,30 @@ declare const AnthropicRequest: z.ZodObject<{
2823
2823
  type: z.ZodLiteral<"image">;
2824
2824
  source: z.ZodObject<{
2825
2825
  type: z.ZodLiteral<"base64">;
2826
- mediaType: z.ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>;
2826
+ media_type: z.ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>;
2827
2827
  data: z.ZodString;
2828
2828
  }, "strip", z.ZodTypeAny, {
2829
2829
  type: "base64";
2830
2830
  data: string;
2831
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2831
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2832
2832
  }, {
2833
2833
  type: "base64";
2834
2834
  data: string;
2835
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2835
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2836
2836
  }>;
2837
2837
  }, "strip", z.ZodTypeAny, {
2838
2838
  type: "image";
2839
2839
  source: {
2840
2840
  type: "base64";
2841
2841
  data: string;
2842
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2842
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2843
2843
  };
2844
2844
  }, {
2845
2845
  type: "image";
2846
2846
  source: {
2847
2847
  type: "base64";
2848
2848
  data: string;
2849
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2849
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2850
2850
  };
2851
2851
  }>]>, "many">]>;
2852
2852
  }, "strip", z.ZodTypeAny, {
@@ -2859,7 +2859,7 @@ declare const AnthropicRequest: z.ZodObject<{
2859
2859
  source: {
2860
2860
  type: "base64";
2861
2861
  data: string;
2862
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2862
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2863
2863
  };
2864
2864
  })[];
2865
2865
  tool_use_id: string;
@@ -2873,7 +2873,7 @@ declare const AnthropicRequest: z.ZodObject<{
2873
2873
  source: {
2874
2874
  type: "base64";
2875
2875
  data: string;
2876
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2876
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2877
2877
  };
2878
2878
  })[];
2879
2879
  tool_use_id: string;
@@ -2921,7 +2921,7 @@ declare const AnthropicRequest: z.ZodObject<{
2921
2921
  source: {
2922
2922
  type: "base64";
2923
2923
  data: string;
2924
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2924
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2925
2925
  };
2926
2926
  })[];
2927
2927
  tool_use_id: string;
@@ -2948,7 +2948,7 @@ declare const AnthropicRequest: z.ZodObject<{
2948
2948
  source: {
2949
2949
  type: "base64";
2950
2950
  data: string;
2951
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2951
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
2952
2952
  };
2953
2953
  })[];
2954
2954
  tool_use_id: string;
@@ -3000,7 +3000,7 @@ declare const AnthropicRequest: z.ZodObject<{
3000
3000
  source: {
3001
3001
  type: "base64";
3002
3002
  data: string;
3003
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
3003
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
3004
3004
  };
3005
3005
  } | {
3006
3006
  type: "tool_result";
@@ -3012,7 +3012,7 @@ declare const AnthropicRequest: z.ZodObject<{
3012
3012
  source: {
3013
3013
  type: "base64";
3014
3014
  data: string;
3015
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
3015
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
3016
3016
  };
3017
3017
  })[];
3018
3018
  tool_use_id: string;
@@ -3039,7 +3039,7 @@ declare const AnthropicRequest: z.ZodObject<{
3039
3039
  source: {
3040
3040
  type: "base64";
3041
3041
  data: string;
3042
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
3042
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
3043
3043
  };
3044
3044
  })[];
3045
3045
  tool_use_id: string;
@@ -3074,7 +3074,7 @@ declare const AnthropicRequest: z.ZodObject<{
3074
3074
  source: {
3075
3075
  type: "base64";
3076
3076
  data: string;
3077
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
3077
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
3078
3078
  };
3079
3079
  } | {
3080
3080
  type: "tool_result";
@@ -3086,7 +3086,7 @@ declare const AnthropicRequest: z.ZodObject<{
3086
3086
  source: {
3087
3087
  type: "base64";
3088
3088
  data: string;
3089
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
3089
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
3090
3090
  };
3091
3091
  })[];
3092
3092
  tool_use_id: string;
@@ -3113,7 +3113,7 @@ declare const AnthropicRequest: z.ZodObject<{
3113
3113
  source: {
3114
3114
  type: "base64";
3115
3115
  data: string;
3116
- mediaType: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
3116
+ media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
3117
3117
  };
3118
3118
  })[];
3119
3119
  tool_use_id: string;
@@ -3656,4 +3656,4 @@ declare class Anthropic<C extends BaseChatModelOptionsType, E extends BaseEmbedd
3656
3656
  embeddingModel(options: E): EmbeddingModelV1;
3657
3657
  }
3658
3658
 
3659
- 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, ChatModelReasoningConfigDef, ChatModelReasoningConfigSchema, 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 };
3659
+ 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, ChatModelReasoningConfigDef, ChatModelReasoningConfigSchema, 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_5Sonnet20240620, Claude3_5Sonnet20240620Literal, Claude3_5Sonnet20240620Options, type Claude3_5Sonnet20240620OptionsType, Claude3_5Sonnet20240620Schema, Claude3_5Sonnet20241022, Claude3_5Sonnet20241022Literal, Claude3_5Sonnet20241022Options, type Claude3_5Sonnet20241022OptionsType, Claude3_5Sonnet20241022Schema, Claude3_7Sonnet20250219, Claude3_7Sonnet20250219Literal, Claude3_7Sonnet20250219Options, type Claude3_7Sonnet20250219OptionsType, Claude3_7Sonnet20250219Schema, Claude4Opus20250514, Claude4Opus20250514Literal, Claude4Opus20250514Options, type Claude4Opus20250514OptionsType, Claude4Opus20250514Schema, Claude4Sonnet20250514, Claude4Sonnet20250514Literal, Claude4Sonnet20250514Options, type Claude4Sonnet20250514OptionsType, Claude4Sonnet20250514Schema, 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 };