@opencode-ai/ai 0.0.0-dev-18051 → 0.0.0-dev-18053
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/protocols/anthropic-messages.d.ts +250 -14
- package/dist/protocols/anthropic-messages.js +274 -14
- package/dist/protocols/gemini.d.ts +2 -2
- package/dist/protocols/open-responses.d.ts +3 -3
- package/dist/protocols/openai-compatible-responses.d.ts +1 -1
- package/dist/protocols/openai-responses.d.ts +5 -5
- package/dist/protocols/utils/bedrock-media.d.ts +1 -0
- package/dist/protocols/xai-responses.d.ts +1 -1
- package/dist/providers/amazon-bedrock-mantle.d.ts +1 -1
- package/dist/providers/anthropic-compatible.d.ts +72 -3
- package/dist/providers/anthropic.d.ts +72 -3
- package/dist/providers/azure.d.ts +1 -1
- package/dist/providers/google-vertex-messages.d.ts +72 -3
- package/dist/providers/google-vertex-responses.d.ts +1 -1
- package/dist/providers/google-vertex.d.ts +1 -1
- package/dist/providers/google.d.ts +1 -1
- package/dist/providers/openai-compatible-responses.d.ts +1 -1
- package/dist/providers/openai.d.ts +1 -1
- package/dist/schema/messages.d.ts +3 -0
- package/dist/schema/messages.js +1 -0
- package/package.json +3 -3
|
@@ -27,6 +27,39 @@ export interface OptionsInput {
|
|
|
27
27
|
readonly [key: string]: unknown;
|
|
28
28
|
readonly thinking?: ThinkingInput;
|
|
29
29
|
readonly effort?: string;
|
|
30
|
+
readonly service_tier?: "auto" | "standard_only";
|
|
31
|
+
readonly serviceTier?: "auto" | "standard_only";
|
|
32
|
+
readonly metadata?: {
|
|
33
|
+
readonly user_id?: string | null;
|
|
34
|
+
};
|
|
35
|
+
readonly container?: string | {
|
|
36
|
+
readonly id?: string | null;
|
|
37
|
+
readonly skills?: ReadonlyArray<Record<string, unknown>> | null;
|
|
38
|
+
};
|
|
39
|
+
readonly inference_geo?: string | null;
|
|
40
|
+
readonly inferenceGeo?: string | null;
|
|
41
|
+
readonly cache_control?: {
|
|
42
|
+
readonly type: "ephemeral";
|
|
43
|
+
readonly ttl?: "5m" | "1h";
|
|
44
|
+
};
|
|
45
|
+
readonly cacheControl?: {
|
|
46
|
+
readonly type: "ephemeral";
|
|
47
|
+
readonly ttl?: "5m" | "1h";
|
|
48
|
+
};
|
|
49
|
+
readonly output_config?: {
|
|
50
|
+
readonly effort?: string | null;
|
|
51
|
+
readonly format?: {
|
|
52
|
+
readonly type: "json_schema";
|
|
53
|
+
readonly schema: Record<string, unknown>;
|
|
54
|
+
} | null;
|
|
55
|
+
};
|
|
56
|
+
readonly outputConfig?: {
|
|
57
|
+
readonly effort?: string | null;
|
|
58
|
+
readonly format?: {
|
|
59
|
+
readonly type: "json_schema";
|
|
60
|
+
readonly schema: Record<string, unknown>;
|
|
61
|
+
} | null;
|
|
62
|
+
};
|
|
30
63
|
}
|
|
31
64
|
export type ProviderOptionsInput = OptionsInput;
|
|
32
65
|
export declare const AnthropicMessagesBody: Schema.Struct<{
|
|
@@ -50,26 +83,50 @@ export declare const AnthropicMessagesBody: Schema.Struct<{
|
|
|
50
83
|
}>>;
|
|
51
84
|
}>, Schema.Struct<{
|
|
52
85
|
readonly type: Schema.tag<"image">;
|
|
53
|
-
readonly source: Schema.Struct<{
|
|
86
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
54
87
|
readonly type: Schema.tag<"base64">;
|
|
55
88
|
readonly media_type: Schema.String;
|
|
56
89
|
readonly data: Schema.String;
|
|
57
|
-
}
|
|
90
|
+
}>, Schema.Struct<{
|
|
91
|
+
readonly type: Schema.tag<"url">;
|
|
92
|
+
readonly url: Schema.String;
|
|
93
|
+
}>, Schema.Struct<{
|
|
94
|
+
readonly type: Schema.tag<"file">;
|
|
95
|
+
readonly file_id: Schema.String;
|
|
96
|
+
}>]>;
|
|
58
97
|
readonly cache_control: Schema.optional<Schema.Struct<{
|
|
59
98
|
readonly type: Schema.tag<"ephemeral">;
|
|
60
99
|
readonly ttl: Schema.optional<Schema.Literals<readonly ["5m", "1h"]>>;
|
|
61
100
|
}>>;
|
|
101
|
+
readonly transformations: Schema.optional<Schema.Struct<{
|
|
102
|
+
readonly oversized_image: Schema.optional<Schema.Literals<readonly ["downsize", "error"]>>;
|
|
103
|
+
}>>;
|
|
62
104
|
}>, Schema.Struct<{
|
|
63
105
|
readonly type: Schema.tag<"document">;
|
|
64
|
-
readonly source: Schema.Struct<{
|
|
106
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
65
107
|
readonly type: Schema.tag<"base64">;
|
|
66
108
|
readonly media_type: Schema.Literal<"application/pdf">;
|
|
67
109
|
readonly data: Schema.String;
|
|
68
|
-
}
|
|
110
|
+
}>, Schema.Struct<{
|
|
111
|
+
readonly type: Schema.tag<"text">;
|
|
112
|
+
readonly media_type: Schema.Literal<"text/plain">;
|
|
113
|
+
readonly data: Schema.String;
|
|
114
|
+
}>, Schema.Struct<{
|
|
115
|
+
readonly type: Schema.tag<"url">;
|
|
116
|
+
readonly url: Schema.String;
|
|
117
|
+
}>, Schema.Struct<{
|
|
118
|
+
readonly type: Schema.tag<"file">;
|
|
119
|
+
readonly file_id: Schema.String;
|
|
120
|
+
}>]>;
|
|
69
121
|
readonly cache_control: Schema.optional<Schema.Struct<{
|
|
70
122
|
readonly type: Schema.tag<"ephemeral">;
|
|
71
123
|
readonly ttl: Schema.optional<Schema.Literals<readonly ["5m", "1h"]>>;
|
|
72
124
|
}>>;
|
|
125
|
+
readonly title: Schema.optional<Schema.String>;
|
|
126
|
+
readonly context: Schema.optional<Schema.String>;
|
|
127
|
+
readonly citations: Schema.optional<Schema.Struct<{
|
|
128
|
+
readonly enabled: Schema.Boolean;
|
|
129
|
+
}>>;
|
|
73
130
|
}>, Schema.Struct<{
|
|
74
131
|
readonly type: Schema.tag<"tool_result">;
|
|
75
132
|
readonly tool_use_id: Schema.String;
|
|
@@ -82,26 +139,50 @@ export declare const AnthropicMessagesBody: Schema.Struct<{
|
|
|
82
139
|
}>>;
|
|
83
140
|
}>, Schema.Struct<{
|
|
84
141
|
readonly type: Schema.tag<"image">;
|
|
85
|
-
readonly source: Schema.Struct<{
|
|
142
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
86
143
|
readonly type: Schema.tag<"base64">;
|
|
87
144
|
readonly media_type: Schema.String;
|
|
88
145
|
readonly data: Schema.String;
|
|
89
|
-
}
|
|
146
|
+
}>, Schema.Struct<{
|
|
147
|
+
readonly type: Schema.tag<"url">;
|
|
148
|
+
readonly url: Schema.String;
|
|
149
|
+
}>, Schema.Struct<{
|
|
150
|
+
readonly type: Schema.tag<"file">;
|
|
151
|
+
readonly file_id: Schema.String;
|
|
152
|
+
}>]>;
|
|
90
153
|
readonly cache_control: Schema.optional<Schema.Struct<{
|
|
91
154
|
readonly type: Schema.tag<"ephemeral">;
|
|
92
155
|
readonly ttl: Schema.optional<Schema.Literals<readonly ["5m", "1h"]>>;
|
|
93
156
|
}>>;
|
|
157
|
+
readonly transformations: Schema.optional<Schema.Struct<{
|
|
158
|
+
readonly oversized_image: Schema.optional<Schema.Literals<readonly ["downsize", "error"]>>;
|
|
159
|
+
}>>;
|
|
94
160
|
}>, Schema.Struct<{
|
|
95
161
|
readonly type: Schema.tag<"document">;
|
|
96
|
-
readonly source: Schema.Struct<{
|
|
162
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
97
163
|
readonly type: Schema.tag<"base64">;
|
|
98
164
|
readonly media_type: Schema.Literal<"application/pdf">;
|
|
99
165
|
readonly data: Schema.String;
|
|
100
|
-
}
|
|
166
|
+
}>, Schema.Struct<{
|
|
167
|
+
readonly type: Schema.tag<"text">;
|
|
168
|
+
readonly media_type: Schema.Literal<"text/plain">;
|
|
169
|
+
readonly data: Schema.String;
|
|
170
|
+
}>, Schema.Struct<{
|
|
171
|
+
readonly type: Schema.tag<"url">;
|
|
172
|
+
readonly url: Schema.String;
|
|
173
|
+
}>, Schema.Struct<{
|
|
174
|
+
readonly type: Schema.tag<"file">;
|
|
175
|
+
readonly file_id: Schema.String;
|
|
176
|
+
}>]>;
|
|
101
177
|
readonly cache_control: Schema.optional<Schema.Struct<{
|
|
102
178
|
readonly type: Schema.tag<"ephemeral">;
|
|
103
179
|
readonly ttl: Schema.optional<Schema.Literals<readonly ["5m", "1h"]>>;
|
|
104
180
|
}>>;
|
|
181
|
+
readonly title: Schema.optional<Schema.String>;
|
|
182
|
+
readonly context: Schema.optional<Schema.String>;
|
|
183
|
+
readonly citations: Schema.optional<Schema.Struct<{
|
|
184
|
+
readonly enabled: Schema.Boolean;
|
|
185
|
+
}>>;
|
|
105
186
|
}>]>>]>;
|
|
106
187
|
readonly is_error: Schema.optional<Schema.Boolean>;
|
|
107
188
|
readonly cache_control: Schema.optional<Schema.Struct<{
|
|
@@ -206,7 +287,24 @@ export declare const AnthropicMessagesBody: Schema.Struct<{
|
|
|
206
287
|
}>]>>;
|
|
207
288
|
output_config: Schema.optional<Schema.Struct<{
|
|
208
289
|
readonly effort: Schema.optional<Schema.String>;
|
|
290
|
+
readonly format: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
291
|
+
readonly type: Schema.Literal<"json_schema">;
|
|
292
|
+
readonly schema: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
293
|
+
}>>>;
|
|
294
|
+
}>>;
|
|
295
|
+
cache_control: Schema.optional<Schema.Struct<{
|
|
296
|
+
readonly type: Schema.tag<"ephemeral">;
|
|
297
|
+
readonly ttl: Schema.optional<Schema.Literals<readonly ["5m", "1h"]>>;
|
|
209
298
|
}>>;
|
|
299
|
+
container: Schema.optional<Schema.NullOr<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
300
|
+
readonly id: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
301
|
+
readonly skills: Schema.optional<Schema.NullOr<Schema.$Array<Schema.$Record<Schema.String, Schema.Unknown>>>>;
|
|
302
|
+
}>]>>>;
|
|
303
|
+
inference_geo: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
304
|
+
metadata: Schema.optional<Schema.Struct<{
|
|
305
|
+
readonly user_id: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
306
|
+
}>>;
|
|
307
|
+
service_tier: Schema.optional<Schema.Literals<readonly ["auto", "standard_only"]>>;
|
|
210
308
|
}>;
|
|
211
309
|
export type AnthropicMessagesBody = Schema.Schema.Type<typeof AnthropicMessagesBody>;
|
|
212
310
|
/**
|
|
@@ -232,22 +330,46 @@ export declare const protocol: Protocol<{
|
|
|
232
330
|
readonly type: "base64";
|
|
233
331
|
readonly media_type: string;
|
|
234
332
|
readonly data: string;
|
|
333
|
+
} | {
|
|
334
|
+
readonly type: "url";
|
|
335
|
+
readonly url: string;
|
|
336
|
+
} | {
|
|
337
|
+
readonly type: "file";
|
|
338
|
+
readonly file_id: string;
|
|
235
339
|
};
|
|
236
340
|
readonly cache_control?: {
|
|
237
341
|
readonly type: "ephemeral";
|
|
238
342
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
239
343
|
} | undefined;
|
|
344
|
+
readonly transformations?: {
|
|
345
|
+
readonly oversized_image?: "error" | "downsize" | undefined;
|
|
346
|
+
} | undefined;
|
|
240
347
|
} | {
|
|
241
348
|
readonly type: "document";
|
|
242
349
|
readonly source: {
|
|
243
350
|
readonly type: "base64";
|
|
244
351
|
readonly media_type: "application/pdf";
|
|
245
352
|
readonly data: string;
|
|
353
|
+
} | {
|
|
354
|
+
readonly type: "text";
|
|
355
|
+
readonly media_type: "text/plain";
|
|
356
|
+
readonly data: string;
|
|
357
|
+
} | {
|
|
358
|
+
readonly type: "url";
|
|
359
|
+
readonly url: string;
|
|
360
|
+
} | {
|
|
361
|
+
readonly type: "file";
|
|
362
|
+
readonly file_id: string;
|
|
246
363
|
};
|
|
364
|
+
readonly title?: string | undefined;
|
|
365
|
+
readonly context?: string | undefined;
|
|
247
366
|
readonly cache_control?: {
|
|
248
367
|
readonly type: "ephemeral";
|
|
249
368
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
250
369
|
} | undefined;
|
|
370
|
+
readonly citations?: {
|
|
371
|
+
readonly enabled: boolean;
|
|
372
|
+
} | undefined;
|
|
251
373
|
} | {
|
|
252
374
|
readonly type: "tool_result";
|
|
253
375
|
readonly content: string | readonly ({
|
|
@@ -263,22 +385,46 @@ export declare const protocol: Protocol<{
|
|
|
263
385
|
readonly type: "base64";
|
|
264
386
|
readonly media_type: string;
|
|
265
387
|
readonly data: string;
|
|
388
|
+
} | {
|
|
389
|
+
readonly type: "url";
|
|
390
|
+
readonly url: string;
|
|
391
|
+
} | {
|
|
392
|
+
readonly type: "file";
|
|
393
|
+
readonly file_id: string;
|
|
266
394
|
};
|
|
267
395
|
readonly cache_control?: {
|
|
268
396
|
readonly type: "ephemeral";
|
|
269
397
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
270
398
|
} | undefined;
|
|
399
|
+
readonly transformations?: {
|
|
400
|
+
readonly oversized_image?: "error" | "downsize" | undefined;
|
|
401
|
+
} | undefined;
|
|
271
402
|
} | {
|
|
272
403
|
readonly type: "document";
|
|
273
404
|
readonly source: {
|
|
274
405
|
readonly type: "base64";
|
|
275
406
|
readonly media_type: "application/pdf";
|
|
276
407
|
readonly data: string;
|
|
408
|
+
} | {
|
|
409
|
+
readonly type: "text";
|
|
410
|
+
readonly media_type: "text/plain";
|
|
411
|
+
readonly data: string;
|
|
412
|
+
} | {
|
|
413
|
+
readonly type: "url";
|
|
414
|
+
readonly url: string;
|
|
415
|
+
} | {
|
|
416
|
+
readonly type: "file";
|
|
417
|
+
readonly file_id: string;
|
|
277
418
|
};
|
|
419
|
+
readonly title?: string | undefined;
|
|
420
|
+
readonly context?: string | undefined;
|
|
278
421
|
readonly cache_control?: {
|
|
279
422
|
readonly type: "ephemeral";
|
|
280
423
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
281
424
|
} | undefined;
|
|
425
|
+
readonly citations?: {
|
|
426
|
+
readonly enabled: boolean;
|
|
427
|
+
} | undefined;
|
|
282
428
|
})[];
|
|
283
429
|
readonly tool_use_id: string;
|
|
284
430
|
readonly cache_control?: {
|
|
@@ -350,6 +496,9 @@ export declare const protocol: Protocol<{
|
|
|
350
496
|
}[];
|
|
351
497
|
})[];
|
|
352
498
|
readonly stream: true;
|
|
499
|
+
readonly metadata?: {
|
|
500
|
+
readonly user_id?: string | null | undefined;
|
|
501
|
+
} | undefined;
|
|
353
502
|
readonly tools?: readonly {
|
|
354
503
|
readonly description: string;
|
|
355
504
|
readonly name: string;
|
|
@@ -380,6 +529,27 @@ export declare const protocol: Protocol<{
|
|
|
380
529
|
} | {
|
|
381
530
|
readonly type: "disabled";
|
|
382
531
|
} | undefined;
|
|
532
|
+
readonly service_tier?: "auto" | "standard_only" | undefined;
|
|
533
|
+
readonly container?: string | {
|
|
534
|
+
readonly id?: string | null | undefined;
|
|
535
|
+
readonly skills?: readonly {
|
|
536
|
+
readonly [x: string]: unknown;
|
|
537
|
+
}[] | null | undefined;
|
|
538
|
+
} | null | undefined;
|
|
539
|
+
readonly inference_geo?: string | null | undefined;
|
|
540
|
+
readonly cache_control?: {
|
|
541
|
+
readonly type: "ephemeral";
|
|
542
|
+
readonly ttl?: "1h" | "5m" | undefined;
|
|
543
|
+
} | undefined;
|
|
544
|
+
readonly output_config?: {
|
|
545
|
+
readonly format?: {
|
|
546
|
+
readonly type: "json_schema";
|
|
547
|
+
readonly schema: {
|
|
548
|
+
readonly [x: string]: unknown;
|
|
549
|
+
};
|
|
550
|
+
} | null | undefined;
|
|
551
|
+
readonly effort?: string | undefined;
|
|
552
|
+
} | undefined;
|
|
383
553
|
readonly tool_choice?: {
|
|
384
554
|
readonly type: "auto" | "none" | "any";
|
|
385
555
|
readonly disable_parallel_tool_use?: boolean | undefined;
|
|
@@ -391,9 +561,6 @@ export declare const protocol: Protocol<{
|
|
|
391
561
|
readonly top_p?: number | undefined;
|
|
392
562
|
readonly top_k?: number | undefined;
|
|
393
563
|
readonly stop_sequences?: readonly string[] | undefined;
|
|
394
|
-
readonly output_config?: {
|
|
395
|
-
readonly effort?: string | undefined;
|
|
396
|
-
} | undefined;
|
|
397
564
|
}, string, {
|
|
398
565
|
readonly type: string;
|
|
399
566
|
readonly message?: {
|
|
@@ -477,22 +644,46 @@ export declare const route: Route<{
|
|
|
477
644
|
readonly type: "base64";
|
|
478
645
|
readonly media_type: string;
|
|
479
646
|
readonly data: string;
|
|
647
|
+
} | {
|
|
648
|
+
readonly type: "url";
|
|
649
|
+
readonly url: string;
|
|
650
|
+
} | {
|
|
651
|
+
readonly type: "file";
|
|
652
|
+
readonly file_id: string;
|
|
480
653
|
};
|
|
481
654
|
readonly cache_control?: {
|
|
482
655
|
readonly type: "ephemeral";
|
|
483
656
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
484
657
|
} | undefined;
|
|
658
|
+
readonly transformations?: {
|
|
659
|
+
readonly oversized_image?: "error" | "downsize" | undefined;
|
|
660
|
+
} | undefined;
|
|
485
661
|
} | {
|
|
486
662
|
readonly type: "document";
|
|
487
663
|
readonly source: {
|
|
488
664
|
readonly type: "base64";
|
|
489
665
|
readonly media_type: "application/pdf";
|
|
490
666
|
readonly data: string;
|
|
667
|
+
} | {
|
|
668
|
+
readonly type: "text";
|
|
669
|
+
readonly media_type: "text/plain";
|
|
670
|
+
readonly data: string;
|
|
671
|
+
} | {
|
|
672
|
+
readonly type: "url";
|
|
673
|
+
readonly url: string;
|
|
674
|
+
} | {
|
|
675
|
+
readonly type: "file";
|
|
676
|
+
readonly file_id: string;
|
|
491
677
|
};
|
|
678
|
+
readonly title?: string | undefined;
|
|
679
|
+
readonly context?: string | undefined;
|
|
492
680
|
readonly cache_control?: {
|
|
493
681
|
readonly type: "ephemeral";
|
|
494
682
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
495
683
|
} | undefined;
|
|
684
|
+
readonly citations?: {
|
|
685
|
+
readonly enabled: boolean;
|
|
686
|
+
} | undefined;
|
|
496
687
|
} | {
|
|
497
688
|
readonly type: "tool_result";
|
|
498
689
|
readonly content: string | readonly ({
|
|
@@ -508,22 +699,46 @@ export declare const route: Route<{
|
|
|
508
699
|
readonly type: "base64";
|
|
509
700
|
readonly media_type: string;
|
|
510
701
|
readonly data: string;
|
|
702
|
+
} | {
|
|
703
|
+
readonly type: "url";
|
|
704
|
+
readonly url: string;
|
|
705
|
+
} | {
|
|
706
|
+
readonly type: "file";
|
|
707
|
+
readonly file_id: string;
|
|
511
708
|
};
|
|
512
709
|
readonly cache_control?: {
|
|
513
710
|
readonly type: "ephemeral";
|
|
514
711
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
515
712
|
} | undefined;
|
|
713
|
+
readonly transformations?: {
|
|
714
|
+
readonly oversized_image?: "error" | "downsize" | undefined;
|
|
715
|
+
} | undefined;
|
|
516
716
|
} | {
|
|
517
717
|
readonly type: "document";
|
|
518
718
|
readonly source: {
|
|
519
719
|
readonly type: "base64";
|
|
520
720
|
readonly media_type: "application/pdf";
|
|
521
721
|
readonly data: string;
|
|
722
|
+
} | {
|
|
723
|
+
readonly type: "text";
|
|
724
|
+
readonly media_type: "text/plain";
|
|
725
|
+
readonly data: string;
|
|
726
|
+
} | {
|
|
727
|
+
readonly type: "url";
|
|
728
|
+
readonly url: string;
|
|
729
|
+
} | {
|
|
730
|
+
readonly type: "file";
|
|
731
|
+
readonly file_id: string;
|
|
522
732
|
};
|
|
733
|
+
readonly title?: string | undefined;
|
|
734
|
+
readonly context?: string | undefined;
|
|
523
735
|
readonly cache_control?: {
|
|
524
736
|
readonly type: "ephemeral";
|
|
525
737
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
526
738
|
} | undefined;
|
|
739
|
+
readonly citations?: {
|
|
740
|
+
readonly enabled: boolean;
|
|
741
|
+
} | undefined;
|
|
527
742
|
})[];
|
|
528
743
|
readonly tool_use_id: string;
|
|
529
744
|
readonly cache_control?: {
|
|
@@ -595,6 +810,9 @@ export declare const route: Route<{
|
|
|
595
810
|
}[];
|
|
596
811
|
})[];
|
|
597
812
|
readonly stream: true;
|
|
813
|
+
readonly metadata?: {
|
|
814
|
+
readonly user_id?: string | null | undefined;
|
|
815
|
+
} | undefined;
|
|
598
816
|
readonly tools?: readonly {
|
|
599
817
|
readonly description: string;
|
|
600
818
|
readonly name: string;
|
|
@@ -625,6 +843,27 @@ export declare const route: Route<{
|
|
|
625
843
|
} | {
|
|
626
844
|
readonly type: "disabled";
|
|
627
845
|
} | undefined;
|
|
846
|
+
readonly service_tier?: "auto" | "standard_only" | undefined;
|
|
847
|
+
readonly container?: string | {
|
|
848
|
+
readonly id?: string | null | undefined;
|
|
849
|
+
readonly skills?: readonly {
|
|
850
|
+
readonly [x: string]: unknown;
|
|
851
|
+
}[] | null | undefined;
|
|
852
|
+
} | null | undefined;
|
|
853
|
+
readonly inference_geo?: string | null | undefined;
|
|
854
|
+
readonly cache_control?: {
|
|
855
|
+
readonly type: "ephemeral";
|
|
856
|
+
readonly ttl?: "1h" | "5m" | undefined;
|
|
857
|
+
} | undefined;
|
|
858
|
+
readonly output_config?: {
|
|
859
|
+
readonly format?: {
|
|
860
|
+
readonly type: "json_schema";
|
|
861
|
+
readonly schema: {
|
|
862
|
+
readonly [x: string]: unknown;
|
|
863
|
+
};
|
|
864
|
+
} | null | undefined;
|
|
865
|
+
readonly effort?: string | undefined;
|
|
866
|
+
} | undefined;
|
|
628
867
|
readonly tool_choice?: {
|
|
629
868
|
readonly type: "auto" | "none" | "any";
|
|
630
869
|
readonly disable_parallel_tool_use?: boolean | undefined;
|
|
@@ -636,8 +875,5 @@ export declare const route: Route<{
|
|
|
636
875
|
readonly top_p?: number | undefined;
|
|
637
876
|
readonly top_k?: number | undefined;
|
|
638
877
|
readonly stop_sequences?: readonly string[] | undefined;
|
|
639
|
-
readonly output_config?: {
|
|
640
|
-
readonly effort?: string | undefined;
|
|
641
|
-
} | undefined;
|
|
642
878
|
}, import("../route/transport/http.js").HttpPrepared<string>>;
|
|
643
879
|
export * as AnthropicMessages from "./anthropic-messages.js";
|