@langchain/google 0.1.1-dev-1771365493298 → 0.1.1
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/CHANGELOG.md +28 -0
- package/dist/chat_models/profiles.cjs +93 -93
- package/dist/chat_models/profiles.cjs.map +1 -1
- package/dist/chat_models/profiles.js +93 -93
- package/dist/chat_models/profiles.js.map +1 -1
- package/dist/utils/errors.cjs +32 -26
- package/dist/utils/errors.cjs.map +1 -1
- package/dist/utils/errors.js +32 -26
- package/dist/utils/errors.js.map +1 -1
- package/package.json +5 -5
|
@@ -14,7 +14,7 @@ const PROFILES = {
|
|
|
14
14
|
toolCalling: false,
|
|
15
15
|
structuredOutput: false
|
|
16
16
|
},
|
|
17
|
-
"gemini-
|
|
17
|
+
"gemini-2.5-flash-lite-preview-09-2025": {
|
|
18
18
|
maxInputTokens: 1048576,
|
|
19
19
|
imageInputs: true,
|
|
20
20
|
audioInputs: true,
|
|
@@ -28,21 +28,7 @@ const PROFILES = {
|
|
|
28
28
|
toolCalling: true,
|
|
29
29
|
structuredOutput: true
|
|
30
30
|
},
|
|
31
|
-
"gemini-2.5-
|
|
32
|
-
maxInputTokens: 32768,
|
|
33
|
-
imageInputs: true,
|
|
34
|
-
audioInputs: false,
|
|
35
|
-
pdfInputs: false,
|
|
36
|
-
videoInputs: false,
|
|
37
|
-
maxOutputTokens: 32768,
|
|
38
|
-
reasoningOutput: true,
|
|
39
|
-
imageOutputs: true,
|
|
40
|
-
audioOutputs: false,
|
|
41
|
-
videoOutputs: false,
|
|
42
|
-
toolCalling: false,
|
|
43
|
-
structuredOutput: false
|
|
44
|
-
},
|
|
45
|
-
"gemini-2.5-flash-preview-05-20": {
|
|
31
|
+
"gemini-2.5-pro-preview-06-05": {
|
|
46
32
|
maxInputTokens: 1048576,
|
|
47
33
|
imageInputs: true,
|
|
48
34
|
audioInputs: true,
|
|
@@ -56,7 +42,7 @@ const PROFILES = {
|
|
|
56
42
|
toolCalling: true,
|
|
57
43
|
structuredOutput: true
|
|
58
44
|
},
|
|
59
|
-
"gemini-flash-
|
|
45
|
+
"gemini-2.5-flash-preview-04-17": {
|
|
60
46
|
maxInputTokens: 1048576,
|
|
61
47
|
imageInputs: true,
|
|
62
48
|
audioInputs: true,
|
|
@@ -68,15 +54,15 @@ const PROFILES = {
|
|
|
68
54
|
audioOutputs: false,
|
|
69
55
|
videoOutputs: false,
|
|
70
56
|
toolCalling: true,
|
|
71
|
-
structuredOutput:
|
|
57
|
+
structuredOutput: false
|
|
72
58
|
},
|
|
73
|
-
"gemini-
|
|
74
|
-
maxInputTokens:
|
|
59
|
+
"gemini-2.5-flash-preview-09-2025": {
|
|
60
|
+
maxInputTokens: 1048576,
|
|
75
61
|
imageInputs: true,
|
|
76
62
|
audioInputs: true,
|
|
77
63
|
pdfInputs: true,
|
|
78
64
|
videoInputs: true,
|
|
79
|
-
maxOutputTokens:
|
|
65
|
+
maxOutputTokens: 65536,
|
|
80
66
|
reasoningOutput: true,
|
|
81
67
|
imageOutputs: false,
|
|
82
68
|
audioOutputs: false,
|
|
@@ -84,7 +70,7 @@ const PROFILES = {
|
|
|
84
70
|
toolCalling: true,
|
|
85
71
|
structuredOutput: true
|
|
86
72
|
},
|
|
87
|
-
"gemini-2.5-
|
|
73
|
+
"gemini-2.5-pro-preview-05-06": {
|
|
88
74
|
maxInputTokens: 1048576,
|
|
89
75
|
imageInputs: true,
|
|
90
76
|
audioInputs: true,
|
|
@@ -98,7 +84,7 @@ const PROFILES = {
|
|
|
98
84
|
toolCalling: true,
|
|
99
85
|
structuredOutput: true
|
|
100
86
|
},
|
|
101
|
-
"gemini-flash-
|
|
87
|
+
"gemini-2.5-flash-preview-05-20": {
|
|
102
88
|
maxInputTokens: 1048576,
|
|
103
89
|
imageInputs: true,
|
|
104
90
|
audioInputs: true,
|
|
@@ -112,7 +98,7 @@ const PROFILES = {
|
|
|
112
98
|
toolCalling: true,
|
|
113
99
|
structuredOutput: true
|
|
114
100
|
},
|
|
115
|
-
"gemini-2.5-
|
|
101
|
+
"gemini-2.5-flash": {
|
|
116
102
|
maxInputTokens: 1048576,
|
|
117
103
|
imageInputs: true,
|
|
118
104
|
audioInputs: true,
|
|
@@ -126,28 +112,28 @@ const PROFILES = {
|
|
|
126
112
|
toolCalling: true,
|
|
127
113
|
structuredOutput: true
|
|
128
114
|
},
|
|
129
|
-
"gemini-2.5-flash
|
|
130
|
-
maxInputTokens:
|
|
131
|
-
imageInputs:
|
|
132
|
-
audioInputs:
|
|
115
|
+
"gemini-live-2.5-flash": {
|
|
116
|
+
maxInputTokens: 128e3,
|
|
117
|
+
imageInputs: true,
|
|
118
|
+
audioInputs: true,
|
|
133
119
|
pdfInputs: false,
|
|
134
|
-
videoInputs:
|
|
135
|
-
maxOutputTokens:
|
|
136
|
-
reasoningOutput:
|
|
120
|
+
videoInputs: true,
|
|
121
|
+
maxOutputTokens: 8e3,
|
|
122
|
+
reasoningOutput: true,
|
|
137
123
|
imageOutputs: false,
|
|
138
124
|
audioOutputs: true,
|
|
139
125
|
videoOutputs: false,
|
|
140
|
-
toolCalling:
|
|
126
|
+
toolCalling: true,
|
|
141
127
|
structuredOutput: false
|
|
142
128
|
},
|
|
143
|
-
"gemini-
|
|
129
|
+
"gemini-3-flash-preview": {
|
|
144
130
|
maxInputTokens: 1048576,
|
|
145
131
|
imageInputs: true,
|
|
146
132
|
audioInputs: true,
|
|
147
133
|
pdfInputs: true,
|
|
148
134
|
videoInputs: true,
|
|
149
|
-
maxOutputTokens:
|
|
150
|
-
reasoningOutput:
|
|
135
|
+
maxOutputTokens: 65536,
|
|
136
|
+
reasoningOutput: true,
|
|
151
137
|
imageOutputs: false,
|
|
152
138
|
audioOutputs: false,
|
|
153
139
|
videoOutputs: false,
|
|
@@ -168,21 +154,35 @@ const PROFILES = {
|
|
|
168
154
|
toolCalling: true,
|
|
169
155
|
structuredOutput: false
|
|
170
156
|
},
|
|
171
|
-
"gemini-2.
|
|
157
|
+
"gemini-2.5-flash-lite": {
|
|
172
158
|
maxInputTokens: 1048576,
|
|
173
159
|
imageInputs: true,
|
|
174
160
|
audioInputs: true,
|
|
175
161
|
pdfInputs: true,
|
|
176
162
|
videoInputs: true,
|
|
177
|
-
maxOutputTokens:
|
|
178
|
-
reasoningOutput:
|
|
163
|
+
maxOutputTokens: 65536,
|
|
164
|
+
reasoningOutput: true,
|
|
179
165
|
imageOutputs: false,
|
|
180
166
|
audioOutputs: false,
|
|
181
167
|
videoOutputs: false,
|
|
182
168
|
toolCalling: true,
|
|
183
169
|
structuredOutput: true
|
|
184
170
|
},
|
|
185
|
-
"gemini-2.5-flash-
|
|
171
|
+
"gemini-2.5-flash-preview-tts": {
|
|
172
|
+
maxInputTokens: 8e3,
|
|
173
|
+
imageInputs: false,
|
|
174
|
+
audioInputs: false,
|
|
175
|
+
pdfInputs: false,
|
|
176
|
+
videoInputs: false,
|
|
177
|
+
maxOutputTokens: 16e3,
|
|
178
|
+
reasoningOutput: false,
|
|
179
|
+
imageOutputs: false,
|
|
180
|
+
audioOutputs: true,
|
|
181
|
+
videoOutputs: false,
|
|
182
|
+
toolCalling: false,
|
|
183
|
+
structuredOutput: false
|
|
184
|
+
},
|
|
185
|
+
"gemini-flash-latest": {
|
|
186
186
|
maxInputTokens: 1048576,
|
|
187
187
|
imageInputs: true,
|
|
188
188
|
audioInputs: true,
|
|
@@ -196,7 +196,7 @@ const PROFILES = {
|
|
|
196
196
|
toolCalling: true,
|
|
197
197
|
structuredOutput: true
|
|
198
198
|
},
|
|
199
|
-
"gemini-2.5-
|
|
199
|
+
"gemini-2.5-flash-lite-preview-06-17": {
|
|
200
200
|
maxInputTokens: 1048576,
|
|
201
201
|
imageInputs: true,
|
|
202
202
|
audioInputs: true,
|
|
@@ -208,34 +208,34 @@ const PROFILES = {
|
|
|
208
208
|
audioOutputs: false,
|
|
209
209
|
videoOutputs: false,
|
|
210
210
|
toolCalling: true,
|
|
211
|
-
structuredOutput:
|
|
211
|
+
structuredOutput: false
|
|
212
212
|
},
|
|
213
|
-
"gemini-
|
|
214
|
-
maxInputTokens:
|
|
213
|
+
"gemini-2.5-flash-image": {
|
|
214
|
+
maxInputTokens: 32768,
|
|
215
215
|
imageInputs: true,
|
|
216
|
-
audioInputs:
|
|
216
|
+
audioInputs: false,
|
|
217
217
|
pdfInputs: false,
|
|
218
|
-
videoInputs:
|
|
219
|
-
maxOutputTokens:
|
|
218
|
+
videoInputs: false,
|
|
219
|
+
maxOutputTokens: 32768,
|
|
220
220
|
reasoningOutput: true,
|
|
221
|
-
imageOutputs:
|
|
222
|
-
audioOutputs:
|
|
221
|
+
imageOutputs: true,
|
|
222
|
+
audioOutputs: false,
|
|
223
223
|
videoOutputs: false,
|
|
224
|
-
toolCalling:
|
|
224
|
+
toolCalling: false,
|
|
225
225
|
structuredOutput: false
|
|
226
226
|
},
|
|
227
|
-
"gemini-2.5-
|
|
228
|
-
maxInputTokens:
|
|
229
|
-
imageInputs:
|
|
230
|
-
audioInputs:
|
|
231
|
-
pdfInputs:
|
|
232
|
-
videoInputs:
|
|
233
|
-
maxOutputTokens:
|
|
234
|
-
reasoningOutput:
|
|
227
|
+
"gemini-2.5-pro-preview-tts": {
|
|
228
|
+
maxInputTokens: 8e3,
|
|
229
|
+
imageInputs: false,
|
|
230
|
+
audioInputs: false,
|
|
231
|
+
pdfInputs: false,
|
|
232
|
+
videoInputs: false,
|
|
233
|
+
maxOutputTokens: 16e3,
|
|
234
|
+
reasoningOutput: false,
|
|
235
235
|
imageOutputs: false,
|
|
236
|
-
audioOutputs:
|
|
236
|
+
audioOutputs: true,
|
|
237
237
|
videoOutputs: false,
|
|
238
|
-
toolCalling:
|
|
238
|
+
toolCalling: false,
|
|
239
239
|
structuredOutput: false
|
|
240
240
|
},
|
|
241
241
|
"gemini-2.5-flash-image-preview": {
|
|
@@ -252,56 +252,42 @@ const PROFILES = {
|
|
|
252
252
|
toolCalling: false,
|
|
253
253
|
structuredOutput: false
|
|
254
254
|
},
|
|
255
|
-
"gemini-
|
|
256
|
-
maxInputTokens:
|
|
255
|
+
"gemini-1.5-flash-8b": {
|
|
256
|
+
maxInputTokens: 1e6,
|
|
257
257
|
imageInputs: true,
|
|
258
258
|
audioInputs: true,
|
|
259
|
-
pdfInputs:
|
|
259
|
+
pdfInputs: false,
|
|
260
260
|
videoInputs: true,
|
|
261
|
-
maxOutputTokens:
|
|
262
|
-
reasoningOutput:
|
|
261
|
+
maxOutputTokens: 8192,
|
|
262
|
+
reasoningOutput: false,
|
|
263
263
|
imageOutputs: false,
|
|
264
264
|
audioOutputs: false,
|
|
265
265
|
videoOutputs: false,
|
|
266
266
|
toolCalling: true,
|
|
267
|
-
structuredOutput:
|
|
267
|
+
structuredOutput: false
|
|
268
268
|
},
|
|
269
|
-
"gemini-
|
|
270
|
-
maxInputTokens:
|
|
269
|
+
"gemini-3-pro-preview": {
|
|
270
|
+
maxInputTokens: 1e6,
|
|
271
271
|
imageInputs: true,
|
|
272
272
|
audioInputs: true,
|
|
273
273
|
pdfInputs: true,
|
|
274
274
|
videoInputs: true,
|
|
275
|
-
maxOutputTokens:
|
|
275
|
+
maxOutputTokens: 64e3,
|
|
276
276
|
reasoningOutput: true,
|
|
277
277
|
imageOutputs: false,
|
|
278
278
|
audioOutputs: false,
|
|
279
279
|
videoOutputs: false,
|
|
280
280
|
toolCalling: true,
|
|
281
|
-
structuredOutput:
|
|
282
|
-
},
|
|
283
|
-
"gemini-2.5-pro-preview-tts": {
|
|
284
|
-
maxInputTokens: 8e3,
|
|
285
|
-
imageInputs: false,
|
|
286
|
-
audioInputs: false,
|
|
287
|
-
pdfInputs: false,
|
|
288
|
-
videoInputs: false,
|
|
289
|
-
maxOutputTokens: 16e3,
|
|
290
|
-
reasoningOutput: false,
|
|
291
|
-
imageOutputs: false,
|
|
292
|
-
audioOutputs: true,
|
|
293
|
-
videoOutputs: false,
|
|
294
|
-
toolCalling: false,
|
|
295
|
-
structuredOutput: false
|
|
281
|
+
structuredOutput: true
|
|
296
282
|
},
|
|
297
|
-
"gemini-2.
|
|
283
|
+
"gemini-2.0-flash-lite": {
|
|
298
284
|
maxInputTokens: 1048576,
|
|
299
285
|
imageInputs: true,
|
|
300
286
|
audioInputs: true,
|
|
301
287
|
pdfInputs: true,
|
|
302
288
|
videoInputs: true,
|
|
303
|
-
maxOutputTokens:
|
|
304
|
-
reasoningOutput:
|
|
289
|
+
maxOutputTokens: 8192,
|
|
290
|
+
reasoningOutput: false,
|
|
305
291
|
imageOutputs: false,
|
|
306
292
|
audioOutputs: false,
|
|
307
293
|
videoOutputs: false,
|
|
@@ -322,21 +308,21 @@ const PROFILES = {
|
|
|
322
308
|
toolCalling: true,
|
|
323
309
|
structuredOutput: false
|
|
324
310
|
},
|
|
325
|
-
"gemini-
|
|
326
|
-
maxInputTokens:
|
|
311
|
+
"gemini-flash-lite-latest": {
|
|
312
|
+
maxInputTokens: 1048576,
|
|
327
313
|
imageInputs: true,
|
|
328
314
|
audioInputs: true,
|
|
329
|
-
pdfInputs:
|
|
315
|
+
pdfInputs: true,
|
|
330
316
|
videoInputs: true,
|
|
331
|
-
maxOutputTokens:
|
|
332
|
-
reasoningOutput:
|
|
317
|
+
maxOutputTokens: 65536,
|
|
318
|
+
reasoningOutput: true,
|
|
333
319
|
imageOutputs: false,
|
|
334
320
|
audioOutputs: false,
|
|
335
321
|
videoOutputs: false,
|
|
336
322
|
toolCalling: true,
|
|
337
|
-
structuredOutput:
|
|
323
|
+
structuredOutput: true
|
|
338
324
|
},
|
|
339
|
-
"gemini-2.5-
|
|
325
|
+
"gemini-2.5-pro": {
|
|
340
326
|
maxInputTokens: 1048576,
|
|
341
327
|
imageInputs: true,
|
|
342
328
|
audioInputs: true,
|
|
@@ -350,6 +336,20 @@ const PROFILES = {
|
|
|
350
336
|
toolCalling: true,
|
|
351
337
|
structuredOutput: true
|
|
352
338
|
},
|
|
339
|
+
"gemini-2.0-flash": {
|
|
340
|
+
maxInputTokens: 1048576,
|
|
341
|
+
imageInputs: true,
|
|
342
|
+
audioInputs: true,
|
|
343
|
+
pdfInputs: true,
|
|
344
|
+
videoInputs: true,
|
|
345
|
+
maxOutputTokens: 8192,
|
|
346
|
+
reasoningOutput: false,
|
|
347
|
+
imageOutputs: false,
|
|
348
|
+
audioOutputs: false,
|
|
349
|
+
videoOutputs: false,
|
|
350
|
+
toolCalling: true,
|
|
351
|
+
structuredOutput: true
|
|
352
|
+
},
|
|
353
353
|
"gemini-1.5-pro": {
|
|
354
354
|
maxInputTokens: 1e6,
|
|
355
355
|
imageInputs: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profiles.js","names":[],"sources":["../../src/chat_models/profiles.ts"],"sourcesContent":["/**\n * This file was automatically generated by an automated script. Do not edit manually.\n */\nimport type { ModelProfile } from \"@langchain/core/language_models/profile\";\nconst PROFILES: Record<string, ModelProfile> = {\n \"gemini-embedding-001\": {\n maxInputTokens: 2048,\n imageInputs: false,\n audioInputs: false,\n pdfInputs: false,\n videoInputs: false,\n maxOutputTokens: 3072,\n reasoningOutput: false,\n imageOutputs: false,\n audioOutputs: false,\n videoOutputs: false,\n toolCalling: false,\n structuredOutput: false,\n },\n \"gemini-3-flash-preview\": {\n maxInputTokens: 1048576,\n imageInputs: true,\n audioInputs: true,\n pdfInputs: true,\n videoInputs: true,\n maxOutputTokens: 65536,\n reasoningOutput: true,\n imageOutputs: false,\n audioOutputs: false,\n videoOutputs: false,\n toolCalling: true,\n structuredOutput: true,\n },\n \"gemini-2.5-flash-image\": {\n maxInputTokens: 32768,\n imageInputs: true,\n audioInputs: false,\n pdfInputs: false,\n videoInputs: false,\n maxOutputTokens: 32768,\n reasoningOutput: true,\n imageOutputs: true,\n audioOutputs: false,\n videoOutputs: false,\n toolCalling: false,\n structuredOutput: false,\n },\n \"gemini-2.5-flash-preview-05-20\": {\n maxInputTokens: 1048576,\n imageInputs: true,\n audioInputs: true,\n pdfInputs: true,\n videoInputs: true,\n maxOutputTokens: 65536,\n reasoningOutput: true,\n imageOutputs: false,\n audioOutputs: false,\n videoOutputs: false,\n toolCalling: true,\n structuredOutput: true,\n },\n \"gemini-flash-lite-latest\": {\n maxInputTokens: 1048576,\n imageInputs: true,\n audioInputs: true,\n pdfInputs: true,\n videoInputs: true,\n maxOutputTokens: 65536,\n reasoningOutput: true,\n imageOutputs: false,\n audioOutputs: false,\n videoOutputs: false,\n toolCalling: true,\n structuredOutput: true,\n },\n \"gemini-3-pro-preview\": {\n maxInputTokens: 1000000,\n imageInputs: true,\n audioInputs: true,\n pdfInputs: true,\n videoInputs: true,\n maxOutputTokens: 64000,\n reasoningOutput: true,\n imageOutputs: false,\n audioOutputs: false,\n videoOutputs: false,\n toolCalling: true,\n structuredOutput: true,\n },\n \"gemini-2.5-flash\": {\n maxInputTokens: 1048576,\n imageInputs: true,\n audioInputs: true,\n pdfInputs: true,\n videoInputs: true,\n maxOutputTokens: 65536,\n reasoningOutput: true,\n imageOutputs: false,\n audioOutputs: false,\n videoOutputs: false,\n toolCalling: true,\n structuredOutput: true,\n },\n \"gemini-flash-latest\": {\n maxInputTokens: 1048576,\n imageInputs: true,\n audioInputs: true,\n pdfInputs: true,\n videoInputs: true,\n maxOutputTokens: 65536,\n reasoningOutput: true,\n imageOutputs: false,\n audioOutputs: false,\n videoOutputs: false,\n toolCalling: true,\n structuredOutput: true,\n },\n \"gemini-2.5-pro-preview-05-06\": {\n maxInputTokens: 1048576,\n imageInputs: true,\n audioInputs: true,\n pdfInputs: true,\n videoInputs: true,\n maxOutputTokens: 65536,\n reasoningOutput: true,\n imageOutputs: false,\n audioOutputs: false,\n videoOutputs: false,\n toolCalling: true,\n structuredOutput: true,\n },\n \"gemini-2.5-flash-preview-tts\": {\n maxInputTokens: 8000,\n imageInputs: false,\n audioInputs: false,\n pdfInputs: false,\n videoInputs: false,\n maxOutputTokens: 16000,\n reasoningOutput: false,\n imageOutputs: false,\n audioOutputs: true,\n videoOutputs: false,\n toolCalling: false,\n structuredOutput: false,\n },\n \"gemini-2.0-flash-lite\": {\n maxInputTokens: 1048576,\n imageInputs: true,\n audioInputs: true,\n pdfInputs: true,\n videoInputs: true,\n maxOutputTokens: 8192,\n reasoningOutput: false,\n imageOutputs: false,\n audioOutputs: false,\n videoOutputs: false,\n toolCalling: true,\n structuredOutput: true,\n },\n \"gemini-live-2.5-flash-preview-native-audio\": {\n maxInputTokens: 131072,\n imageInputs: false,\n audioInputs: true,\n pdfInputs: false,\n videoInputs: true,\n maxOutputTokens: 65536,\n reasoningOutput: true,\n imageOutputs: false,\n audioOutputs: true,\n videoOutputs: false,\n toolCalling: true,\n structuredOutput: false,\n },\n \"gemini-2.0-flash\": {\n maxInputTokens: 1048576,\n imageInputs: true,\n audioInputs: true,\n pdfInputs: true,\n videoInputs: true,\n maxOutputTokens: 8192,\n reasoningOutput: false,\n imageOutputs: false,\n audioOutputs: false,\n videoOutputs: false,\n toolCalling: true,\n structuredOutput: true,\n },\n \"gemini-2.5-flash-lite\": {\n maxInputTokens: 1048576,\n imageInputs: true,\n audioInputs: true,\n pdfInputs: true,\n videoInputs: true,\n maxOutputTokens: 65536,\n reasoningOutput: true,\n imageOutputs: false,\n audioOutputs: false,\n videoOutputs: false,\n toolCalling: true,\n structuredOutput: true,\n },\n \"gemini-2.5-pro-preview-06-05\": {\n maxInputTokens: 1048576,\n imageInputs: true,\n audioInputs: true,\n pdfInputs: true,\n videoInputs: true,\n maxOutputTokens: 65536,\n reasoningOutput: true,\n imageOutputs: false,\n audioOutputs: false,\n videoOutputs: false,\n toolCalling: true,\n structuredOutput: true,\n },\n \"gemini-live-2.5-flash\": {\n maxInputTokens: 128000,\n imageInputs: true,\n audioInputs: true,\n pdfInputs: false,\n videoInputs: true,\n maxOutputTokens: 8000,\n reasoningOutput: true,\n imageOutputs: false,\n audioOutputs: true,\n videoOutputs: false,\n toolCalling: true,\n structuredOutput: false,\n },\n \"gemini-2.5-flash-lite-preview-06-17\": {\n maxInputTokens: 1048576,\n imageInputs: true,\n audioInputs: true,\n pdfInputs: true,\n videoInputs: true,\n maxOutputTokens: 65536,\n reasoningOutput: true,\n imageOutputs: false,\n audioOutputs: false,\n videoOutputs: false,\n toolCalling: true,\n structuredOutput: false,\n },\n \"gemini-2.5-flash-image-preview\": {\n maxInputTokens: 32768,\n imageInputs: true,\n audioInputs: false,\n pdfInputs: false,\n videoInputs: false,\n maxOutputTokens: 32768,\n reasoningOutput: true,\n imageOutputs: true,\n audioOutputs: false,\n videoOutputs: false,\n toolCalling: false,\n structuredOutput: false,\n },\n \"gemini-2.5-flash-preview-09-2025\": {\n maxInputTokens: 1048576,\n imageInputs: true,\n audioInputs: true,\n pdfInputs: true,\n videoInputs: true,\n maxOutputTokens: 65536,\n reasoningOutput: true,\n imageOutputs: false,\n audioOutputs: false,\n videoOutputs: false,\n toolCalling: true,\n structuredOutput: true,\n },\n \"gemini-2.5-flash-preview-04-17\": {\n maxInputTokens: 1048576,\n imageInputs: true,\n audioInputs: true,\n pdfInputs: true,\n videoInputs: true,\n maxOutputTokens: 65536,\n reasoningOutput: true,\n imageOutputs: false,\n audioOutputs: false,\n videoOutputs: false,\n toolCalling: true,\n structuredOutput: false,\n },\n \"gemini-2.5-pro-preview-tts\": {\n maxInputTokens: 8000,\n imageInputs: false,\n audioInputs: false,\n pdfInputs: false,\n videoInputs: false,\n maxOutputTokens: 16000,\n reasoningOutput: false,\n imageOutputs: false,\n audioOutputs: true,\n videoOutputs: false,\n toolCalling: false,\n structuredOutput: false,\n },\n \"gemini-2.5-pro\": {\n maxInputTokens: 1048576,\n imageInputs: true,\n audioInputs: true,\n pdfInputs: true,\n videoInputs: true,\n maxOutputTokens: 65536,\n reasoningOutput: true,\n imageOutputs: false,\n audioOutputs: false,\n videoOutputs: false,\n toolCalling: true,\n structuredOutput: true,\n },\n \"gemini-1.5-flash\": {\n maxInputTokens: 1000000,\n imageInputs: true,\n audioInputs: true,\n pdfInputs: false,\n videoInputs: true,\n maxOutputTokens: 8192,\n reasoningOutput: false,\n imageOutputs: false,\n audioOutputs: false,\n videoOutputs: false,\n toolCalling: true,\n structuredOutput: false,\n },\n \"gemini-1.5-flash-8b\": {\n maxInputTokens: 1000000,\n imageInputs: true,\n audioInputs: true,\n pdfInputs: false,\n videoInputs: true,\n maxOutputTokens: 8192,\n reasoningOutput: false,\n imageOutputs: false,\n audioOutputs: false,\n videoOutputs: false,\n toolCalling: true,\n structuredOutput: false,\n },\n \"gemini-2.5-flash-lite-preview-09-2025\": {\n maxInputTokens: 1048576,\n imageInputs: true,\n audioInputs: true,\n pdfInputs: true,\n videoInputs: true,\n maxOutputTokens: 65536,\n reasoningOutput: true,\n imageOutputs: false,\n audioOutputs: false,\n videoOutputs: false,\n toolCalling: true,\n structuredOutput: true,\n },\n \"gemini-1.5-pro\": {\n maxInputTokens: 1000000,\n imageInputs: true,\n audioInputs: true,\n pdfInputs: false,\n videoInputs: true,\n maxOutputTokens: 8192,\n reasoningOutput: false,\n imageOutputs: false,\n audioOutputs: false,\n videoOutputs: false,\n toolCalling: true,\n structuredOutput: false,\n },\n};\nexport default PROFILES;\n"],"mappings":"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EACb,kBAAkB;EACnB;CACD,uCAAuC;EACrC,gBAAgB;EAChB,aAAa;EACb,aAAa;EACb,WAAW;EACX,aAAa;EACb,iBAAiB;EACjB,iBAAiB;EACjB,cAAc;EACd,cAAc;EACd,cAAc;EACd,aAAa;EACb,kBAAkB;EACnB;CACD,kCAAkC;EAChC,gBAAgB;EAChB,aAAa;EACb,aAAa;EACb,WAAW;EACX,aAAa;EACb,iBAAiB;EACjB,iBAAiB;EACjB,cAAc;EACd,cAAc;EACd,cAAc;EACd,aAAa;EACb,kBAAkB;EACnB;CACD,oCAAoC;EAClC,gBAAgB;EAChB,aAAa;EACb,aAAa;EACb,WAAW;EACX,aAAa;EACb,iBAAiB;EACjB,iBAAiB;EACjB,cAAc;EACd,cAAc;EACd,cAAc;EACd,aAAa;EACb,kBAAkB;EACnB;CACD,kCAAkC;EAChC,gBAAgB;EAChB,aAAa;EACb,aAAa;EACb,WAAW;EACX,aAAa;EACb,iBAAiB;EACjB,iBAAiB;EACjB,cAAc;EACd,cAAc;EACd,cAAc;EACd,aAAa;EACb,kBAAkB;EACnB;CACD,8BAA8B;EAC5B,gBAAgB;EAChB,aAAa;EACb,aAAa;EACb,WAAW;EACX,aAAa;EACb,iBAAiB;EACjB,iBAAiB;EACjB,cAAc;EACd,cAAc;EACd,cAAc;EACd,aAAa;EACb,kBAAkB;EACnB;CACD,kBAAkB;EAChB,gBAAgB;EAChB,aAAa;EACb,aAAa;EACb,WAAW;EACX,aAAa;EACb,iBAAiB;EACjB,iBAAiB;EACjB,cAAc;EACd,cAAc;EACd,cAAc;EACd,aAAa;EACb,kBAAkB;EACnB;CACD,oBAAoB;EAClB,gBAAgB;EAChB,aAAa;EACb,aAAa;EACb,WAAW;EACX,aAAa;EACb,iBAAiB;EACjB,iBAAiB;EACjB,cAAc;EACd,cAAc;EACd,cAAc;EACd,aAAa;EACb,kBAAkB;EACnB;CACD,uBAAuB;EACrB,gBAAgB;EAChB,aAAa;EACb,aAAa;EACb,WAAW;EACX,aAAa;EACb,iBAAiB;EACjB,iBAAiB;EACjB,cAAc;EACd,cAAc;EACd,cAAc;EACd,aAAa;EACb,kBAAkB;EACnB;CACD,yCAAyC;EACvC,gBAAgB;EAChB,aAAa;EACb,aAAa;EACb,WAAW;EACX,aAAa;EACb,iBAAiB;EACjB,iBAAiB;EACjB,cAAc;EACd,cAAc;EACd,cAAc;EACd,aAAa;EACb,kBAAkB;EACnB;CACD,kBAAkB;EAChB,gBAAgB;EAChB,aAAa;EACb,aAAa;EACb,WAAW;EACX,aAAa;EACb,iBAAiB;EACjB,iBAAiB;EACjB,cAAc;EACd,cAAc;EACd,cAAc;EACd,aAAa;EACb,kBAAkB;EACnB;CACF"}
|
|
1
|
+
{"version":3,"file":"profiles.js","names":[],"sources":["../../src/chat_models/profiles.ts"],"sourcesContent":["/**\n * This file was automatically generated by an automated script. Do not edit manually.\n */\nimport type { ModelProfile } from \"@langchain/core/language_models/profile\";\nconst PROFILES: Record<string, ModelProfile> = {\n \"gemini-embedding-001\": {\n maxInputTokens: 2048,\n imageInputs: false,\n audioInputs: false,\n pdfInputs: false,\n videoInputs: false,\n maxOutputTokens: 3072,\n reasoningOutput: false,\n imageOutputs: false,\n audioOutputs: false,\n videoOutputs: false,\n toolCalling: false,\n structuredOutput: false,\n },\n \"gemini-2.5-flash-lite-preview-09-2025\": {\n maxInputTokens: 1048576,\n imageInputs: true,\n audioInputs: true,\n pdfInputs: true,\n videoInputs: true,\n maxOutputTokens: 65536,\n reasoningOutput: true,\n imageOutputs: false,\n audioOutputs: false,\n videoOutputs: false,\n toolCalling: true,\n structuredOutput: true,\n },\n \"gemini-2.5-pro-preview-06-05\": {\n maxInputTokens: 1048576,\n imageInputs: true,\n audioInputs: true,\n pdfInputs: true,\n videoInputs: true,\n maxOutputTokens: 65536,\n reasoningOutput: true,\n imageOutputs: false,\n audioOutputs: false,\n videoOutputs: false,\n toolCalling: true,\n structuredOutput: true,\n },\n \"gemini-2.5-flash-preview-04-17\": {\n maxInputTokens: 1048576,\n imageInputs: true,\n audioInputs: true,\n pdfInputs: true,\n videoInputs: true,\n maxOutputTokens: 65536,\n reasoningOutput: true,\n imageOutputs: false,\n audioOutputs: false,\n videoOutputs: false,\n toolCalling: true,\n structuredOutput: false,\n },\n \"gemini-2.5-flash-preview-09-2025\": {\n maxInputTokens: 1048576,\n imageInputs: true,\n audioInputs: true,\n pdfInputs: true,\n videoInputs: true,\n maxOutputTokens: 65536,\n reasoningOutput: true,\n imageOutputs: false,\n audioOutputs: false,\n videoOutputs: false,\n toolCalling: true,\n structuredOutput: true,\n },\n \"gemini-2.5-pro-preview-05-06\": {\n maxInputTokens: 1048576,\n imageInputs: true,\n audioInputs: true,\n pdfInputs: true,\n videoInputs: true,\n maxOutputTokens: 65536,\n reasoningOutput: true,\n imageOutputs: false,\n audioOutputs: false,\n videoOutputs: false,\n toolCalling: true,\n structuredOutput: true,\n },\n \"gemini-2.5-flash-preview-05-20\": {\n maxInputTokens: 1048576,\n imageInputs: true,\n audioInputs: true,\n pdfInputs: true,\n videoInputs: true,\n maxOutputTokens: 65536,\n reasoningOutput: true,\n imageOutputs: false,\n audioOutputs: false,\n videoOutputs: false,\n toolCalling: true,\n structuredOutput: true,\n },\n \"gemini-2.5-flash\": {\n maxInputTokens: 1048576,\n imageInputs: true,\n audioInputs: true,\n pdfInputs: true,\n videoInputs: true,\n maxOutputTokens: 65536,\n reasoningOutput: true,\n imageOutputs: false,\n audioOutputs: false,\n videoOutputs: false,\n toolCalling: true,\n structuredOutput: true,\n },\n \"gemini-live-2.5-flash\": {\n maxInputTokens: 128000,\n imageInputs: true,\n audioInputs: true,\n pdfInputs: false,\n videoInputs: true,\n maxOutputTokens: 8000,\n reasoningOutput: true,\n imageOutputs: false,\n audioOutputs: true,\n videoOutputs: false,\n toolCalling: true,\n structuredOutput: false,\n },\n \"gemini-3-flash-preview\": {\n maxInputTokens: 1048576,\n imageInputs: true,\n audioInputs: true,\n pdfInputs: true,\n videoInputs: true,\n maxOutputTokens: 65536,\n reasoningOutput: true,\n imageOutputs: false,\n audioOutputs: false,\n videoOutputs: false,\n toolCalling: true,\n structuredOutput: true,\n },\n \"gemini-live-2.5-flash-preview-native-audio\": {\n maxInputTokens: 131072,\n imageInputs: false,\n audioInputs: true,\n pdfInputs: false,\n videoInputs: true,\n maxOutputTokens: 65536,\n reasoningOutput: true,\n imageOutputs: false,\n audioOutputs: true,\n videoOutputs: false,\n toolCalling: true,\n structuredOutput: false,\n },\n \"gemini-2.5-flash-lite\": {\n maxInputTokens: 1048576,\n imageInputs: true,\n audioInputs: true,\n pdfInputs: true,\n videoInputs: true,\n maxOutputTokens: 65536,\n reasoningOutput: true,\n imageOutputs: false,\n audioOutputs: false,\n videoOutputs: false,\n toolCalling: true,\n structuredOutput: true,\n },\n \"gemini-2.5-flash-preview-tts\": {\n maxInputTokens: 8000,\n imageInputs: false,\n audioInputs: false,\n pdfInputs: false,\n videoInputs: false,\n maxOutputTokens: 16000,\n reasoningOutput: false,\n imageOutputs: false,\n audioOutputs: true,\n videoOutputs: false,\n toolCalling: false,\n structuredOutput: false,\n },\n \"gemini-flash-latest\": {\n maxInputTokens: 1048576,\n imageInputs: true,\n audioInputs: true,\n pdfInputs: true,\n videoInputs: true,\n maxOutputTokens: 65536,\n reasoningOutput: true,\n imageOutputs: false,\n audioOutputs: false,\n videoOutputs: false,\n toolCalling: true,\n structuredOutput: true,\n },\n \"gemini-2.5-flash-lite-preview-06-17\": {\n maxInputTokens: 1048576,\n imageInputs: true,\n audioInputs: true,\n pdfInputs: true,\n videoInputs: true,\n maxOutputTokens: 65536,\n reasoningOutput: true,\n imageOutputs: false,\n audioOutputs: false,\n videoOutputs: false,\n toolCalling: true,\n structuredOutput: false,\n },\n \"gemini-2.5-flash-image\": {\n maxInputTokens: 32768,\n imageInputs: true,\n audioInputs: false,\n pdfInputs: false,\n videoInputs: false,\n maxOutputTokens: 32768,\n reasoningOutput: true,\n imageOutputs: true,\n audioOutputs: false,\n videoOutputs: false,\n toolCalling: false,\n structuredOutput: false,\n },\n \"gemini-2.5-pro-preview-tts\": {\n maxInputTokens: 8000,\n imageInputs: false,\n audioInputs: false,\n pdfInputs: false,\n videoInputs: false,\n maxOutputTokens: 16000,\n reasoningOutput: false,\n imageOutputs: false,\n audioOutputs: true,\n videoOutputs: false,\n toolCalling: false,\n structuredOutput: false,\n },\n \"gemini-2.5-flash-image-preview\": {\n maxInputTokens: 32768,\n imageInputs: true,\n audioInputs: false,\n pdfInputs: false,\n videoInputs: false,\n maxOutputTokens: 32768,\n reasoningOutput: true,\n imageOutputs: true,\n audioOutputs: false,\n videoOutputs: false,\n toolCalling: false,\n structuredOutput: false,\n },\n \"gemini-1.5-flash-8b\": {\n maxInputTokens: 1000000,\n imageInputs: true,\n audioInputs: true,\n pdfInputs: false,\n videoInputs: true,\n maxOutputTokens: 8192,\n reasoningOutput: false,\n imageOutputs: false,\n audioOutputs: false,\n videoOutputs: false,\n toolCalling: true,\n structuredOutput: false,\n },\n \"gemini-3-pro-preview\": {\n maxInputTokens: 1000000,\n imageInputs: true,\n audioInputs: true,\n pdfInputs: true,\n videoInputs: true,\n maxOutputTokens: 64000,\n reasoningOutput: true,\n imageOutputs: false,\n audioOutputs: false,\n videoOutputs: false,\n toolCalling: true,\n structuredOutput: true,\n },\n \"gemini-2.0-flash-lite\": {\n maxInputTokens: 1048576,\n imageInputs: true,\n audioInputs: true,\n pdfInputs: true,\n videoInputs: true,\n maxOutputTokens: 8192,\n reasoningOutput: false,\n imageOutputs: false,\n audioOutputs: false,\n videoOutputs: false,\n toolCalling: true,\n structuredOutput: true,\n },\n \"gemini-1.5-flash\": {\n maxInputTokens: 1000000,\n imageInputs: true,\n audioInputs: true,\n pdfInputs: false,\n videoInputs: true,\n maxOutputTokens: 8192,\n reasoningOutput: false,\n imageOutputs: false,\n audioOutputs: false,\n videoOutputs: false,\n toolCalling: true,\n structuredOutput: false,\n },\n \"gemini-flash-lite-latest\": {\n maxInputTokens: 1048576,\n imageInputs: true,\n audioInputs: true,\n pdfInputs: true,\n videoInputs: true,\n maxOutputTokens: 65536,\n reasoningOutput: true,\n imageOutputs: false,\n audioOutputs: false,\n videoOutputs: false,\n toolCalling: true,\n structuredOutput: true,\n },\n \"gemini-2.5-pro\": {\n maxInputTokens: 1048576,\n imageInputs: true,\n audioInputs: true,\n pdfInputs: true,\n videoInputs: true,\n maxOutputTokens: 65536,\n reasoningOutput: true,\n imageOutputs: false,\n audioOutputs: false,\n videoOutputs: false,\n toolCalling: true,\n structuredOutput: true,\n },\n \"gemini-2.0-flash\": {\n maxInputTokens: 1048576,\n imageInputs: true,\n audioInputs: true,\n pdfInputs: true,\n videoInputs: true,\n maxOutputTokens: 8192,\n reasoningOutput: false,\n imageOutputs: false,\n audioOutputs: false,\n videoOutputs: false,\n toolCalling: true,\n structuredOutput: true,\n },\n \"gemini-1.5-pro\": {\n maxInputTokens: 1000000,\n imageInputs: true,\n audioInputs: true,\n pdfInputs: false,\n videoInputs: true,\n maxOutputTokens: 8192,\n reasoningOutput: false,\n imageOutputs: false,\n audioOutputs: false,\n videoOutputs: false,\n toolCalling: true,\n structuredOutput: false,\n },\n};\nexport default PROFILES;\n"],"mappings":";AAIA,MAAM,WAAyC;CAC7C,wBAAwB;EACtB,gBAAgB;EAChB,aAAa;EACb,aAAa;EACb,WAAW;EACX,aAAa;EACb,iBAAiB;EACjB,iBAAiB;EACjB,cAAc;EACd,cAAc;EACd,cAAc;EACd,aAAa;EACb,kBAAkB;EACnB;CACD,yCAAyC;EACvC,gBAAgB;EAChB,aAAa;EACb,aAAa;EACb,WAAW;EACX,aAAa;EACb,iBAAiB;EACjB,iBAAiB;EACjB,cAAc;EACd,cAAc;EACd,cAAc;EACd,aAAa;EACb,kBAAkB;EACnB;CACD,gCAAgC;EAC9B,gBAAgB;EAChB,aAAa;EACb,aAAa;EACb,WAAW;EACX,aAAa;EACb,iBAAiB;EACjB,iBAAiB;EACjB,cAAc;EACd,cAAc;EACd,cAAc;EACd,aAAa;EACb,kBAAkB;EACnB;CACD,kCAAkC;EAChC,gBAAgB;EAChB,aAAa;EACb,aAAa;EACb,WAAW;EACX,aAAa;EACb,iBAAiB;EACjB,iBAAiB;EACjB,cAAc;EACd,cAAc;EACd,cAAc;EACd,aAAa;EACb,kBAAkB;EACnB;CACD,oCAAoC;EAClC,gBAAgB;EAChB,aAAa;EACb,aAAa;EACb,WAAW;EACX,aAAa;EACb,iBAAiB;EACjB,iBAAiB;EACjB,cAAc;EACd,cAAc;EACd,cAAc;EACd,aAAa;EACb,kBAAkB;EACnB;CACD,gCAAgC;EAC9B,gBAAgB;EAChB,aAAa;EACb,aAAa;EACb,WAAW;EACX,aAAa;EACb,iBAAiB;EACjB,iBAAiB;EACjB,cAAc;EACd,cAAc;EACd,cAAc;EACd,aAAa;EACb,kBAAkB;EACnB;CACD,kCAAkC;EAChC,gBAAgB;EAChB,aAAa;EACb,aAAa;EACb,WAAW;EACX,aAAa;EACb,iBAAiB;EACjB,iBAAiB;EACjB,cAAc;EACd,cAAc;EACd,cAAc;EACd,aAAa;EACb,kBAAkB;EACnB;CACD,oBAAoB;EAClB,gBAAgB;EAChB,aAAa;EACb,aAAa;EACb,WAAW;EACX,aAAa;EACb,iBAAiB;EACjB,iBAAiB;EACjB,cAAc;EACd,cAAc;EACd,cAAc;EACd,aAAa;EACb,kBAAkB;EACnB;CACD,yBAAyB;EACvB,gBAAgB;EAChB,aAAa;EACb,aAAa;EACb,WAAW;EACX,aAAa;EACb,iBAAiB;EACjB,iBAAiB;EACjB,cAAc;EACd,cAAc;EACd,cAAc;EACd,aAAa;EACb,kBAAkB;EACnB;CACD,0BAA0B;EACxB,gBAAgB;EAChB,aAAa;EACb,aAAa;EACb,WAAW;EACX,aAAa;EACb,iBAAiB;EACjB,iBAAiB;EACjB,cAAc;EACd,cAAc;EACd,cAAc;EACd,aAAa;EACb,kBAAkB;EACnB;CACD,8CAA8C;EAC5C,gBAAgB;EAChB,aAAa;EACb,aAAa;EACb,WAAW;EACX,aAAa;EACb,iBAAiB;EACjB,iBAAiB;EACjB,cAAc;EACd,cAAc;EACd,cAAc;EACd,aAAa;EACb,kBAAkB;EACnB;CACD,yBAAyB;EACvB,gBAAgB;EAChB,aAAa;EACb,aAAa;EACb,WAAW;EACX,aAAa;EACb,iBAAiB;EACjB,iBAAiB;EACjB,cAAc;EACd,cAAc;EACd,cAAc;EACd,aAAa;EACb,kBAAkB;EACnB;CACD,gCAAgC;EAC9B,gBAAgB;EAChB,aAAa;EACb,aAAa;EACb,WAAW;EACX,aAAa;EACb,iBAAiB;EACjB,iBAAiB;EACjB,cAAc;EACd,cAAc;EACd,cAAc;EACd,aAAa;EACb,kBAAkB;EACnB;CACD,uBAAuB;EACrB,gBAAgB;EAChB,aAAa;EACb,aAAa;EACb,WAAW;EACX,aAAa;EACb,iBAAiB;EACjB,iBAAiB;EACjB,cAAc;EACd,cAAc;EACd,cAAc;EACd,aAAa;EACb,kBAAkB;EACnB;CACD,uCAAuC;EACrC,gBAAgB;EAChB,aAAa;EACb,aAAa;EACb,WAAW;EACX,aAAa;EACb,iBAAiB;EACjB,iBAAiB;EACjB,cAAc;EACd,cAAc;EACd,cAAc;EACd,aAAa;EACb,kBAAkB;EACnB;CACD,0BAA0B;EACxB,gBAAgB;EAChB,aAAa;EACb,aAAa;EACb,WAAW;EACX,aAAa;EACb,iBAAiB;EACjB,iBAAiB;EACjB,cAAc;EACd,cAAc;EACd,cAAc;EACd,aAAa;EACb,kBAAkB;EACnB;CACD,8BAA8B;EAC5B,gBAAgB;EAChB,aAAa;EACb,aAAa;EACb,WAAW;EACX,aAAa;EACb,iBAAiB;EACjB,iBAAiB;EACjB,cAAc;EACd,cAAc;EACd,cAAc;EACd,aAAa;EACb,kBAAkB;EACnB;CACD,kCAAkC;EAChC,gBAAgB;EAChB,aAAa;EACb,aAAa;EACb,WAAW;EACX,aAAa;EACb,iBAAiB;EACjB,iBAAiB;EACjB,cAAc;EACd,cAAc;EACd,cAAc;EACd,aAAa;EACb,kBAAkB;EACnB;CACD,uBAAuB;EACrB,gBAAgB;EAChB,aAAa;EACb,aAAa;EACb,WAAW;EACX,aAAa;EACb,iBAAiB;EACjB,iBAAiB;EACjB,cAAc;EACd,cAAc;EACd,cAAc;EACd,aAAa;EACb,kBAAkB;EACnB;CACD,wBAAwB;EACtB,gBAAgB;EAChB,aAAa;EACb,aAAa;EACb,WAAW;EACX,aAAa;EACb,iBAAiB;EACjB,iBAAiB;EACjB,cAAc;EACd,cAAc;EACd,cAAc;EACd,aAAa;EACb,kBAAkB;EACnB;CACD,yBAAyB;EACvB,gBAAgB;EAChB,aAAa;EACb,aAAa;EACb,WAAW;EACX,aAAa;EACb,iBAAiB;EACjB,iBAAiB;EACjB,cAAc;EACd,cAAc;EACd,cAAc;EACd,aAAa;EACb,kBAAkB;EACnB;CACD,oBAAoB;EAClB,gBAAgB;EAChB,aAAa;EACb,aAAa;EACb,WAAW;EACX,aAAa;EACb,iBAAiB;EACjB,iBAAiB;EACjB,cAAc;EACd,cAAc;EACd,cAAc;EACd,aAAa;EACb,kBAAkB;EACnB;CACD,4BAA4B;EAC1B,gBAAgB;EAChB,aAAa;EACb,aAAa;EACb,WAAW;EACX,aAAa;EACb,iBAAiB;EACjB,iBAAiB;EACjB,cAAc;EACd,cAAc;EACd,cAAc;EACd,aAAa;EACb,kBAAkB;EACnB;CACD,kBAAkB;EAChB,gBAAgB;EAChB,aAAa;EACb,aAAa;EACb,WAAW;EACX,aAAa;EACb,iBAAiB;EACjB,iBAAiB;EACjB,cAAc;EACd,cAAc;EACd,cAAc;EACd,aAAa;EACb,kBAAkB;EACnB;CACD,oBAAoB;EAClB,gBAAgB;EAChB,aAAa;EACb,aAAa;EACb,WAAW;EACX,aAAa;EACb,iBAAiB;EACjB,iBAAiB;EACjB,cAAc;EACd,cAAc;EACd,cAAc;EACd,aAAa;EACb,kBAAkB;EACnB;CACD,kBAAkB;EAChB,gBAAgB;EAChB,aAAa;EACb,aAAa;EACb,WAAW;EACX,aAAa;EACb,iBAAiB;EACjB,iBAAiB;EACjB,cAAc;EACd,cAAc;EACd,cAAc;EACd,aAAa;EACb,kBAAkB;EACnB;CACF"}
|
package/dist/utils/errors.cjs
CHANGED
|
@@ -1,19 +1,29 @@
|
|
|
1
1
|
const require_misc = require('./misc.cjs');
|
|
2
|
+
let _langchain_core_errors = require("@langchain/core/errors");
|
|
2
3
|
|
|
3
4
|
//#region src/utils/errors.ts
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
5
|
+
const ns = _langchain_core_errors.ns.sub("google");
|
|
6
|
+
/**
|
|
7
|
+
* Base error class for all Google provider errors.
|
|
8
|
+
*
|
|
9
|
+
* All Google-specific error classes extend this class. Use
|
|
10
|
+
* `GoogleError.isInstance(obj)` to check if an object is any
|
|
11
|
+
* Google provider error.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```typescript
|
|
15
|
+
* try {
|
|
16
|
+
* await model.invoke("hello");
|
|
17
|
+
* } catch (error) {
|
|
18
|
+
* if (GoogleError.isInstance(error)) {
|
|
19
|
+
* console.log("Got a Google error:", error.message);
|
|
20
|
+
* }
|
|
21
|
+
* }
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
var GoogleError = class extends ns.brand(_langchain_core_errors.LangChainError) {
|
|
25
|
+
name = "GoogleError";
|
|
26
|
+
};
|
|
17
27
|
/**
|
|
18
28
|
* Error thrown when there is a configuration issue with the Google provider.
|
|
19
29
|
*
|
|
@@ -31,7 +41,7 @@ function GoogleError(marker) {
|
|
|
31
41
|
* }
|
|
32
42
|
* ```
|
|
33
43
|
*/
|
|
34
|
-
var ConfigurationError = class extends GoogleError
|
|
44
|
+
var ConfigurationError = class extends ns.brand(GoogleError, "configuration") {
|
|
35
45
|
name = "ConfigurationError";
|
|
36
46
|
};
|
|
37
47
|
/**
|
|
@@ -53,11 +63,7 @@ var ConfigurationError = class extends GoogleError("configuration") {
|
|
|
53
63
|
* }
|
|
54
64
|
* ```
|
|
55
65
|
*/
|
|
56
|
-
var PromptBlockedError = class PromptBlockedError extends GoogleError
|
|
57
|
-
/**
|
|
58
|
-
* The name of the error class.
|
|
59
|
-
* @readonly
|
|
60
|
-
*/
|
|
66
|
+
var PromptBlockedError = class PromptBlockedError extends ns.brand(GoogleError, "prompt-blocked") {
|
|
61
67
|
name = "PromptBlockedError";
|
|
62
68
|
/**
|
|
63
69
|
* The reason why the prompt was blocked.
|
|
@@ -138,7 +144,7 @@ var PromptBlockedError = class PromptBlockedError extends GoogleError("prompt-bl
|
|
|
138
144
|
* }
|
|
139
145
|
* ```
|
|
140
146
|
*/
|
|
141
|
-
var AuthError = class AuthError extends GoogleError
|
|
147
|
+
var AuthError = class AuthError extends ns.brand(GoogleError, "auth") {
|
|
142
148
|
name = "AuthError";
|
|
143
149
|
/**
|
|
144
150
|
* The HTTP status code of the failed response.
|
|
@@ -256,7 +262,7 @@ const RETRYABLE_STATUS_CODES = [
|
|
|
256
262
|
* }
|
|
257
263
|
* ```
|
|
258
264
|
*/
|
|
259
|
-
var RequestError = class RequestError extends GoogleError
|
|
265
|
+
var RequestError = class RequestError extends ns.brand(GoogleError, "request") {
|
|
260
266
|
name = "RequestError";
|
|
261
267
|
/**
|
|
262
268
|
* The URL of the failed request.
|
|
@@ -391,7 +397,7 @@ var RequestError = class RequestError extends GoogleError("request") {
|
|
|
391
397
|
* }
|
|
392
398
|
* ```
|
|
393
399
|
*/
|
|
394
|
-
var NoCandidatesError = class extends GoogleError
|
|
400
|
+
var NoCandidatesError = class extends ns.brand(GoogleError, "no-candidates") {
|
|
395
401
|
name = "NoCandidatesError";
|
|
396
402
|
constructor() {
|
|
397
403
|
super("No candidates returned from API. This may indicate the prompt was blocked or an error occurred.");
|
|
@@ -419,7 +425,7 @@ var NoCandidatesError = class extends GoogleError("no-candidates") {
|
|
|
419
425
|
* }
|
|
420
426
|
* ```
|
|
421
427
|
*/
|
|
422
|
-
var InvalidToolError = class extends GoogleError
|
|
428
|
+
var InvalidToolError = class extends ns.brand(GoogleError, "invalid-tool") {
|
|
423
429
|
name = "InvalidToolError";
|
|
424
430
|
/**
|
|
425
431
|
* The invalid tool that was provided.
|
|
@@ -454,7 +460,7 @@ var InvalidToolError = class extends GoogleError("invalid-tool") {
|
|
|
454
460
|
* }
|
|
455
461
|
* ```
|
|
456
462
|
*/
|
|
457
|
-
var ToolCallNotFoundError = class extends GoogleError
|
|
463
|
+
var ToolCallNotFoundError = class extends ns.brand(GoogleError, "tool-call-not-found") {
|
|
458
464
|
name = "ToolCallNotFoundError";
|
|
459
465
|
/**
|
|
460
466
|
* The tool call ID that could not be found in the conversation history.
|
|
@@ -490,7 +496,7 @@ var ToolCallNotFoundError = class extends GoogleError("tool-call-not-found") {
|
|
|
490
496
|
* }
|
|
491
497
|
* ```
|
|
492
498
|
*/
|
|
493
|
-
var MalformedOutputError = class extends GoogleError
|
|
499
|
+
var MalformedOutputError = class extends ns.brand(GoogleError, "malformed-output") {
|
|
494
500
|
name = "MalformedOutputError";
|
|
495
501
|
/**
|
|
496
502
|
* Optional cause of the parsing error.
|
|
@@ -524,7 +530,7 @@ var MalformedOutputError = class extends GoogleError("malformed-output") {
|
|
|
524
530
|
* }
|
|
525
531
|
* ```
|
|
526
532
|
*/
|
|
527
|
-
var InvalidInputError = class extends GoogleError
|
|
533
|
+
var InvalidInputError = class extends ns.brand(GoogleError, "invalid-input") {
|
|
528
534
|
name = "InvalidInputError";
|
|
529
535
|
};
|
|
530
536
|
|