@opencode-ai/ai 0.0.0-dev-18052 → 0.0.0-dev-18058

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.
@@ -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<{
@@ -254,7 +287,24 @@ export declare const AnthropicMessagesBody: Schema.Struct<{
254
287
  }>]>>;
255
288
  output_config: Schema.optional<Schema.Struct<{
256
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"]>>;
257
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"]>>;
258
308
  }>;
259
309
  export type AnthropicMessagesBody = Schema.Schema.Type<typeof AnthropicMessagesBody>;
260
310
  /**
@@ -446,6 +496,9 @@ export declare const protocol: Protocol<{
446
496
  }[];
447
497
  })[];
448
498
  readonly stream: true;
499
+ readonly metadata?: {
500
+ readonly user_id?: string | null | undefined;
501
+ } | undefined;
449
502
  readonly tools?: readonly {
450
503
  readonly description: string;
451
504
  readonly name: string;
@@ -476,6 +529,27 @@ export declare const protocol: Protocol<{
476
529
  } | {
477
530
  readonly type: "disabled";
478
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;
479
553
  readonly tool_choice?: {
480
554
  readonly type: "auto" | "none" | "any";
481
555
  readonly disable_parallel_tool_use?: boolean | undefined;
@@ -487,9 +561,6 @@ export declare const protocol: Protocol<{
487
561
  readonly top_p?: number | undefined;
488
562
  readonly top_k?: number | undefined;
489
563
  readonly stop_sequences?: readonly string[] | undefined;
490
- readonly output_config?: {
491
- readonly effort?: string | undefined;
492
- } | undefined;
493
564
  }, string, {
494
565
  readonly type: string;
495
566
  readonly message?: {
@@ -739,6 +810,9 @@ export declare const route: Route<{
739
810
  }[];
740
811
  })[];
741
812
  readonly stream: true;
813
+ readonly metadata?: {
814
+ readonly user_id?: string | null | undefined;
815
+ } | undefined;
742
816
  readonly tools?: readonly {
743
817
  readonly description: string;
744
818
  readonly name: string;
@@ -769,6 +843,27 @@ export declare const route: Route<{
769
843
  } | {
770
844
  readonly type: "disabled";
771
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;
772
867
  readonly tool_choice?: {
773
868
  readonly type: "auto" | "none" | "any";
774
869
  readonly disable_parallel_tool_use?: boolean | undefined;
@@ -780,8 +875,5 @@ export declare const route: Route<{
780
875
  readonly top_p?: number | undefined;
781
876
  readonly top_k?: number | undefined;
782
877
  readonly stop_sequences?: readonly string[] | undefined;
783
- readonly output_config?: {
784
- readonly effort?: string | undefined;
785
- } | undefined;
786
878
  }, import("../route/transport/http.js").HttpPrepared<string>>;
787
879
  export * as AnthropicMessages from "./anthropic-messages.js";
@@ -194,9 +194,25 @@ const AnthropicThinking = Schema.Union([
194
194
  type: Schema.tag("disabled"),
195
195
  }),
196
196
  ]);
197
+ // SDK OutputConfig:2684 {effort?: "low"|"medium"|"high"|"xhigh"|"max"|null, format?: JSONOutputFormat:2399}
198
+ const AnthropicJsonOutputFormat = Schema.Struct({
199
+ type: Schema.Literal("json_schema"),
200
+ schema: JsonObject,
201
+ });
197
202
  const AnthropicOutputConfig = Schema.Struct({
198
203
  effort: Schema.optional(Schema.String),
204
+ format: Schema.optional(Schema.NullOr(AnthropicJsonOutputFormat)),
199
205
  });
206
+ // SDK Metadata:2649 {user_id?: string|null}
207
+ const AnthropicMetadata = Schema.Struct({ user_id: optionalNull(Schema.String) });
208
+ // SDK MessageCreateParamsContainer:2596 ContainerParams|string; ContainerParams:2172 {id?, skills?}
209
+ const AnthropicContainer = Schema.Union([
210
+ Schema.String,
211
+ Schema.Struct({
212
+ id: optionalNull(Schema.String),
213
+ skills: optionalNull(Schema.Array(JsonObject)),
214
+ }),
215
+ ]);
200
216
  const AnthropicBodyFields = {
201
217
  model: Schema.String,
202
218
  system: optionalArray(AnthropicTextBlock),
@@ -211,6 +227,12 @@ const AnthropicBodyFields = {
211
227
  stop_sequences: optionalArray(Schema.String),
212
228
  thinking: Schema.optional(AnthropicThinking),
213
229
  output_config: Schema.optional(AnthropicOutputConfig),
230
+ // SDK top-level passthrough: cache_control:4638, container:4643, inference_geo:4649, metadata:4654, service_tier:4670
231
+ cache_control: Schema.optional(AnthropicCacheControl),
232
+ container: Schema.optional(Schema.NullOr(AnthropicContainer)),
233
+ inference_geo: Schema.optional(Schema.NullOr(Schema.String)),
234
+ metadata: Schema.optional(AnthropicMetadata),
235
+ service_tier: Schema.optional(Schema.Literals(["auto", "standard_only"])),
214
236
  };
215
237
  export const AnthropicMessagesBody = Schema.Struct(AnthropicBodyFields);
216
238
  const AnthropicUsage = Schema.StructWithRest(Schema.Struct({
@@ -692,9 +714,52 @@ const lowerMessages = Effect.fn("AnthropicMessages.lowerMessages")(function* (re
692
714
  });
693
715
  const resolveOptions = Effect.fn("AnthropicMessages.resolveOptions")(function* (request) {
694
716
  const input = request.providerOptions;
717
+ const rawServiceTier = input?.service_tier ?? input?.serviceTier;
718
+ const service_tier = rawServiceTier === "auto" || rawServiceTier === "standard_only"
719
+ ? rawServiceTier
720
+ : undefined;
721
+ const rawMetadata = input?.metadata;
722
+ const metadata = ProviderShared.isRecord(rawMetadata) &&
723
+ (typeof rawMetadata.user_id === "string" || rawMetadata.user_id === null)
724
+ ? { user_id: rawMetadata.user_id }
725
+ : undefined;
726
+ const container = typeof input?.container === "string" ||
727
+ ProviderShared.isRecord(input?.container)
728
+ ? input.container
729
+ : undefined;
730
+ const rawInferenceGeo = input?.inference_geo ??
731
+ input?.inferenceGeo;
732
+ const inference_geo = typeof rawInferenceGeo === "string" ? rawInferenceGeo : undefined;
733
+ const rawCacheControl = input?.cache_control ??
734
+ input?.cacheControl;
735
+ const cache_control = ProviderShared.isRecord(rawCacheControl) && rawCacheControl.type === "ephemeral"
736
+ ? rawCacheControl
737
+ : undefined;
738
+ const rawOutputConfig = input?.output_config ??
739
+ input?.outputConfig;
740
+ const outputConfigEffort = typeof input?.effort === "string"
741
+ ? input.effort
742
+ : ProviderShared.isRecord(rawOutputConfig) && typeof rawOutputConfig.effort === "string"
743
+ ? rawOutputConfig.effort
744
+ : undefined;
745
+ const outputConfigFormat = ProviderShared.isRecord(rawOutputConfig) && ProviderShared.isRecord(rawOutputConfig.format)
746
+ ? rawOutputConfig.format
747
+ : undefined;
748
+ const output_config = outputConfigEffort === undefined && outputConfigFormat === undefined
749
+ ? undefined
750
+ : {
751
+ ...(outputConfigEffort === undefined ? {} : { effort: outputConfigEffort }),
752
+ ...(outputConfigFormat === undefined ? {} : { format: outputConfigFormat }),
753
+ };
695
754
  return {
696
755
  thinking: yield* resolveThinking(input?.thinking),
697
- effort: typeof input?.effort === "string" ? input.effort : undefined,
756
+ effort: outputConfigEffort,
757
+ output_config,
758
+ service_tier,
759
+ metadata,
760
+ container,
761
+ inference_geo,
762
+ cache_control,
698
763
  };
699
764
  });
700
765
  const resolveThinking = Effect.fn("AnthropicMessages.resolveThinking")(function* (input) {
@@ -755,7 +820,13 @@ const fromRequest = Effect.fn("AnthropicMessages.fromRequest")(function* (reques
755
820
  top_k: generation?.topK,
756
821
  stop_sequences: generation?.stop,
757
822
  thinking: options.thinking,
758
- output_config: options.effort === undefined ? undefined : { effort: options.effort },
823
+ output_config: options.output_config,
824
+ // top-level passthrough per SDK MessageCreateParamsBase:4638,4643,4649,4654,4670
825
+ cache_control: options.cache_control,
826
+ container: options.container,
827
+ inference_geo: options.inference_geo,
828
+ metadata: options.metadata,
829
+ service_tier: options.service_tier,
759
830
  };
760
831
  });
761
832
  // =============================================================================
@@ -139,6 +139,7 @@ export declare const protocol: Protocol<{
139
139
  } | undefined;
140
140
  }[];
141
141
  }[] | undefined;
142
+ readonly serviceTier?: string | undefined;
142
143
  readonly toolConfig?: {
143
144
  readonly functionCallingConfig: {
144
145
  readonly mode: "AUTO" | "NONE" | "ANY";
@@ -150,7 +151,6 @@ export declare const protocol: Protocol<{
150
151
  readonly category: string;
151
152
  readonly threshold: string;
152
153
  }[] | undefined;
153
- readonly serviceTier?: string | undefined;
154
154
  readonly labels?: {
155
155
  readonly [x: string]: string;
156
156
  } | undefined;
@@ -269,6 +269,7 @@ export declare const route: Route<{
269
269
  } | undefined;
270
270
  }[];
271
271
  }[] | undefined;
272
+ readonly serviceTier?: string | undefined;
272
273
  readonly toolConfig?: {
273
274
  readonly functionCallingConfig: {
274
275
  readonly mode: "AUTO" | "NONE" | "ANY";
@@ -280,7 +281,6 @@ export declare const route: Route<{
280
281
  readonly category: string;
281
282
  readonly threshold: string;
282
283
  }[] | undefined;
283
- readonly serviceTier?: string | undefined;
284
284
  readonly labels?: {
285
285
  readonly [x: string]: string;
286
286
  } | undefined;
@@ -619,6 +619,7 @@ export declare const fromRequest: (request: LLMRequest) => Effect.Effect<{
619
619
  readonly verbosity?: OpenResponsesOptions.TextVerbosity | undefined;
620
620
  } | undefined;
621
621
  readonly temperature?: number | undefined;
622
+ readonly service_tier?: OpenResponsesOptions.ServiceTier | undefined;
622
623
  readonly tool_choice?: "required" | "auto" | "none" | {
623
624
  readonly type: "function";
624
625
  readonly name: string;
@@ -642,7 +643,6 @@ export declare const fromRequest: (request: LLMRequest) => Effect.Effect<{
642
643
  readonly presence_penalty?: number | undefined;
643
644
  readonly safety_identifier?: string | undefined;
644
645
  readonly top_logprobs?: number | undefined;
645
- readonly service_tier?: OpenResponsesOptions.ServiceTier | undefined;
646
646
  readonly max_output_tokens?: number | undefined;
647
647
  readonly max_tool_calls?: number | undefined;
648
648
  readonly parallel_tool_calls?: boolean | undefined;
@@ -929,6 +929,7 @@ export declare const protocol: Protocol<{
929
929
  readonly verbosity?: OpenResponsesOptions.TextVerbosity | undefined;
930
930
  } | undefined;
931
931
  readonly temperature?: number | undefined;
932
+ readonly service_tier?: OpenResponsesOptions.ServiceTier | undefined;
932
933
  readonly tool_choice?: "required" | "auto" | "none" | {
933
934
  readonly type: "function";
934
935
  readonly name: string;
@@ -952,7 +953,6 @@ export declare const protocol: Protocol<{
952
953
  readonly presence_penalty?: number | undefined;
953
954
  readonly safety_identifier?: string | undefined;
954
955
  readonly top_logprobs?: number | undefined;
955
- readonly service_tier?: OpenResponsesOptions.ServiceTier | undefined;
956
956
  readonly max_output_tokens?: number | undefined;
957
957
  readonly max_tool_calls?: number | undefined;
958
958
  readonly parallel_tool_calls?: boolean | undefined;
@@ -1100,6 +1100,7 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
1100
1100
  readonly verbosity?: OpenResponsesOptions.TextVerbosity | undefined;
1101
1101
  } | undefined;
1102
1102
  readonly temperature?: number | undefined;
1103
+ readonly service_tier?: OpenResponsesOptions.ServiceTier | undefined;
1103
1104
  readonly tool_choice?: "required" | "auto" | "none" | {
1104
1105
  readonly type: "function";
1105
1106
  readonly name: string;
@@ -1123,7 +1124,6 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
1123
1124
  readonly presence_penalty?: number | undefined;
1124
1125
  readonly safety_identifier?: string | undefined;
1125
1126
  readonly top_logprobs?: number | undefined;
1126
- readonly service_tier?: OpenResponsesOptions.ServiceTier | undefined;
1127
1127
  readonly max_output_tokens?: number | undefined;
1128
1128
  readonly max_tool_calls?: number | undefined;
1129
1129
  readonly parallel_tool_calls?: boolean | undefined;
@@ -94,6 +94,7 @@ export declare const route: Route<{
94
94
  readonly verbosity?: import("./utils/open-responses-options.js").TextVerbosity | undefined;
95
95
  } | undefined;
96
96
  readonly temperature?: number | undefined;
97
+ readonly service_tier?: import("./utils/open-responses-options.js").ServiceTier | undefined;
97
98
  readonly tool_choice?: "required" | "auto" | "none" | {
98
99
  readonly type: "function";
99
100
  readonly name: string;
@@ -117,7 +118,6 @@ export declare const route: Route<{
117
118
  readonly presence_penalty?: number | undefined;
118
119
  readonly safety_identifier?: string | undefined;
119
120
  readonly top_logprobs?: number | undefined;
120
- readonly service_tier?: import("./utils/open-responses-options.js").ServiceTier | undefined;
121
121
  readonly max_output_tokens?: number | undefined;
122
122
  readonly max_tool_calls?: number | undefined;
123
123
  readonly parallel_tool_calls?: boolean | undefined;
@@ -230,6 +230,7 @@ export declare const protocol: Protocol<{
230
230
  readonly verbosity?: import("./utils/open-responses-options.js").TextVerbosity | undefined;
231
231
  } | undefined;
232
232
  readonly temperature?: number | undefined;
233
+ readonly service_tier?: import("./utils/open-responses-options.js").ServiceTier | undefined;
233
234
  readonly tool_choice?: "required" | "auto" | "none" | {
234
235
  readonly type: "function";
235
236
  readonly name: string;
@@ -255,7 +256,6 @@ export declare const protocol: Protocol<{
255
256
  readonly presence_penalty?: number | undefined;
256
257
  readonly safety_identifier?: string | undefined;
257
258
  readonly top_logprobs?: number | undefined;
258
- readonly service_tier?: import("./utils/open-responses-options.js").ServiceTier | undefined;
259
259
  readonly max_output_tokens?: number | undefined;
260
260
  readonly max_tool_calls?: number | undefined;
261
261
  readonly parallel_tool_calls?: boolean | undefined;
@@ -413,6 +413,7 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
413
413
  readonly verbosity?: import("./utils/open-responses-options.js").TextVerbosity | undefined;
414
414
  } | undefined;
415
415
  readonly temperature?: number | undefined;
416
+ readonly service_tier?: import("./utils/open-responses-options.js").ServiceTier | undefined;
416
417
  readonly tool_choice?: "required" | "auto" | "none" | {
417
418
  readonly type: "function";
418
419
  readonly name: string;
@@ -438,7 +439,6 @@ export declare const httpTransport: HttpTransport.HttpJsonTransport<{
438
439
  readonly presence_penalty?: number | undefined;
439
440
  readonly safety_identifier?: string | undefined;
440
441
  readonly top_logprobs?: number | undefined;
441
- readonly service_tier?: import("./utils/open-responses-options.js").ServiceTier | undefined;
442
442
  readonly max_output_tokens?: number | undefined;
443
443
  readonly max_tool_calls?: number | undefined;
444
444
  readonly parallel_tool_calls?: boolean | undefined;
@@ -542,6 +542,7 @@ export declare const channelTransport: (options: import("./open-responses-channe
542
542
  readonly verbosity?: import("./utils/open-responses-options.js").TextVerbosity | undefined;
543
543
  } | undefined;
544
544
  readonly temperature?: number | undefined;
545
+ readonly service_tier?: import("./utils/open-responses-options.js").ServiceTier | undefined;
545
546
  readonly tool_choice?: "required" | "auto" | "none" | {
546
547
  readonly type: "function";
547
548
  readonly name: string;
@@ -567,7 +568,6 @@ export declare const channelTransport: (options: import("./open-responses-channe
567
568
  readonly presence_penalty?: number | undefined;
568
569
  readonly safety_identifier?: string | undefined;
569
570
  readonly top_logprobs?: number | undefined;
570
- readonly service_tier?: import("./utils/open-responses-options.js").ServiceTier | undefined;
571
571
  readonly max_output_tokens?: number | undefined;
572
572
  readonly max_tool_calls?: number | undefined;
573
573
  readonly parallel_tool_calls?: boolean | undefined;
@@ -671,6 +671,7 @@ export declare const transport: import("../route/transport/index.js").Transport<
671
671
  readonly verbosity?: import("./utils/open-responses-options.js").TextVerbosity | undefined;
672
672
  } | undefined;
673
673
  readonly temperature?: number | undefined;
674
+ readonly service_tier?: import("./utils/open-responses-options.js").ServiceTier | undefined;
674
675
  readonly tool_choice?: "required" | "auto" | "none" | {
675
676
  readonly type: "function";
676
677
  readonly name: string;
@@ -696,7 +697,6 @@ export declare const transport: import("../route/transport/index.js").Transport<
696
697
  readonly presence_penalty?: number | undefined;
697
698
  readonly safety_identifier?: string | undefined;
698
699
  readonly top_logprobs?: number | undefined;
699
- readonly service_tier?: import("./utils/open-responses-options.js").ServiceTier | undefined;
700
700
  readonly max_output_tokens?: number | undefined;
701
701
  readonly max_tool_calls?: number | undefined;
702
702
  readonly parallel_tool_calls?: boolean | undefined;
@@ -800,6 +800,7 @@ export declare const route: Route<{
800
800
  readonly verbosity?: import("./utils/open-responses-options.js").TextVerbosity | undefined;
801
801
  } | undefined;
802
802
  readonly temperature?: number | undefined;
803
+ readonly service_tier?: import("./utils/open-responses-options.js").ServiceTier | undefined;
803
804
  readonly tool_choice?: "required" | "auto" | "none" | {
804
805
  readonly type: "function";
805
806
  readonly name: string;
@@ -825,7 +826,6 @@ export declare const route: Route<{
825
826
  readonly presence_penalty?: number | undefined;
826
827
  readonly safety_identifier?: string | undefined;
827
828
  readonly top_logprobs?: number | undefined;
828
- readonly service_tier?: import("./utils/open-responses-options.js").ServiceTier | undefined;
829
829
  readonly max_output_tokens?: number | undefined;
830
830
  readonly max_tool_calls?: number | undefined;
831
831
  readonly parallel_tool_calls?: boolean | undefined;
@@ -89,6 +89,7 @@ export declare const protocol: Protocol<{
89
89
  readonly verbosity?: import("./utils/open-responses-options.js").TextVerbosity | undefined;
90
90
  } | undefined;
91
91
  readonly temperature?: number | undefined;
92
+ readonly service_tier?: import("./utils/open-responses-options.js").ServiceTier | undefined;
92
93
  readonly tool_choice?: "required" | "auto" | "none" | {
93
94
  readonly type: "function";
94
95
  readonly name: string;
@@ -112,7 +113,6 @@ export declare const protocol: Protocol<{
112
113
  readonly presence_penalty?: number | undefined;
113
114
  readonly safety_identifier?: string | undefined;
114
115
  readonly top_logprobs?: number | undefined;
115
- readonly service_tier?: import("./utils/open-responses-options.js").ServiceTier | undefined;
116
116
  readonly max_output_tokens?: number | undefined;
117
117
  readonly max_tool_calls?: number | undefined;
118
118
  readonly parallel_tool_calls?: boolean | undefined;
@@ -214,6 +214,7 @@ export declare const routes: (RouteDef<{
214
214
  readonly verbosity?: import("../protocols/utils/open-responses-options.js").TextVerbosity | undefined;
215
215
  } | undefined;
216
216
  readonly temperature?: number | undefined;
217
+ readonly service_tier?: import("../protocols/utils/open-responses-options.js").ServiceTier | undefined;
217
218
  readonly tool_choice?: "required" | "auto" | "none" | {
218
219
  readonly type: "function";
219
220
  readonly name: string;
@@ -239,7 +240,6 @@ export declare const routes: (RouteDef<{
239
240
  readonly presence_penalty?: number | undefined;
240
241
  readonly safety_identifier?: string | undefined;
241
242
  readonly top_logprobs?: number | undefined;
242
- readonly service_tier?: import("../protocols/utils/open-responses-options.js").ServiceTier | undefined;
243
243
  readonly max_output_tokens?: number | undefined;
244
244
  readonly max_tool_calls?: number | undefined;
245
245
  readonly parallel_tool_calls?: boolean | undefined;
@@ -207,6 +207,9 @@ export declare const routes: import("../route/client.js").Route<{
207
207
  }[];
208
208
  })[];
209
209
  readonly stream: true;
210
+ readonly metadata?: {
211
+ readonly user_id?: string | null | undefined;
212
+ } | undefined;
210
213
  readonly tools?: readonly {
211
214
  readonly description: string;
212
215
  readonly name: string;
@@ -237,6 +240,27 @@ export declare const routes: import("../route/client.js").Route<{
237
240
  } | {
238
241
  readonly type: "disabled";
239
242
  } | undefined;
243
+ readonly service_tier?: "auto" | "standard_only" | undefined;
244
+ readonly container?: string | {
245
+ readonly id?: string | null | undefined;
246
+ readonly skills?: readonly {
247
+ readonly [x: string]: unknown;
248
+ }[] | null | undefined;
249
+ } | null | undefined;
250
+ readonly inference_geo?: string | null | undefined;
251
+ readonly cache_control?: {
252
+ readonly type: "ephemeral";
253
+ readonly ttl?: "1h" | "5m" | undefined;
254
+ } | undefined;
255
+ readonly output_config?: {
256
+ readonly format?: {
257
+ readonly type: "json_schema";
258
+ readonly schema: {
259
+ readonly [x: string]: unknown;
260
+ };
261
+ } | null | undefined;
262
+ readonly effort?: string | undefined;
263
+ } | undefined;
240
264
  readonly tool_choice?: {
241
265
  readonly type: "auto" | "none" | "any";
242
266
  readonly disable_parallel_tool_use?: boolean | undefined;
@@ -248,9 +272,6 @@ export declare const routes: import("../route/client.js").Route<{
248
272
  readonly top_p?: number | undefined;
249
273
  readonly top_k?: number | undefined;
250
274
  readonly stop_sequences?: readonly string[] | undefined;
251
- readonly output_config?: {
252
- readonly effort?: string | undefined;
253
- } | undefined;
254
275
  }, import("../route/transport/http.js").HttpPrepared<string>>[];
255
276
  export declare const configure: (input: Config) => {
256
277
  id: string & import("effect/Brand").Brand<"AI.ProviderID">;
@@ -191,6 +191,9 @@ export declare const routes: import("../route/client.js").Route<{
191
191
  }[];
192
192
  })[];
193
193
  readonly stream: true;
194
+ readonly metadata?: {
195
+ readonly user_id?: string | null | undefined;
196
+ } | undefined;
194
197
  readonly tools?: readonly {
195
198
  readonly description: string;
196
199
  readonly name: string;
@@ -221,6 +224,27 @@ export declare const routes: import("../route/client.js").Route<{
221
224
  } | {
222
225
  readonly type: "disabled";
223
226
  } | undefined;
227
+ readonly service_tier?: "auto" | "standard_only" | undefined;
228
+ readonly container?: string | {
229
+ readonly id?: string | null | undefined;
230
+ readonly skills?: readonly {
231
+ readonly [x: string]: unknown;
232
+ }[] | null | undefined;
233
+ } | null | undefined;
234
+ readonly inference_geo?: string | null | undefined;
235
+ readonly cache_control?: {
236
+ readonly type: "ephemeral";
237
+ readonly ttl?: "1h" | "5m" | undefined;
238
+ } | undefined;
239
+ readonly output_config?: {
240
+ readonly format?: {
241
+ readonly type: "json_schema";
242
+ readonly schema: {
243
+ readonly [x: string]: unknown;
244
+ };
245
+ } | null | undefined;
246
+ readonly effort?: string | undefined;
247
+ } | undefined;
224
248
  readonly tool_choice?: {
225
249
  readonly type: "auto" | "none" | "any";
226
250
  readonly disable_parallel_tool_use?: boolean | undefined;
@@ -232,9 +256,6 @@ export declare const routes: import("../route/client.js").Route<{
232
256
  readonly top_p?: number | undefined;
233
257
  readonly top_k?: number | undefined;
234
258
  readonly stop_sequences?: readonly string[] | undefined;
235
- readonly output_config?: {
236
- readonly effort?: string | undefined;
237
- } | undefined;
238
259
  }, import("../route/transport/http.js").HttpPrepared<string>>[];
239
260
  export type Config = RouteDefaultsInput & ProviderAuthOption<"optional"> & {
240
261
  readonly baseURL?: string;
@@ -217,6 +217,7 @@ export declare const routes: (RouteDef<{
217
217
  readonly verbosity?: import("../protocols/utils/open-responses-options.js").TextVerbosity | undefined;
218
218
  } | undefined;
219
219
  readonly temperature?: number | undefined;
220
+ readonly service_tier?: import("../protocols/utils/open-responses-options.js").ServiceTier | undefined;
220
221
  readonly tool_choice?: "required" | "auto" | "none" | {
221
222
  readonly type: "function";
222
223
  readonly name: string;
@@ -242,7 +243,6 @@ export declare const routes: (RouteDef<{
242
243
  readonly presence_penalty?: number | undefined;
243
244
  readonly safety_identifier?: string | undefined;
244
245
  readonly top_logprobs?: number | undefined;
245
- readonly service_tier?: import("../protocols/utils/open-responses-options.js").ServiceTier | undefined;
246
246
  readonly max_output_tokens?: number | undefined;
247
247
  readonly max_tool_calls?: number | undefined;
248
248
  readonly parallel_tool_calls?: boolean | undefined;
@@ -23,6 +23,9 @@ export interface Settings extends ProviderPackage.Settings {
23
23
  }
24
24
  export declare const routes: Route<{
25
25
  anthropic_version: "vertex-2023-10-16";
26
+ metadata?: {
27
+ readonly user_id?: string | null | undefined;
28
+ } | undefined;
26
29
  max_tokens: number;
27
30
  tools?: readonly {
28
31
  readonly description: string;
@@ -235,6 +238,27 @@ export declare const routes: Route<{
235
238
  } | {
236
239
  readonly type: "disabled";
237
240
  } | undefined;
241
+ service_tier?: "auto" | "standard_only" | undefined;
242
+ container?: string | {
243
+ readonly id?: string | null | undefined;
244
+ readonly skills?: readonly {
245
+ readonly [x: string]: unknown;
246
+ }[] | null | undefined;
247
+ } | null | undefined;
248
+ inference_geo?: string | null | undefined;
249
+ cache_control?: {
250
+ readonly type: "ephemeral";
251
+ readonly ttl?: "1h" | "5m" | undefined;
252
+ } | undefined;
253
+ output_config?: {
254
+ readonly format?: {
255
+ readonly type: "json_schema";
256
+ readonly schema: {
257
+ readonly [x: string]: unknown;
258
+ };
259
+ } | null | undefined;
260
+ readonly effort?: string | undefined;
261
+ } | undefined;
238
262
  tool_choice?: {
239
263
  readonly type: "auto" | "none" | "any";
240
264
  readonly disable_parallel_tool_use?: boolean | undefined;
@@ -246,9 +270,6 @@ export declare const routes: Route<{
246
270
  top_p?: number | undefined;
247
271
  top_k?: number | undefined;
248
272
  stop_sequences?: readonly string[] | undefined;
249
- output_config?: {
250
- readonly effort?: string | undefined;
251
- } | undefined;
252
273
  }, import("../route/transport/http.js").HttpPrepared<string>>[];
253
274
  export declare const configure: (input?: Config) => {
254
275
  id: string & import("effect/Brand").Brand<"AI.ProviderID">;
@@ -107,6 +107,7 @@ export declare const routes: import("../route/client.js").Route<{
107
107
  readonly verbosity?: import("../protocols/utils/open-responses-options.js").TextVerbosity | undefined;
108
108
  } | undefined;
109
109
  readonly temperature?: number | undefined;
110
+ readonly service_tier?: import("../protocols/utils/open-responses-options.js").ServiceTier | undefined;
110
111
  readonly tool_choice?: "required" | "auto" | "none" | {
111
112
  readonly type: "function";
112
113
  readonly name: string;
@@ -130,7 +131,6 @@ export declare const routes: import("../route/client.js").Route<{
130
131
  readonly presence_penalty?: number | undefined;
131
132
  readonly safety_identifier?: string | undefined;
132
133
  readonly top_logprobs?: number | undefined;
133
- readonly service_tier?: import("../protocols/utils/open-responses-options.js").ServiceTier | undefined;
134
134
  readonly max_output_tokens?: number | undefined;
135
135
  readonly max_tool_calls?: number | undefined;
136
136
  readonly parallel_tool_calls?: boolean | undefined;
@@ -68,6 +68,7 @@ export declare const routes: Route<{
68
68
  } | undefined;
69
69
  }[];
70
70
  }[] | undefined;
71
+ readonly serviceTier?: string | undefined;
71
72
  readonly toolConfig?: {
72
73
  readonly functionCallingConfig: {
73
74
  readonly mode: "AUTO" | "NONE" | "ANY";
@@ -79,7 +80,6 @@ export declare const routes: Route<{
79
80
  readonly category: string;
80
81
  readonly threshold: string;
81
82
  }[] | undefined;
82
- readonly serviceTier?: string | undefined;
83
83
  readonly labels?: {
84
84
  readonly [x: string]: string;
85
85
  } | undefined;
@@ -49,6 +49,7 @@ export declare const routes: import("../route/client.js").Route<{
49
49
  } | undefined;
50
50
  }[];
51
51
  }[] | undefined;
52
+ readonly serviceTier?: string | undefined;
52
53
  readonly toolConfig?: {
53
54
  readonly functionCallingConfig: {
54
55
  readonly mode: "AUTO" | "NONE" | "ANY";
@@ -60,7 +61,6 @@ export declare const routes: import("../route/client.js").Route<{
60
61
  readonly category: string;
61
62
  readonly threshold: string;
62
63
  }[] | undefined;
63
- readonly serviceTier?: string | undefined;
64
64
  readonly labels?: {
65
65
  readonly [x: string]: string;
66
66
  } | undefined;
@@ -105,6 +105,7 @@ export declare const routes: import("../route/client.js").Route<{
105
105
  readonly verbosity?: import("../protocols/utils/open-responses-options.js").TextVerbosity | undefined;
106
106
  } | undefined;
107
107
  readonly temperature?: number | undefined;
108
+ readonly service_tier?: import("../protocols/utils/open-responses-options.js").ServiceTier | undefined;
108
109
  readonly tool_choice?: "required" | "auto" | "none" | {
109
110
  readonly type: "function";
110
111
  readonly name: string;
@@ -128,7 +129,6 @@ export declare const routes: import("../route/client.js").Route<{
128
129
  readonly presence_penalty?: number | undefined;
129
130
  readonly safety_identifier?: string | undefined;
130
131
  readonly top_logprobs?: number | undefined;
131
- readonly service_tier?: import("../protocols/utils/open-responses-options.js").ServiceTier | undefined;
132
132
  readonly max_output_tokens?: number | undefined;
133
133
  readonly max_tool_calls?: number | undefined;
134
134
  readonly parallel_tool_calls?: boolean | undefined;
@@ -202,6 +202,7 @@ export declare const routes: (Route<{
202
202
  readonly verbosity?: import("../protocols/utils/open-responses-options.js").TextVerbosity | undefined;
203
203
  } | undefined;
204
204
  readonly temperature?: number | undefined;
205
+ readonly service_tier?: import("../protocols/utils/open-responses-options.js").ServiceTier | undefined;
205
206
  readonly tool_choice?: "required" | "auto" | "none" | {
206
207
  readonly type: "function";
207
208
  readonly name: string;
@@ -227,7 +228,6 @@ export declare const routes: (Route<{
227
228
  readonly presence_penalty?: number | undefined;
228
229
  readonly safety_identifier?: string | undefined;
229
230
  readonly top_logprobs?: number | undefined;
230
- readonly service_tier?: import("../protocols/utils/open-responses-options.js").ServiceTier | undefined;
231
231
  readonly max_output_tokens?: number | undefined;
232
232
  readonly max_tool_calls?: number | undefined;
233
233
  readonly parallel_tool_calls?: boolean | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
- "version": "0.0.0-dev-18052",
3
+ "version": "0.0.0-dev-18058",
4
4
  "name": "@opencode-ai/ai",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -30,7 +30,7 @@
30
30
  "devDependencies": {
31
31
  "@clack/prompts": "1.0.0-alpha.1",
32
32
  "@effect/platform-node": "4.0.0-rc.111",
33
- "@opencode-ai/http-recorder": "0.0.0-dev-18052",
33
+ "@opencode-ai/http-recorder": "0.0.0-dev-18058",
34
34
  "@tsconfig/bun": "1.0.9",
35
35
  "@types/bun": "1.3.13",
36
36
  "@typescript/native-preview": "7.0.0-dev.20251207.1",
@@ -39,7 +39,7 @@
39
39
  "dependencies": {
40
40
  "@smithy/eventstream-codec": "4.2.14",
41
41
  "@smithy/util-utf8": "4.2.2",
42
- "@opencode-ai/schema": "0.0.0-dev-18052",
42
+ "@opencode-ai/schema": "0.0.0-dev-18058",
43
43
  "aws4fetch": "1.0.20",
44
44
  "effect": "4.0.0-rc.111",
45
45
  "google-auth-library": "10.5.0"