@opencode/ai 2.0.32 → 2.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.
Files changed (149) hide show
  1. package/dist/ai-client.d.ts +2 -2
  2. package/dist/experimental/evaluation-client.d.ts +1 -1
  3. package/dist/experimental/evaluation.d.ts +20 -20
  4. package/dist/experimental/realtime.d.ts +6 -14
  5. package/dist/experimental/realtime.js +28 -3
  6. package/dist/experimental/system-one.d.ts +1 -1
  7. package/dist/image-client.d.ts +8 -8
  8. package/dist/image.d.ts +593 -437
  9. package/dist/llm.d.ts +51 -51
  10. package/dist/media-client.d.ts +1 -1
  11. package/dist/media.d.ts +4 -4
  12. package/dist/promise.d.ts +199 -198
  13. package/dist/protocols/alibaba-chat.d.ts +81 -82
  14. package/dist/protocols/alibaba-chat.js +0 -1
  15. package/dist/protocols/alibaba-messages.d.ts +99 -99
  16. package/dist/protocols/alibaba-responses.d.ts +120 -120
  17. package/dist/protocols/anthropic-messages.d.ts +187 -187
  18. package/dist/protocols/anthropic-messages.js +3 -2
  19. package/dist/protocols/assemblyai-transcription.d.ts +1 -1
  20. package/dist/protocols/bedrock-converse.d.ts +75 -79
  21. package/dist/protocols/bfl-images.d.ts +1 -1
  22. package/dist/protocols/cartesia-speech.d.ts +17 -17
  23. package/dist/protocols/cohere-chat.d.ts +26 -23
  24. package/dist/protocols/cohere-chat.js +22 -1
  25. package/dist/protocols/deepgram-speech.d.ts +17 -17
  26. package/dist/protocols/deepgram-transcription.d.ts +1 -1
  27. package/dist/protocols/elevenlabs-speech.d.ts +17 -17
  28. package/dist/protocols/elevenlabs-transcription.d.ts +1 -1
  29. package/dist/protocols/fal-images.d.ts +1 -1
  30. package/dist/protocols/fal-video.d.ts +1 -1
  31. package/dist/protocols/gemini.d.ts +55 -55
  32. package/dist/protocols/google-images.d.ts +1 -1
  33. package/dist/protocols/google-interactions.d.ts +64 -62
  34. package/dist/protocols/google-interactions.js +19 -1
  35. package/dist/protocols/google-speech.d.ts +17 -17
  36. package/dist/protocols/google-transcription.d.ts +47 -47
  37. package/dist/protocols/google-video.d.ts +1 -1
  38. package/dist/protocols/meta-messages.d.ts +121 -121
  39. package/dist/protocols/meta-responses.d.ts +201 -201
  40. package/dist/protocols/mistral-chat.d.ts +45 -45
  41. package/dist/protocols/open-responses-channel.d.ts +1 -1
  42. package/dist/protocols/open-responses.d.ts +584 -450
  43. package/dist/protocols/open-responses.js +27 -35
  44. package/dist/protocols/openai-chat.d.ts +248 -248
  45. package/dist/protocols/openai-chat.js +11 -42
  46. package/dist/protocols/openai-compatible-chat.d.ts +32 -32
  47. package/dist/protocols/openai-compatible-responses.d.ts +88 -88
  48. package/dist/protocols/openai-images.d.ts +17 -17
  49. package/dist/protocols/openai-responses.d.ts +567 -567
  50. package/dist/protocols/openai-responses.js +1 -1
  51. package/dist/protocols/openai-speech.d.ts +17 -17
  52. package/dist/protocols/openai-transcription.d.ts +47 -47
  53. package/dist/protocols/replicate-images.d.ts +1 -1
  54. package/dist/protocols/runway-video.d.ts +1 -1
  55. package/dist/protocols/shared.d.ts +12 -1
  56. package/dist/protocols/shared.js +17 -1
  57. package/dist/protocols/stability-images.d.ts +2 -2
  58. package/dist/protocols/utils/bedrock-cache.d.ts +2 -2
  59. package/dist/protocols/utils/bedrock-media.d.ts +4 -4
  60. package/dist/protocols/utils/openai-options.d.ts +1 -1
  61. package/dist/protocols/utils/speech-stream.d.ts +1 -1
  62. package/dist/protocols/utils/tool-schema.d.ts +10 -5
  63. package/dist/protocols/utils/tool-stream.d.ts +152 -152
  64. package/dist/protocols/venice-chat.d.ts +109 -110
  65. package/dist/protocols/venice-chat.js +0 -1
  66. package/dist/protocols/xai-images.d.ts +1 -1
  67. package/dist/protocols/xai-responses.d.ts +79 -79
  68. package/dist/protocols/xai-video.d.ts +1 -1
  69. package/dist/protocols/zai-chat.d.ts +77 -78
  70. package/dist/protocols/zai-chat.js +0 -1
  71. package/dist/protocols/zai-images.d.ts +1 -1
  72. package/dist/protocols/zai-messages.d.ts +97 -97
  73. package/dist/providers/alibaba.d.ts +222 -283
  74. package/dist/providers/amazon-bedrock-mantle.d.ts +291 -298
  75. package/dist/providers/amazon-bedrock.d.ts +22 -28
  76. package/dist/providers/anthropic-compatible.d.ts +86 -90
  77. package/dist/providers/anthropic.d.ts +86 -90
  78. package/dist/providers/assemblyai.d.ts +2 -6
  79. package/dist/providers/azure.d.ts +228 -238
  80. package/dist/providers/baseten.d.ts +66 -70
  81. package/dist/providers/black-forest-labs.d.ts +2 -6
  82. package/dist/providers/cartesia.d.ts +2 -6
  83. package/dist/providers/cerebras.d.ts +66 -70
  84. package/dist/providers/cerebras.js +0 -1
  85. package/dist/providers/cloudflare-ai-gateway.d.ts +352 -356
  86. package/dist/providers/cloudflare-workers-ai.d.ts +66 -70
  87. package/dist/providers/cohere.d.ts +122 -132
  88. package/dist/providers/cohere.js +0 -2
  89. package/dist/providers/deepgram.d.ts +2 -7
  90. package/dist/providers/deepinfra.d.ts +66 -70
  91. package/dist/providers/deepinfra.js +0 -1
  92. package/dist/providers/deepseek.d.ts +66 -70
  93. package/dist/providers/deepseek.js +1 -1
  94. package/dist/providers/digitalocean.d.ts +137 -141
  95. package/dist/providers/elevenlabs.d.ts +2 -7
  96. package/dist/providers/fal.d.ts +2 -7
  97. package/dist/providers/fireworks.d.ts +66 -70
  98. package/dist/providers/google-vertex-chat.d.ts +34 -38
  99. package/dist/providers/google-vertex-interactions.d.ts +31 -41
  100. package/dist/providers/google-vertex-messages.d.ts +81 -85
  101. package/dist/providers/google-vertex-mistral.d.ts +23 -27
  102. package/dist/providers/google-vertex-responses.d.ts +90 -94
  103. package/dist/providers/google-vertex.d.ts +26 -30
  104. package/dist/providers/google.d.ts +94 -109
  105. package/dist/providers/groq.d.ts +111 -115
  106. package/dist/providers/groq.js +0 -1
  107. package/dist/providers/meta.d.ts +309 -317
  108. package/dist/providers/meta.js +1 -1
  109. package/dist/providers/minimax.d.ts +296 -303
  110. package/dist/providers/minimax.js +1 -1
  111. package/dist/providers/mistral.d.ts +22 -26
  112. package/dist/providers/moonshot.d.ts +296 -303
  113. package/dist/providers/moonshot.js +0 -1
  114. package/dist/providers/openai-compatible-responses.d.ts +90 -94
  115. package/dist/providers/openai-compatible.d.ts +34 -38
  116. package/dist/providers/openai.d.ts +93 -108
  117. package/dist/providers/opencode.d.ts +2 -8
  118. package/dist/providers/openrouter.d.ts +137 -144
  119. package/dist/providers/replicate.d.ts +2 -6
  120. package/dist/providers/runway.d.ts +2 -6
  121. package/dist/providers/stability.d.ts +2 -7
  122. package/dist/providers/togetherai.d.ts +66 -70
  123. package/dist/providers/togetherai.js +1 -1
  124. package/dist/providers/typesafe-ai.d.ts +2 -8
  125. package/dist/providers/venice.d.ts +58 -63
  126. package/dist/providers/vercel-ai-gateway.d.ts +2 -12
  127. package/dist/providers/xai.d.ts +38 -50
  128. package/dist/providers/zai-coding-plan.d.ts +206 -213
  129. package/dist/providers/zai.d.ts +40 -46
  130. package/dist/route/client.d.ts +51 -51
  131. package/dist/route/media-protocol.d.ts +1 -1
  132. package/dist/route/transport/http.d.ts +1 -1
  133. package/dist/route/transport/websocket.d.ts +8 -8
  134. package/dist/schema/errors.d.ts +19 -19
  135. package/dist/schema/events.d.ts +3090 -3288
  136. package/dist/schema/messages.d.ts +8 -7
  137. package/dist/schema/options.d.ts +2 -1
  138. package/dist/schema/options.js +2 -1
  139. package/dist/speech-client.d.ts +8 -8
  140. package/dist/speech.d.ts +434 -398
  141. package/dist/testing.d.ts +338 -338
  142. package/dist/tool-runtime.d.ts +1 -1
  143. package/dist/transcription-client.d.ts +23 -23
  144. package/dist/transcription.d.ts +562 -646
  145. package/dist/utils/sanitize.d.ts +4 -0
  146. package/dist/utils/sanitize.js +23 -6
  147. package/dist/video-client.d.ts +8 -8
  148. package/dist/video.d.ts +416 -372
  149. package/package.json +6 -6
@@ -26,17 +26,19 @@ export type Settings = ProviderPackage.Settings & GeminiProviderOptionsInput & (
26
26
  readonly project?: string;
27
27
  };
28
28
  export declare const routes: Route<{
29
+ readonly cachedContent?: string | undefined;
29
30
  readonly contents: readonly {
31
+ readonly role?: "model" | "user" | null | undefined;
30
32
  readonly parts?: readonly ({
33
+ readonly text: string;
34
+ readonly thought?: boolean | null | undefined;
35
+ readonly thoughtSignature?: string | null | undefined;
36
+ } | {
31
37
  readonly inlineData: {
32
38
  readonly mimeType: string;
33
39
  readonly data: string;
34
40
  };
35
41
  readonly thoughtSignature?: string | null | undefined;
36
- } | {
37
- readonly text: string;
38
- readonly thought?: boolean | null | undefined;
39
- readonly thoughtSignature?: string | null | undefined;
40
42
  } | {
41
43
  readonly fileData: {
42
44
  readonly mimeType: string;
@@ -44,16 +46,16 @@ export declare const routes: Route<{
44
46
  };
45
47
  } | {
46
48
  readonly functionCall: {
47
- readonly name: string;
48
49
  readonly id?: string | null | undefined;
50
+ readonly name: string;
49
51
  readonly args?: unknown;
50
52
  };
51
53
  readonly thoughtSignature?: string | null | undefined;
52
54
  } | {
53
55
  readonly functionResponse: {
56
+ readonly id?: string | undefined;
54
57
  readonly name: string;
55
58
  readonly response: unknown;
56
- readonly id?: string | undefined;
57
59
  readonly parts?: readonly {
58
60
  readonly inlineData: {
59
61
  readonly mimeType: string;
@@ -63,8 +65,20 @@ export declare const routes: Route<{
63
65
  }[] | undefined;
64
66
  };
65
67
  })[] | null | undefined;
66
- readonly role?: "model" | "user" | null | undefined;
67
68
  }[];
69
+ readonly labels?: {
70
+ readonly [x: string]: string;
71
+ } | undefined;
72
+ readonly safetySettings?: readonly {
73
+ readonly category: import("../schema/options.js").OpenString<"HARM_CATEGORY_CIVIC_INTEGRITY" | "HARM_CATEGORY_DANGEROUS_CONTENT" | "HARM_CATEGORY_HARASSMENT" | "HARM_CATEGORY_HATE_SPEECH" | "HARM_CATEGORY_SEXUALLY_EXPLICIT" | "HARM_CATEGORY_UNSPECIFIED">;
74
+ readonly threshold: import("../schema/options.js").OpenString<"BLOCK_LOW_AND_ABOVE" | "BLOCK_MEDIUM_AND_ABOVE" | "BLOCK_NONE" | "BLOCK_ONLY_HIGH" | "HARM_BLOCK_THRESHOLD_UNSPECIFIED" | "OFF">;
75
+ }[] | undefined;
76
+ readonly serviceTier?: string | undefined;
77
+ readonly systemInstruction?: {
78
+ readonly parts: readonly {
79
+ readonly text: string;
80
+ }[];
81
+ } | undefined;
68
82
  readonly tools?: readonly {
69
83
  readonly functionDeclarations: readonly {
70
84
  readonly name: string;
@@ -74,27 +88,14 @@ export declare const routes: Route<{
74
88
  };
75
89
  }[];
76
90
  }[] | undefined;
77
- readonly serviceTier?: string | undefined;
78
91
  readonly toolConfig?: {
79
92
  readonly functionCallingConfig: {
80
- readonly mode: "NONE" | "AUTO" | "ANY";
93
+ readonly mode: "ANY" | "AUTO" | "NONE";
81
94
  readonly allowedFunctionNames?: readonly string[] | undefined;
82
95
  };
83
96
  } | undefined;
84
- readonly cachedContent?: string | undefined;
85
- readonly safetySettings?: readonly {
86
- readonly category: import("../schema/options.js").OpenString<"HARM_CATEGORY_UNSPECIFIED" | "HARM_CATEGORY_HATE_SPEECH" | "HARM_CATEGORY_DANGEROUS_CONTENT" | "HARM_CATEGORY_HARASSMENT" | "HARM_CATEGORY_SEXUALLY_EXPLICIT" | "HARM_CATEGORY_CIVIC_INTEGRITY">;
87
- readonly threshold: import("../schema/options.js").OpenString<"HARM_BLOCK_THRESHOLD_UNSPECIFIED" | "BLOCK_LOW_AND_ABOVE" | "BLOCK_MEDIUM_AND_ABOVE" | "BLOCK_ONLY_HIGH" | "BLOCK_NONE" | "OFF">;
88
- }[] | undefined;
89
- readonly labels?: {
90
- readonly [x: string]: string;
91
- } | undefined;
92
- readonly systemInstruction?: {
93
- readonly parts: readonly {
94
- readonly text: string;
95
- }[];
96
- } | undefined;
97
97
  readonly generationConfig?: {
98
+ readonly maxOutputTokens?: number | undefined;
98
99
  readonly temperature?: number | undefined;
99
100
  readonly topP?: number | undefined;
100
101
  readonly topK?: number | undefined;
@@ -105,23 +106,18 @@ export declare const routes: Route<{
105
106
  readonly thinkingConfig?: {
106
107
  readonly thinkingBudget?: number | undefined;
107
108
  readonly includeThoughts?: boolean | undefined;
108
- readonly thinkingLevel?: import("../schema/options.js").OpenString<"minimal" | "low" | "medium" | "high"> | undefined;
109
+ readonly thinkingLevel?: import("../schema/options.js").OpenString<"high" | "low" | "medium" | "minimal"> | undefined;
109
110
  } | undefined;
110
- readonly maxOutputTokens?: number | undefined;
111
111
  } | undefined;
112
112
  readonly continuationToken?: string | undefined;
113
113
  }, Gemini.Prepared, import("../route/client.js").CompactionOperations | undefined>[];
114
114
  export declare const configure: (input?: Config) => {
115
115
  id: string & import("effect/Brand").Brand<"AI.ProviderID">;
116
116
  model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<GeminiOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
117
- configure: (input?: Config) => /*elided*/ any;
117
+ configure: typeof configure;
118
118
  };
119
119
  export declare const provider: {
120
120
  id: string & import("effect/Brand").Brand<"AI.ProviderID">;
121
- configure: (input?: Config) => {
122
- id: string & import("effect/Brand").Brand<"AI.ProviderID">;
123
- model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<GeminiOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
124
- configure: /*elided*/ any;
125
- };
121
+ configure: typeof configure;
126
122
  };
127
123
  export declare const model: ProviderPackage.Definition<Settings, GeminiProviderOptionsInput>["model"];
@@ -13,17 +13,80 @@ export type GeminiProviderOptionsInput = Gemini.ProviderOptionsInput;
13
13
  export type GoogleInteractionsOptionsInput = GoogleInteractions.OptionsInput;
14
14
  export declare const id: string & import("effect/Brand").Brand<"AI.ProviderID">;
15
15
  export declare const routes: (import("../route/client.js").Route<{
16
+ readonly model: string;
17
+ readonly input: readonly ({
18
+ readonly type: "model_output" | "user_input";
19
+ readonly content: readonly ({
20
+ readonly type: "audio" | "document" | "image" | "video";
21
+ readonly data?: string | undefined;
22
+ readonly uri?: string | undefined;
23
+ readonly mime_type: string;
24
+ } | {
25
+ readonly type: "text";
26
+ readonly text: string;
27
+ })[];
28
+ } | {
29
+ readonly type: "thought";
30
+ readonly signature?: string | undefined;
31
+ readonly summary?: readonly {
32
+ readonly type: "text";
33
+ readonly text: string;
34
+ }[] | undefined;
35
+ } | {
36
+ readonly type: "function_call";
37
+ readonly id: string;
38
+ readonly name: string;
39
+ readonly arguments: unknown;
40
+ readonly signature?: string | undefined;
41
+ } | {
42
+ readonly type: "function_result";
43
+ readonly call_id: string;
44
+ readonly name: string;
45
+ readonly result: unknown;
46
+ readonly is_error?: boolean | undefined;
47
+ })[];
48
+ readonly stream: true;
49
+ readonly store: boolean;
50
+ readonly previous_interaction_id?: string | undefined;
51
+ readonly system_instruction?: string | undefined;
52
+ readonly service_tier?: string | undefined;
53
+ readonly tools?: readonly {
54
+ readonly type: "function";
55
+ readonly name: string;
56
+ readonly description: string;
57
+ readonly parameters: {
58
+ readonly [x: string]: unknown;
59
+ };
60
+ }[] | undefined;
61
+ readonly generation_config: {
62
+ readonly max_output_tokens?: number | undefined;
63
+ readonly temperature?: number | undefined;
64
+ readonly top_p?: number | undefined;
65
+ readonly seed?: number | undefined;
66
+ readonly stop_sequences?: readonly string[] | undefined;
67
+ readonly thinking_level?: import("../schema/options.js").OpenString<"high" | "low" | "medium" | "minimal"> | undefined;
68
+ readonly thinking_summaries?: string | undefined;
69
+ readonly tool_choice?: "any" | "auto" | "none" | {
70
+ readonly allowed_tools: {
71
+ readonly mode: "any";
72
+ readonly tools: readonly string[];
73
+ };
74
+ } | undefined;
75
+ };
76
+ }, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined> | import("../route/client.js").Route<{
77
+ readonly cachedContent?: string | undefined;
16
78
  readonly contents: readonly {
79
+ readonly role?: "model" | "user" | null | undefined;
17
80
  readonly parts?: readonly ({
81
+ readonly text: string;
82
+ readonly thought?: boolean | null | undefined;
83
+ readonly thoughtSignature?: string | null | undefined;
84
+ } | {
18
85
  readonly inlineData: {
19
86
  readonly mimeType: string;
20
87
  readonly data: string;
21
88
  };
22
89
  readonly thoughtSignature?: string | null | undefined;
23
- } | {
24
- readonly text: string;
25
- readonly thought?: boolean | null | undefined;
26
- readonly thoughtSignature?: string | null | undefined;
27
90
  } | {
28
91
  readonly fileData: {
29
92
  readonly mimeType: string;
@@ -31,16 +94,16 @@ export declare const routes: (import("../route/client.js").Route<{
31
94
  };
32
95
  } | {
33
96
  readonly functionCall: {
34
- readonly name: string;
35
97
  readonly id?: string | null | undefined;
98
+ readonly name: string;
36
99
  readonly args?: unknown;
37
100
  };
38
101
  readonly thoughtSignature?: string | null | undefined;
39
102
  } | {
40
103
  readonly functionResponse: {
104
+ readonly id?: string | undefined;
41
105
  readonly name: string;
42
106
  readonly response: unknown;
43
- readonly id?: string | undefined;
44
107
  readonly parts?: readonly {
45
108
  readonly inlineData: {
46
109
  readonly mimeType: string;
@@ -50,8 +113,20 @@ export declare const routes: (import("../route/client.js").Route<{
50
113
  }[] | undefined;
51
114
  };
52
115
  })[] | null | undefined;
53
- readonly role?: "model" | "user" | null | undefined;
54
116
  }[];
117
+ readonly labels?: {
118
+ readonly [x: string]: string;
119
+ } | undefined;
120
+ readonly safetySettings?: readonly {
121
+ readonly category: import("../schema/options.js").OpenString<"HARM_CATEGORY_CIVIC_INTEGRITY" | "HARM_CATEGORY_DANGEROUS_CONTENT" | "HARM_CATEGORY_HARASSMENT" | "HARM_CATEGORY_HATE_SPEECH" | "HARM_CATEGORY_SEXUALLY_EXPLICIT" | "HARM_CATEGORY_UNSPECIFIED">;
122
+ readonly threshold: import("../schema/options.js").OpenString<"BLOCK_LOW_AND_ABOVE" | "BLOCK_MEDIUM_AND_ABOVE" | "BLOCK_NONE" | "BLOCK_ONLY_HIGH" | "HARM_BLOCK_THRESHOLD_UNSPECIFIED" | "OFF">;
123
+ }[] | undefined;
124
+ readonly serviceTier?: string | undefined;
125
+ readonly systemInstruction?: {
126
+ readonly parts: readonly {
127
+ readonly text: string;
128
+ }[];
129
+ } | undefined;
55
130
  readonly tools?: readonly {
56
131
  readonly functionDeclarations: readonly {
57
132
  readonly name: string;
@@ -61,27 +136,14 @@ export declare const routes: (import("../route/client.js").Route<{
61
136
  };
62
137
  }[];
63
138
  }[] | undefined;
64
- readonly serviceTier?: string | undefined;
65
139
  readonly toolConfig?: {
66
140
  readonly functionCallingConfig: {
67
- readonly mode: "NONE" | "AUTO" | "ANY";
141
+ readonly mode: "ANY" | "AUTO" | "NONE";
68
142
  readonly allowedFunctionNames?: readonly string[] | undefined;
69
143
  };
70
144
  } | undefined;
71
- readonly cachedContent?: string | undefined;
72
- readonly safetySettings?: readonly {
73
- readonly category: import("../schema/options.js").OpenString<"HARM_CATEGORY_UNSPECIFIED" | "HARM_CATEGORY_HATE_SPEECH" | "HARM_CATEGORY_DANGEROUS_CONTENT" | "HARM_CATEGORY_HARASSMENT" | "HARM_CATEGORY_SEXUALLY_EXPLICIT" | "HARM_CATEGORY_CIVIC_INTEGRITY">;
74
- readonly threshold: import("../schema/options.js").OpenString<"HARM_BLOCK_THRESHOLD_UNSPECIFIED" | "BLOCK_LOW_AND_ABOVE" | "BLOCK_MEDIUM_AND_ABOVE" | "BLOCK_ONLY_HIGH" | "BLOCK_NONE" | "OFF">;
75
- }[] | undefined;
76
- readonly labels?: {
77
- readonly [x: string]: string;
78
- } | undefined;
79
- readonly systemInstruction?: {
80
- readonly parts: readonly {
81
- readonly text: string;
82
- }[];
83
- } | undefined;
84
145
  readonly generationConfig?: {
146
+ readonly maxOutputTokens?: number | undefined;
85
147
  readonly temperature?: number | undefined;
86
148
  readonly topP?: number | undefined;
87
149
  readonly topK?: number | undefined;
@@ -92,73 +154,11 @@ export declare const routes: (import("../route/client.js").Route<{
92
154
  readonly thinkingConfig?: {
93
155
  readonly thinkingBudget?: number | undefined;
94
156
  readonly includeThoughts?: boolean | undefined;
95
- readonly thinkingLevel?: import("../schema/options.js").OpenString<"minimal" | "low" | "medium" | "high"> | undefined;
157
+ readonly thinkingLevel?: import("../schema/options.js").OpenString<"high" | "low" | "medium" | "minimal"> | undefined;
96
158
  } | undefined;
97
- readonly maxOutputTokens?: number | undefined;
98
159
  } | undefined;
99
160
  readonly continuationToken?: string | undefined;
100
- }, Gemini.Prepared, import("../route/client.js").CompactionOperations | undefined> | import("../route/client.js").Route<{
101
- readonly input: readonly ({
102
- readonly type: "user_input" | "model_output";
103
- readonly content: readonly ({
104
- readonly type: "text";
105
- readonly text: string;
106
- } | {
107
- readonly type: "image" | "document" | "video" | "audio";
108
- readonly mime_type: string;
109
- readonly data?: string | undefined;
110
- readonly uri?: string | undefined;
111
- })[];
112
- } | {
113
- readonly type: "thought";
114
- readonly summary?: readonly {
115
- readonly type: "text";
116
- readonly text: string;
117
- }[] | undefined;
118
- readonly signature?: string | undefined;
119
- } | {
120
- readonly id: string;
121
- readonly type: "function_call";
122
- readonly name: string;
123
- readonly arguments: unknown;
124
- readonly signature?: string | undefined;
125
- } | {
126
- readonly type: "function_result";
127
- readonly name: string;
128
- readonly result: unknown;
129
- readonly call_id: string;
130
- readonly is_error?: boolean | undefined;
131
- })[];
132
- readonly model: string;
133
- readonly stream: true;
134
- readonly store: boolean;
135
- readonly generation_config: {
136
- readonly temperature?: number | undefined;
137
- readonly seed?: number | undefined;
138
- readonly tool_choice?: "auto" | "none" | "any" | {
139
- readonly allowed_tools: {
140
- readonly mode: "any";
141
- readonly tools: readonly string[];
142
- };
143
- } | undefined;
144
- readonly top_p?: number | undefined;
145
- readonly stop_sequences?: readonly string[] | undefined;
146
- readonly max_output_tokens?: number | undefined;
147
- readonly thinking_level?: import("../schema/options.js").OpenString<"minimal" | "low" | "medium" | "high"> | undefined;
148
- readonly thinking_summaries?: string | undefined;
149
- };
150
- readonly tools?: readonly {
151
- readonly type: "function";
152
- readonly name: string;
153
- readonly description: string;
154
- readonly parameters: {
155
- readonly [x: string]: unknown;
156
- };
157
- }[] | undefined;
158
- readonly service_tier?: string | undefined;
159
- readonly previous_interaction_id?: string | undefined;
160
- readonly system_instruction?: string | undefined;
161
- }, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined>)[];
161
+ }, Gemini.Prepared, import("../route/client.js").CompactionOperations | undefined>)[];
162
162
  export type Config = RouteDefaultsInput & ProviderAuthOption<"optional"> & {
163
163
  readonly baseURL?: string;
164
164
  readonly providerOptions?: Gemini.ProviderOptionsInput & GoogleInteractions.ProviderOptionsInput;
@@ -171,57 +171,42 @@ export declare const configure: (input?: Config) => {
171
171
  id: string & import("effect/Brand").Brand<"AI.ProviderID">;
172
172
  model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<Gemini.OptionsInput, import("../route/client.js").CompactionOperations | undefined>;
173
173
  interactions: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<{
174
- readonly serviceTier?: import("../schema/options.js").OpenString<"standard" | "flex" | "priority" | "deferred"> | undefined;
175
- readonly thinkingLevel?: import("../schema/options.js").OpenString<"minimal" | "low" | "medium" | "high"> | undefined;
176
174
  readonly previousInteractionId?: string | undefined;
177
175
  readonly store?: boolean | undefined;
176
+ readonly thinkingLevel?: import("../schema/options.js").OpenString<"high" | "low" | "medium" | "minimal"> | undefined;
178
177
  readonly thinkingSummaries?: import("../schema/options.js").OpenString<"auto" | "none"> | undefined;
178
+ readonly serviceTier?: import("../schema/options.js").OpenString<"deferred" | "flex" | "priority" | "standard"> | undefined;
179
179
  }, import("../route/client.js").CompactionOperations | undefined>;
180
180
  image: (modelID: string | ModelID) => import("../image.js").ImageModel<import("../protocols/google-images.js").GoogleImageOptions>;
181
181
  video: (modelID: string | ModelID) => import("../video.js").VideoModel<import("../protocols/google-video.js").GoogleVideoOptions>;
182
182
  speech: (modelID: string | ModelID) => import("../speech.js").SpeechModel<import("../protocols/google-speech.js").GoogleSpeechOptions>;
183
183
  transcription: (modelID: string | ModelID) => import("../transcription.js").TranscriptionModel<import("../protocols/google-transcription.js").GoogleTranscriptionOptions>;
184
- configure: (input?: Config) => /*elided*/ any;
184
+ configure: typeof configure;
185
185
  };
186
186
  export declare const provider: {
187
187
  id: string & import("effect/Brand").Brand<"AI.ProviderID">;
188
188
  model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<Gemini.OptionsInput, import("../route/client.js").CompactionOperations | undefined>;
189
189
  interactions: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<{
190
- readonly serviceTier?: import("../schema/options.js").OpenString<"standard" | "flex" | "priority" | "deferred"> | undefined;
191
- readonly thinkingLevel?: import("../schema/options.js").OpenString<"minimal" | "low" | "medium" | "high"> | undefined;
192
190
  readonly previousInteractionId?: string | undefined;
193
191
  readonly store?: boolean | undefined;
192
+ readonly thinkingLevel?: import("../schema/options.js").OpenString<"high" | "low" | "medium" | "minimal"> | undefined;
194
193
  readonly thinkingSummaries?: import("../schema/options.js").OpenString<"auto" | "none"> | undefined;
194
+ readonly serviceTier?: import("../schema/options.js").OpenString<"deferred" | "flex" | "priority" | "standard"> | undefined;
195
195
  }, import("../route/client.js").CompactionOperations | undefined>;
196
196
  image: (modelID: string | ModelID) => import("../image.js").ImageModel<import("../protocols/google-images.js").GoogleImageOptions>;
197
197
  video: (modelID: string | ModelID) => import("../video.js").VideoModel<import("../protocols/google-video.js").GoogleVideoOptions>;
198
198
  speech: (modelID: string | ModelID) => import("../speech.js").SpeechModel<import("../protocols/google-speech.js").GoogleSpeechOptions>;
199
199
  transcription: (modelID: string | ModelID) => import("../transcription.js").TranscriptionModel<import("../protocols/google-transcription.js").GoogleTranscriptionOptions>;
200
- configure: (input?: Config) => {
201
- id: string & import("effect/Brand").Brand<"AI.ProviderID">;
202
- model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<Gemini.OptionsInput, import("../route/client.js").CompactionOperations | undefined>;
203
- interactions: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<{
204
- readonly serviceTier?: import("../schema/options.js").OpenString<"standard" | "flex" | "priority" | "deferred"> | undefined;
205
- readonly thinkingLevel?: import("../schema/options.js").OpenString<"minimal" | "low" | "medium" | "high"> | undefined;
206
- readonly previousInteractionId?: string | undefined;
207
- readonly store?: boolean | undefined;
208
- readonly thinkingSummaries?: import("../schema/options.js").OpenString<"auto" | "none"> | undefined;
209
- }, import("../route/client.js").CompactionOperations | undefined>;
210
- image: (modelID: string | ModelID) => import("../image.js").ImageModel<import("../protocols/google-images.js").GoogleImageOptions>;
211
- video: (modelID: string | ModelID) => import("../video.js").VideoModel<import("../protocols/google-video.js").GoogleVideoOptions>;
212
- speech: (modelID: string | ModelID) => import("../speech.js").SpeechModel<import("../protocols/google-speech.js").GoogleSpeechOptions>;
213
- transcription: (modelID: string | ModelID) => import("../transcription.js").TranscriptionModel<import("../protocols/google-transcription.js").GoogleTranscriptionOptions>;
214
- configure: /*elided*/ any;
215
- };
200
+ configure: typeof configure;
216
201
  };
217
202
  export declare const model: ProviderPackage.Definition<Settings, Gemini.ProviderOptionsInput>["model"];
218
203
  export declare const image: (modelID: string | ModelID) => import("../image.js").ImageModel<import("../protocols/google-images.js").GoogleImageOptions>;
219
204
  export declare const interactions: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<{
220
- readonly serviceTier?: import("../schema/options.js").OpenString<"standard" | "flex" | "priority" | "deferred"> | undefined;
221
- readonly thinkingLevel?: import("../schema/options.js").OpenString<"minimal" | "low" | "medium" | "high"> | undefined;
222
205
  readonly previousInteractionId?: string | undefined;
223
206
  readonly store?: boolean | undefined;
207
+ readonly thinkingLevel?: import("../schema/options.js").OpenString<"high" | "low" | "medium" | "minimal"> | undefined;
224
208
  readonly thinkingSummaries?: import("../schema/options.js").OpenString<"auto" | "none"> | undefined;
209
+ readonly serviceTier?: import("../schema/options.js").OpenString<"deferred" | "flex" | "priority" | "standard"> | undefined;
225
210
  }, import("../route/client.js").CompactionOperations | undefined>;
226
211
  export declare const video: (modelID: string | ModelID) => import("../video.js").VideoModel<import("../protocols/google-video.js").GoogleVideoOptions>;
227
212
  export declare const speech: (modelID: string | ModelID) => import("../speech.js").SpeechModel<import("../protocols/google-speech.js").GoogleSpeechOptions>;