@tstdl/base 0.93.166 → 0.93.168
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/ai/genkit/module.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { vertexAI, type GeminiConfig } from '@genkit-ai/google-genai';
|
|
2
2
|
import { type Genkit, type GenkitOptions } from 'genkit';
|
|
3
|
-
import {
|
|
4
|
-
import type { VertexAiMultiLocationOptions } from './types.js';
|
|
3
|
+
import type { GeminiModelReference, VertexAiMultiLocationOptions } from './types.js';
|
|
5
4
|
/**
|
|
6
5
|
* Options for configuring the AI Module.
|
|
7
6
|
*/
|
|
@@ -1,419 +1,6 @@
|
|
|
1
1
|
import type { CircuitBreakerProvider } from '../../circuit-breaker/provider.js';
|
|
2
2
|
import type { Logger } from '../../logger/logger.js';
|
|
3
|
-
import type { VertexAiMultiLocationOptions } from './types.js';
|
|
4
|
-
export type GeminiModelReference = typeof geminiModelReference;
|
|
5
|
-
declare const geminiModelReference: import("genkit").ModelReference<import("zod").ZodObject<{
|
|
6
|
-
version: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7
|
-
maxOutputTokens: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
8
|
-
topK: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
9
|
-
stopSequences: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
10
|
-
} & {
|
|
11
|
-
apiKey: import("zod").ZodOptional<import("zod").ZodString>;
|
|
12
|
-
labels: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
|
|
13
|
-
temperature: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
14
|
-
topP: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
15
|
-
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
16
|
-
safetySettings: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
17
|
-
category: import("zod").ZodEnum<["HARM_CATEGORY_UNSPECIFIED", "HARM_CATEGORY_HATE_SPEECH", "HARM_CATEGORY_DANGEROUS_CONTENT", "HARM_CATEGORY_HARASSMENT", "HARM_CATEGORY_SEXUALLY_EXPLICIT"]>;
|
|
18
|
-
threshold: import("zod").ZodEnum<["BLOCK_LOW_AND_ABOVE", "BLOCK_MEDIUM_AND_ABOVE", "BLOCK_ONLY_HIGH", "BLOCK_NONE"]>;
|
|
19
|
-
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
20
|
-
category: import("zod").ZodEnum<["HARM_CATEGORY_UNSPECIFIED", "HARM_CATEGORY_HATE_SPEECH", "HARM_CATEGORY_DANGEROUS_CONTENT", "HARM_CATEGORY_HARASSMENT", "HARM_CATEGORY_SEXUALLY_EXPLICIT"]>;
|
|
21
|
-
threshold: import("zod").ZodEnum<["BLOCK_LOW_AND_ABOVE", "BLOCK_MEDIUM_AND_ABOVE", "BLOCK_ONLY_HIGH", "BLOCK_NONE"]>;
|
|
22
|
-
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
23
|
-
category: import("zod").ZodEnum<["HARM_CATEGORY_UNSPECIFIED", "HARM_CATEGORY_HATE_SPEECH", "HARM_CATEGORY_DANGEROUS_CONTENT", "HARM_CATEGORY_HARASSMENT", "HARM_CATEGORY_SEXUALLY_EXPLICIT"]>;
|
|
24
|
-
threshold: import("zod").ZodEnum<["BLOCK_LOW_AND_ABOVE", "BLOCK_MEDIUM_AND_ABOVE", "BLOCK_ONLY_HIGH", "BLOCK_NONE"]>;
|
|
25
|
-
}, import("zod").ZodTypeAny, "passthrough">>, "many">>;
|
|
26
|
-
vertexRetrieval: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
27
|
-
datastore: import("zod").ZodObject<{
|
|
28
|
-
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
29
|
-
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
30
|
-
dataStoreId: import("zod").ZodString;
|
|
31
|
-
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
32
|
-
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
33
|
-
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
34
|
-
dataStoreId: import("zod").ZodString;
|
|
35
|
-
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
36
|
-
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
37
|
-
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
38
|
-
dataStoreId: import("zod").ZodString;
|
|
39
|
-
}, import("zod").ZodTypeAny, "passthrough">>;
|
|
40
|
-
disableAttribution: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
41
|
-
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
42
|
-
datastore: import("zod").ZodObject<{
|
|
43
|
-
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
44
|
-
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
45
|
-
dataStoreId: import("zod").ZodString;
|
|
46
|
-
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
47
|
-
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
48
|
-
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
49
|
-
dataStoreId: import("zod").ZodString;
|
|
50
|
-
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
51
|
-
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
52
|
-
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
53
|
-
dataStoreId: import("zod").ZodString;
|
|
54
|
-
}, import("zod").ZodTypeAny, "passthrough">>;
|
|
55
|
-
disableAttribution: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
56
|
-
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
57
|
-
datastore: import("zod").ZodObject<{
|
|
58
|
-
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
59
|
-
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
60
|
-
dataStoreId: import("zod").ZodString;
|
|
61
|
-
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
62
|
-
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
63
|
-
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
64
|
-
dataStoreId: import("zod").ZodString;
|
|
65
|
-
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
66
|
-
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
67
|
-
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
68
|
-
dataStoreId: import("zod").ZodString;
|
|
69
|
-
}, import("zod").ZodTypeAny, "passthrough">>;
|
|
70
|
-
disableAttribution: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
71
|
-
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
72
|
-
googleSearchRetrieval: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
73
|
-
disableAttribution: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
74
|
-
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
75
|
-
disableAttribution: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
76
|
-
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
77
|
-
disableAttribution: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
78
|
-
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
79
|
-
functionCallingConfig: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
80
|
-
mode: import("zod").ZodOptional<import("zod").ZodEnum<["MODE_UNSPECIFIED", "AUTO", "ANY", "NONE"]>>;
|
|
81
|
-
allowedFunctionNames: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
82
|
-
streamFunctionCallArguments: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
83
|
-
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
84
|
-
mode: import("zod").ZodOptional<import("zod").ZodEnum<["MODE_UNSPECIFIED", "AUTO", "ANY", "NONE"]>>;
|
|
85
|
-
allowedFunctionNames: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
86
|
-
streamFunctionCallArguments: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
87
|
-
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
88
|
-
mode: import("zod").ZodOptional<import("zod").ZodEnum<["MODE_UNSPECIFIED", "AUTO", "ANY", "NONE"]>>;
|
|
89
|
-
allowedFunctionNames: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
90
|
-
streamFunctionCallArguments: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
91
|
-
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
92
|
-
retrievalConfig: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
93
|
-
latLng: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
94
|
-
latitude: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
95
|
-
longitude: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
96
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
97
|
-
latitude?: number | undefined;
|
|
98
|
-
longitude?: number | undefined;
|
|
99
|
-
}, {
|
|
100
|
-
latitude?: number | undefined;
|
|
101
|
-
longitude?: number | undefined;
|
|
102
|
-
}>>;
|
|
103
|
-
languageCode: import("zod").ZodOptional<import("zod").ZodString>;
|
|
104
|
-
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
105
|
-
latLng: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
106
|
-
latitude: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
107
|
-
longitude: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
108
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
109
|
-
latitude?: number | undefined;
|
|
110
|
-
longitude?: number | undefined;
|
|
111
|
-
}, {
|
|
112
|
-
latitude?: number | undefined;
|
|
113
|
-
longitude?: number | undefined;
|
|
114
|
-
}>>;
|
|
115
|
-
languageCode: import("zod").ZodOptional<import("zod").ZodString>;
|
|
116
|
-
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
117
|
-
latLng: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
118
|
-
latitude: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
119
|
-
longitude: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
120
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
121
|
-
latitude?: number | undefined;
|
|
122
|
-
longitude?: number | undefined;
|
|
123
|
-
}, {
|
|
124
|
-
latitude?: number | undefined;
|
|
125
|
-
longitude?: number | undefined;
|
|
126
|
-
}>>;
|
|
127
|
-
languageCode: import("zod").ZodOptional<import("zod").ZodString>;
|
|
128
|
-
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
129
|
-
thinkingConfig: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
130
|
-
includeThoughts: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
131
|
-
thinkingBudget: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
132
|
-
thinkingLevel: import("zod").ZodOptional<import("zod").ZodEnum<["MINIMAL", "LOW", "MEDIUM", "HIGH"]>>;
|
|
133
|
-
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
134
|
-
includeThoughts: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
135
|
-
thinkingBudget: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
136
|
-
thinkingLevel: import("zod").ZodOptional<import("zod").ZodEnum<["MINIMAL", "LOW", "MEDIUM", "HIGH"]>>;
|
|
137
|
-
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
138
|
-
includeThoughts: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
139
|
-
thinkingBudget: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
140
|
-
thinkingLevel: import("zod").ZodOptional<import("zod").ZodEnum<["MINIMAL", "LOW", "MEDIUM", "HIGH"]>>;
|
|
141
|
-
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
142
|
-
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
143
|
-
version: import("zod").ZodOptional<import("zod").ZodString>;
|
|
144
|
-
maxOutputTokens: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
145
|
-
topK: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
146
|
-
stopSequences: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
147
|
-
} & {
|
|
148
|
-
apiKey: import("zod").ZodOptional<import("zod").ZodString>;
|
|
149
|
-
labels: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
|
|
150
|
-
temperature: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
151
|
-
topP: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
152
|
-
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
153
|
-
safetySettings: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
154
|
-
category: import("zod").ZodEnum<["HARM_CATEGORY_UNSPECIFIED", "HARM_CATEGORY_HATE_SPEECH", "HARM_CATEGORY_DANGEROUS_CONTENT", "HARM_CATEGORY_HARASSMENT", "HARM_CATEGORY_SEXUALLY_EXPLICIT"]>;
|
|
155
|
-
threshold: import("zod").ZodEnum<["BLOCK_LOW_AND_ABOVE", "BLOCK_MEDIUM_AND_ABOVE", "BLOCK_ONLY_HIGH", "BLOCK_NONE"]>;
|
|
156
|
-
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
157
|
-
category: import("zod").ZodEnum<["HARM_CATEGORY_UNSPECIFIED", "HARM_CATEGORY_HATE_SPEECH", "HARM_CATEGORY_DANGEROUS_CONTENT", "HARM_CATEGORY_HARASSMENT", "HARM_CATEGORY_SEXUALLY_EXPLICIT"]>;
|
|
158
|
-
threshold: import("zod").ZodEnum<["BLOCK_LOW_AND_ABOVE", "BLOCK_MEDIUM_AND_ABOVE", "BLOCK_ONLY_HIGH", "BLOCK_NONE"]>;
|
|
159
|
-
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
160
|
-
category: import("zod").ZodEnum<["HARM_CATEGORY_UNSPECIFIED", "HARM_CATEGORY_HATE_SPEECH", "HARM_CATEGORY_DANGEROUS_CONTENT", "HARM_CATEGORY_HARASSMENT", "HARM_CATEGORY_SEXUALLY_EXPLICIT"]>;
|
|
161
|
-
threshold: import("zod").ZodEnum<["BLOCK_LOW_AND_ABOVE", "BLOCK_MEDIUM_AND_ABOVE", "BLOCK_ONLY_HIGH", "BLOCK_NONE"]>;
|
|
162
|
-
}, import("zod").ZodTypeAny, "passthrough">>, "many">>;
|
|
163
|
-
vertexRetrieval: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
164
|
-
datastore: import("zod").ZodObject<{
|
|
165
|
-
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
166
|
-
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
167
|
-
dataStoreId: import("zod").ZodString;
|
|
168
|
-
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
169
|
-
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
170
|
-
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
171
|
-
dataStoreId: import("zod").ZodString;
|
|
172
|
-
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
173
|
-
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
174
|
-
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
175
|
-
dataStoreId: import("zod").ZodString;
|
|
176
|
-
}, import("zod").ZodTypeAny, "passthrough">>;
|
|
177
|
-
disableAttribution: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
178
|
-
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
179
|
-
datastore: import("zod").ZodObject<{
|
|
180
|
-
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
181
|
-
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
182
|
-
dataStoreId: import("zod").ZodString;
|
|
183
|
-
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
184
|
-
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
185
|
-
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
186
|
-
dataStoreId: import("zod").ZodString;
|
|
187
|
-
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
188
|
-
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
189
|
-
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
190
|
-
dataStoreId: import("zod").ZodString;
|
|
191
|
-
}, import("zod").ZodTypeAny, "passthrough">>;
|
|
192
|
-
disableAttribution: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
193
|
-
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
194
|
-
datastore: import("zod").ZodObject<{
|
|
195
|
-
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
196
|
-
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
197
|
-
dataStoreId: import("zod").ZodString;
|
|
198
|
-
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
199
|
-
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
200
|
-
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
201
|
-
dataStoreId: import("zod").ZodString;
|
|
202
|
-
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
203
|
-
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
204
|
-
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
205
|
-
dataStoreId: import("zod").ZodString;
|
|
206
|
-
}, import("zod").ZodTypeAny, "passthrough">>;
|
|
207
|
-
disableAttribution: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
208
|
-
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
209
|
-
googleSearchRetrieval: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
210
|
-
disableAttribution: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
211
|
-
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
212
|
-
disableAttribution: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
213
|
-
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
214
|
-
disableAttribution: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
215
|
-
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
216
|
-
functionCallingConfig: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
217
|
-
mode: import("zod").ZodOptional<import("zod").ZodEnum<["MODE_UNSPECIFIED", "AUTO", "ANY", "NONE"]>>;
|
|
218
|
-
allowedFunctionNames: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
219
|
-
streamFunctionCallArguments: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
220
|
-
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
221
|
-
mode: import("zod").ZodOptional<import("zod").ZodEnum<["MODE_UNSPECIFIED", "AUTO", "ANY", "NONE"]>>;
|
|
222
|
-
allowedFunctionNames: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
223
|
-
streamFunctionCallArguments: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
224
|
-
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
225
|
-
mode: import("zod").ZodOptional<import("zod").ZodEnum<["MODE_UNSPECIFIED", "AUTO", "ANY", "NONE"]>>;
|
|
226
|
-
allowedFunctionNames: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
227
|
-
streamFunctionCallArguments: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
228
|
-
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
229
|
-
retrievalConfig: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
230
|
-
latLng: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
231
|
-
latitude: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
232
|
-
longitude: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
233
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
234
|
-
latitude?: number | undefined;
|
|
235
|
-
longitude?: number | undefined;
|
|
236
|
-
}, {
|
|
237
|
-
latitude?: number | undefined;
|
|
238
|
-
longitude?: number | undefined;
|
|
239
|
-
}>>;
|
|
240
|
-
languageCode: import("zod").ZodOptional<import("zod").ZodString>;
|
|
241
|
-
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
242
|
-
latLng: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
243
|
-
latitude: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
244
|
-
longitude: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
245
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
246
|
-
latitude?: number | undefined;
|
|
247
|
-
longitude?: number | undefined;
|
|
248
|
-
}, {
|
|
249
|
-
latitude?: number | undefined;
|
|
250
|
-
longitude?: number | undefined;
|
|
251
|
-
}>>;
|
|
252
|
-
languageCode: import("zod").ZodOptional<import("zod").ZodString>;
|
|
253
|
-
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
254
|
-
latLng: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
255
|
-
latitude: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
256
|
-
longitude: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
257
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
258
|
-
latitude?: number | undefined;
|
|
259
|
-
longitude?: number | undefined;
|
|
260
|
-
}, {
|
|
261
|
-
latitude?: number | undefined;
|
|
262
|
-
longitude?: number | undefined;
|
|
263
|
-
}>>;
|
|
264
|
-
languageCode: import("zod").ZodOptional<import("zod").ZodString>;
|
|
265
|
-
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
266
|
-
thinkingConfig: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
267
|
-
includeThoughts: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
268
|
-
thinkingBudget: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
269
|
-
thinkingLevel: import("zod").ZodOptional<import("zod").ZodEnum<["MINIMAL", "LOW", "MEDIUM", "HIGH"]>>;
|
|
270
|
-
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
271
|
-
includeThoughts: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
272
|
-
thinkingBudget: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
273
|
-
thinkingLevel: import("zod").ZodOptional<import("zod").ZodEnum<["MINIMAL", "LOW", "MEDIUM", "HIGH"]>>;
|
|
274
|
-
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
275
|
-
includeThoughts: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
276
|
-
thinkingBudget: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
277
|
-
thinkingLevel: import("zod").ZodOptional<import("zod").ZodEnum<["MINIMAL", "LOW", "MEDIUM", "HIGH"]>>;
|
|
278
|
-
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
279
|
-
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
280
|
-
version: import("zod").ZodOptional<import("zod").ZodString>;
|
|
281
|
-
maxOutputTokens: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
282
|
-
topK: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
283
|
-
stopSequences: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
284
|
-
} & {
|
|
285
|
-
apiKey: import("zod").ZodOptional<import("zod").ZodString>;
|
|
286
|
-
labels: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
|
|
287
|
-
temperature: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
288
|
-
topP: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
289
|
-
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
290
|
-
safetySettings: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
291
|
-
category: import("zod").ZodEnum<["HARM_CATEGORY_UNSPECIFIED", "HARM_CATEGORY_HATE_SPEECH", "HARM_CATEGORY_DANGEROUS_CONTENT", "HARM_CATEGORY_HARASSMENT", "HARM_CATEGORY_SEXUALLY_EXPLICIT"]>;
|
|
292
|
-
threshold: import("zod").ZodEnum<["BLOCK_LOW_AND_ABOVE", "BLOCK_MEDIUM_AND_ABOVE", "BLOCK_ONLY_HIGH", "BLOCK_NONE"]>;
|
|
293
|
-
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
294
|
-
category: import("zod").ZodEnum<["HARM_CATEGORY_UNSPECIFIED", "HARM_CATEGORY_HATE_SPEECH", "HARM_CATEGORY_DANGEROUS_CONTENT", "HARM_CATEGORY_HARASSMENT", "HARM_CATEGORY_SEXUALLY_EXPLICIT"]>;
|
|
295
|
-
threshold: import("zod").ZodEnum<["BLOCK_LOW_AND_ABOVE", "BLOCK_MEDIUM_AND_ABOVE", "BLOCK_ONLY_HIGH", "BLOCK_NONE"]>;
|
|
296
|
-
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
297
|
-
category: import("zod").ZodEnum<["HARM_CATEGORY_UNSPECIFIED", "HARM_CATEGORY_HATE_SPEECH", "HARM_CATEGORY_DANGEROUS_CONTENT", "HARM_CATEGORY_HARASSMENT", "HARM_CATEGORY_SEXUALLY_EXPLICIT"]>;
|
|
298
|
-
threshold: import("zod").ZodEnum<["BLOCK_LOW_AND_ABOVE", "BLOCK_MEDIUM_AND_ABOVE", "BLOCK_ONLY_HIGH", "BLOCK_NONE"]>;
|
|
299
|
-
}, import("zod").ZodTypeAny, "passthrough">>, "many">>;
|
|
300
|
-
vertexRetrieval: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
301
|
-
datastore: import("zod").ZodObject<{
|
|
302
|
-
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
303
|
-
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
304
|
-
dataStoreId: import("zod").ZodString;
|
|
305
|
-
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
306
|
-
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
307
|
-
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
308
|
-
dataStoreId: import("zod").ZodString;
|
|
309
|
-
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
310
|
-
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
311
|
-
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
312
|
-
dataStoreId: import("zod").ZodString;
|
|
313
|
-
}, import("zod").ZodTypeAny, "passthrough">>;
|
|
314
|
-
disableAttribution: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
315
|
-
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
316
|
-
datastore: import("zod").ZodObject<{
|
|
317
|
-
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
318
|
-
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
319
|
-
dataStoreId: import("zod").ZodString;
|
|
320
|
-
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
321
|
-
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
322
|
-
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
323
|
-
dataStoreId: import("zod").ZodString;
|
|
324
|
-
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
325
|
-
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
326
|
-
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
327
|
-
dataStoreId: import("zod").ZodString;
|
|
328
|
-
}, import("zod").ZodTypeAny, "passthrough">>;
|
|
329
|
-
disableAttribution: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
330
|
-
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
331
|
-
datastore: import("zod").ZodObject<{
|
|
332
|
-
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
333
|
-
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
334
|
-
dataStoreId: import("zod").ZodString;
|
|
335
|
-
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
336
|
-
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
337
|
-
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
338
|
-
dataStoreId: import("zod").ZodString;
|
|
339
|
-
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
340
|
-
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
341
|
-
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
342
|
-
dataStoreId: import("zod").ZodString;
|
|
343
|
-
}, import("zod").ZodTypeAny, "passthrough">>;
|
|
344
|
-
disableAttribution: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
345
|
-
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
346
|
-
googleSearchRetrieval: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
347
|
-
disableAttribution: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
348
|
-
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
349
|
-
disableAttribution: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
350
|
-
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
351
|
-
disableAttribution: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
352
|
-
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
353
|
-
functionCallingConfig: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
354
|
-
mode: import("zod").ZodOptional<import("zod").ZodEnum<["MODE_UNSPECIFIED", "AUTO", "ANY", "NONE"]>>;
|
|
355
|
-
allowedFunctionNames: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
356
|
-
streamFunctionCallArguments: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
357
|
-
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
358
|
-
mode: import("zod").ZodOptional<import("zod").ZodEnum<["MODE_UNSPECIFIED", "AUTO", "ANY", "NONE"]>>;
|
|
359
|
-
allowedFunctionNames: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
360
|
-
streamFunctionCallArguments: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
361
|
-
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
362
|
-
mode: import("zod").ZodOptional<import("zod").ZodEnum<["MODE_UNSPECIFIED", "AUTO", "ANY", "NONE"]>>;
|
|
363
|
-
allowedFunctionNames: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
364
|
-
streamFunctionCallArguments: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
365
|
-
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
366
|
-
retrievalConfig: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
367
|
-
latLng: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
368
|
-
latitude: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
369
|
-
longitude: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
370
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
371
|
-
latitude?: number | undefined;
|
|
372
|
-
longitude?: number | undefined;
|
|
373
|
-
}, {
|
|
374
|
-
latitude?: number | undefined;
|
|
375
|
-
longitude?: number | undefined;
|
|
376
|
-
}>>;
|
|
377
|
-
languageCode: import("zod").ZodOptional<import("zod").ZodString>;
|
|
378
|
-
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
379
|
-
latLng: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
380
|
-
latitude: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
381
|
-
longitude: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
382
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
383
|
-
latitude?: number | undefined;
|
|
384
|
-
longitude?: number | undefined;
|
|
385
|
-
}, {
|
|
386
|
-
latitude?: number | undefined;
|
|
387
|
-
longitude?: number | undefined;
|
|
388
|
-
}>>;
|
|
389
|
-
languageCode: import("zod").ZodOptional<import("zod").ZodString>;
|
|
390
|
-
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
391
|
-
latLng: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
392
|
-
latitude: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
393
|
-
longitude: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
394
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
395
|
-
latitude?: number | undefined;
|
|
396
|
-
longitude?: number | undefined;
|
|
397
|
-
}, {
|
|
398
|
-
latitude?: number | undefined;
|
|
399
|
-
longitude?: number | undefined;
|
|
400
|
-
}>>;
|
|
401
|
-
languageCode: import("zod").ZodOptional<import("zod").ZodString>;
|
|
402
|
-
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
403
|
-
thinkingConfig: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
404
|
-
includeThoughts: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
405
|
-
thinkingBudget: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
406
|
-
thinkingLevel: import("zod").ZodOptional<import("zod").ZodEnum<["MINIMAL", "LOW", "MEDIUM", "HIGH"]>>;
|
|
407
|
-
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
408
|
-
includeThoughts: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
409
|
-
thinkingBudget: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
410
|
-
thinkingLevel: import("zod").ZodOptional<import("zod").ZodEnum<["MINIMAL", "LOW", "MEDIUM", "HIGH"]>>;
|
|
411
|
-
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
412
|
-
includeThoughts: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
413
|
-
thinkingBudget: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
414
|
-
thinkingLevel: import("zod").ZodOptional<import("zod").ZodEnum<["MINIMAL", "LOW", "MEDIUM", "HIGH"]>>;
|
|
415
|
-
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
416
|
-
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
3
|
+
import type { GeminiModelReference, VertexAiMultiLocationOptions } from './types.js';
|
|
417
4
|
export declare function vertexAiMultiLocation(options: VertexAiMultiLocationOptions & {
|
|
418
5
|
circuitBreakerProvider: CircuitBreakerProvider;
|
|
419
6
|
logger: Logger;
|
|
@@ -421,4 +8,3 @@ export declare function vertexAiMultiLocation(options: VertexAiMultiLocationOpti
|
|
|
421
8
|
export declare namespace vertexAiMultiLocation {
|
|
422
9
|
var model: <T extends GeminiModelReference>(baseModel: T) => T;
|
|
423
10
|
}
|
|
424
|
-
export {};
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { vertexAI } from '@genkit-ai/google-genai';
|
|
2
1
|
import { GenkitError, modelRef } from 'genkit';
|
|
3
2
|
import { genkitPlugin } from 'genkit/plugin';
|
|
4
3
|
import { distinct, shuffle } from '../../utils/array/index.js';
|
|
5
4
|
import { isInstanceOf, isNullOrUndefined } from '../../utils/type-guards.js';
|
|
6
5
|
import { millisecondsPerMinute, millisecondsPerSecond } from '../../utils/units.js';
|
|
7
6
|
const pluginKey = 'vertexai-multi-location';
|
|
8
|
-
const geminiModelReference = vertexAI.model('gemini-');
|
|
9
7
|
const defaultTokenLimitThreshold = 131_072;
|
|
10
8
|
export function vertexAiMultiLocation(options) {
|
|
11
9
|
if (options.locations.length == 0) {
|
package/ai/genkit/types.d.ts
CHANGED
|
@@ -1,4 +1,419 @@
|
|
|
1
|
+
import type { OmitIndexSignature, SimplifyDeep } from 'type-fest';
|
|
1
2
|
import type { CircuitBreakerConfig } from '../../circuit-breaker/circuit-breaker.js';
|
|
3
|
+
declare const geminiModelReference: import("genkit").ModelReference<import("zod").ZodObject<{
|
|
4
|
+
version: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5
|
+
maxOutputTokens: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
6
|
+
topK: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
7
|
+
stopSequences: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
8
|
+
} & {
|
|
9
|
+
apiKey: import("zod").ZodOptional<import("zod").ZodString>;
|
|
10
|
+
labels: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
|
|
11
|
+
temperature: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
12
|
+
topP: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
13
|
+
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
14
|
+
safetySettings: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
15
|
+
category: import("zod").ZodEnum<["HARM_CATEGORY_UNSPECIFIED", "HARM_CATEGORY_HATE_SPEECH", "HARM_CATEGORY_DANGEROUS_CONTENT", "HARM_CATEGORY_HARASSMENT", "HARM_CATEGORY_SEXUALLY_EXPLICIT"]>;
|
|
16
|
+
threshold: import("zod").ZodEnum<["BLOCK_LOW_AND_ABOVE", "BLOCK_MEDIUM_AND_ABOVE", "BLOCK_ONLY_HIGH", "BLOCK_NONE"]>;
|
|
17
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
18
|
+
category: import("zod").ZodEnum<["HARM_CATEGORY_UNSPECIFIED", "HARM_CATEGORY_HATE_SPEECH", "HARM_CATEGORY_DANGEROUS_CONTENT", "HARM_CATEGORY_HARASSMENT", "HARM_CATEGORY_SEXUALLY_EXPLICIT"]>;
|
|
19
|
+
threshold: import("zod").ZodEnum<["BLOCK_LOW_AND_ABOVE", "BLOCK_MEDIUM_AND_ABOVE", "BLOCK_ONLY_HIGH", "BLOCK_NONE"]>;
|
|
20
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
21
|
+
category: import("zod").ZodEnum<["HARM_CATEGORY_UNSPECIFIED", "HARM_CATEGORY_HATE_SPEECH", "HARM_CATEGORY_DANGEROUS_CONTENT", "HARM_CATEGORY_HARASSMENT", "HARM_CATEGORY_SEXUALLY_EXPLICIT"]>;
|
|
22
|
+
threshold: import("zod").ZodEnum<["BLOCK_LOW_AND_ABOVE", "BLOCK_MEDIUM_AND_ABOVE", "BLOCK_ONLY_HIGH", "BLOCK_NONE"]>;
|
|
23
|
+
}, import("zod").ZodTypeAny, "passthrough">>, "many">>;
|
|
24
|
+
vertexRetrieval: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
25
|
+
datastore: import("zod").ZodObject<{
|
|
26
|
+
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
27
|
+
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
28
|
+
dataStoreId: import("zod").ZodString;
|
|
29
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
30
|
+
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
31
|
+
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
32
|
+
dataStoreId: import("zod").ZodString;
|
|
33
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
34
|
+
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
35
|
+
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
36
|
+
dataStoreId: import("zod").ZodString;
|
|
37
|
+
}, import("zod").ZodTypeAny, "passthrough">>;
|
|
38
|
+
disableAttribution: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
39
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
40
|
+
datastore: import("zod").ZodObject<{
|
|
41
|
+
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
42
|
+
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
43
|
+
dataStoreId: import("zod").ZodString;
|
|
44
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
45
|
+
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
46
|
+
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
47
|
+
dataStoreId: import("zod").ZodString;
|
|
48
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
49
|
+
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
50
|
+
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
51
|
+
dataStoreId: import("zod").ZodString;
|
|
52
|
+
}, import("zod").ZodTypeAny, "passthrough">>;
|
|
53
|
+
disableAttribution: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
54
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
55
|
+
datastore: import("zod").ZodObject<{
|
|
56
|
+
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
57
|
+
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
58
|
+
dataStoreId: import("zod").ZodString;
|
|
59
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
60
|
+
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
61
|
+
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
62
|
+
dataStoreId: import("zod").ZodString;
|
|
63
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
64
|
+
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
65
|
+
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
66
|
+
dataStoreId: import("zod").ZodString;
|
|
67
|
+
}, import("zod").ZodTypeAny, "passthrough">>;
|
|
68
|
+
disableAttribution: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
69
|
+
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
70
|
+
googleSearchRetrieval: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
71
|
+
disableAttribution: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
72
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
73
|
+
disableAttribution: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
74
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
75
|
+
disableAttribution: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
76
|
+
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
77
|
+
functionCallingConfig: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
78
|
+
mode: import("zod").ZodOptional<import("zod").ZodEnum<["MODE_UNSPECIFIED", "AUTO", "ANY", "NONE"]>>;
|
|
79
|
+
allowedFunctionNames: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
80
|
+
streamFunctionCallArguments: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
81
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
82
|
+
mode: import("zod").ZodOptional<import("zod").ZodEnum<["MODE_UNSPECIFIED", "AUTO", "ANY", "NONE"]>>;
|
|
83
|
+
allowedFunctionNames: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
84
|
+
streamFunctionCallArguments: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
85
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
86
|
+
mode: import("zod").ZodOptional<import("zod").ZodEnum<["MODE_UNSPECIFIED", "AUTO", "ANY", "NONE"]>>;
|
|
87
|
+
allowedFunctionNames: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
88
|
+
streamFunctionCallArguments: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
89
|
+
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
90
|
+
retrievalConfig: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
91
|
+
latLng: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
92
|
+
latitude: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
93
|
+
longitude: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
94
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
95
|
+
latitude?: number | undefined;
|
|
96
|
+
longitude?: number | undefined;
|
|
97
|
+
}, {
|
|
98
|
+
latitude?: number | undefined;
|
|
99
|
+
longitude?: number | undefined;
|
|
100
|
+
}>>;
|
|
101
|
+
languageCode: import("zod").ZodOptional<import("zod").ZodString>;
|
|
102
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
103
|
+
latLng: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
104
|
+
latitude: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
105
|
+
longitude: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
106
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
107
|
+
latitude?: number | undefined;
|
|
108
|
+
longitude?: number | undefined;
|
|
109
|
+
}, {
|
|
110
|
+
latitude?: number | undefined;
|
|
111
|
+
longitude?: number | undefined;
|
|
112
|
+
}>>;
|
|
113
|
+
languageCode: import("zod").ZodOptional<import("zod").ZodString>;
|
|
114
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
115
|
+
latLng: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
116
|
+
latitude: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
117
|
+
longitude: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
118
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
119
|
+
latitude?: number | undefined;
|
|
120
|
+
longitude?: number | undefined;
|
|
121
|
+
}, {
|
|
122
|
+
latitude?: number | undefined;
|
|
123
|
+
longitude?: number | undefined;
|
|
124
|
+
}>>;
|
|
125
|
+
languageCode: import("zod").ZodOptional<import("zod").ZodString>;
|
|
126
|
+
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
127
|
+
thinkingConfig: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
128
|
+
includeThoughts: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
129
|
+
thinkingBudget: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
130
|
+
thinkingLevel: import("zod").ZodOptional<import("zod").ZodEnum<["MINIMAL", "LOW", "MEDIUM", "HIGH"]>>;
|
|
131
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
132
|
+
includeThoughts: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
133
|
+
thinkingBudget: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
134
|
+
thinkingLevel: import("zod").ZodOptional<import("zod").ZodEnum<["MINIMAL", "LOW", "MEDIUM", "HIGH"]>>;
|
|
135
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
136
|
+
includeThoughts: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
137
|
+
thinkingBudget: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
138
|
+
thinkingLevel: import("zod").ZodOptional<import("zod").ZodEnum<["MINIMAL", "LOW", "MEDIUM", "HIGH"]>>;
|
|
139
|
+
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
140
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
141
|
+
version: import("zod").ZodOptional<import("zod").ZodString>;
|
|
142
|
+
maxOutputTokens: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
143
|
+
topK: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
144
|
+
stopSequences: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
145
|
+
} & {
|
|
146
|
+
apiKey: import("zod").ZodOptional<import("zod").ZodString>;
|
|
147
|
+
labels: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
|
|
148
|
+
temperature: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
149
|
+
topP: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
150
|
+
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
151
|
+
safetySettings: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
152
|
+
category: import("zod").ZodEnum<["HARM_CATEGORY_UNSPECIFIED", "HARM_CATEGORY_HATE_SPEECH", "HARM_CATEGORY_DANGEROUS_CONTENT", "HARM_CATEGORY_HARASSMENT", "HARM_CATEGORY_SEXUALLY_EXPLICIT"]>;
|
|
153
|
+
threshold: import("zod").ZodEnum<["BLOCK_LOW_AND_ABOVE", "BLOCK_MEDIUM_AND_ABOVE", "BLOCK_ONLY_HIGH", "BLOCK_NONE"]>;
|
|
154
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
155
|
+
category: import("zod").ZodEnum<["HARM_CATEGORY_UNSPECIFIED", "HARM_CATEGORY_HATE_SPEECH", "HARM_CATEGORY_DANGEROUS_CONTENT", "HARM_CATEGORY_HARASSMENT", "HARM_CATEGORY_SEXUALLY_EXPLICIT"]>;
|
|
156
|
+
threshold: import("zod").ZodEnum<["BLOCK_LOW_AND_ABOVE", "BLOCK_MEDIUM_AND_ABOVE", "BLOCK_ONLY_HIGH", "BLOCK_NONE"]>;
|
|
157
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
158
|
+
category: import("zod").ZodEnum<["HARM_CATEGORY_UNSPECIFIED", "HARM_CATEGORY_HATE_SPEECH", "HARM_CATEGORY_DANGEROUS_CONTENT", "HARM_CATEGORY_HARASSMENT", "HARM_CATEGORY_SEXUALLY_EXPLICIT"]>;
|
|
159
|
+
threshold: import("zod").ZodEnum<["BLOCK_LOW_AND_ABOVE", "BLOCK_MEDIUM_AND_ABOVE", "BLOCK_ONLY_HIGH", "BLOCK_NONE"]>;
|
|
160
|
+
}, import("zod").ZodTypeAny, "passthrough">>, "many">>;
|
|
161
|
+
vertexRetrieval: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
162
|
+
datastore: import("zod").ZodObject<{
|
|
163
|
+
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
164
|
+
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
165
|
+
dataStoreId: import("zod").ZodString;
|
|
166
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
167
|
+
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
168
|
+
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
169
|
+
dataStoreId: import("zod").ZodString;
|
|
170
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
171
|
+
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
172
|
+
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
173
|
+
dataStoreId: import("zod").ZodString;
|
|
174
|
+
}, import("zod").ZodTypeAny, "passthrough">>;
|
|
175
|
+
disableAttribution: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
176
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
177
|
+
datastore: import("zod").ZodObject<{
|
|
178
|
+
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
179
|
+
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
180
|
+
dataStoreId: import("zod").ZodString;
|
|
181
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
182
|
+
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
183
|
+
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
184
|
+
dataStoreId: import("zod").ZodString;
|
|
185
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
186
|
+
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
187
|
+
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
188
|
+
dataStoreId: import("zod").ZodString;
|
|
189
|
+
}, import("zod").ZodTypeAny, "passthrough">>;
|
|
190
|
+
disableAttribution: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
191
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
192
|
+
datastore: import("zod").ZodObject<{
|
|
193
|
+
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
194
|
+
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
195
|
+
dataStoreId: import("zod").ZodString;
|
|
196
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
197
|
+
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
198
|
+
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
199
|
+
dataStoreId: import("zod").ZodString;
|
|
200
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
201
|
+
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
202
|
+
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
203
|
+
dataStoreId: import("zod").ZodString;
|
|
204
|
+
}, import("zod").ZodTypeAny, "passthrough">>;
|
|
205
|
+
disableAttribution: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
206
|
+
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
207
|
+
googleSearchRetrieval: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
208
|
+
disableAttribution: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
209
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
210
|
+
disableAttribution: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
211
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
212
|
+
disableAttribution: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
213
|
+
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
214
|
+
functionCallingConfig: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
215
|
+
mode: import("zod").ZodOptional<import("zod").ZodEnum<["MODE_UNSPECIFIED", "AUTO", "ANY", "NONE"]>>;
|
|
216
|
+
allowedFunctionNames: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
217
|
+
streamFunctionCallArguments: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
218
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
219
|
+
mode: import("zod").ZodOptional<import("zod").ZodEnum<["MODE_UNSPECIFIED", "AUTO", "ANY", "NONE"]>>;
|
|
220
|
+
allowedFunctionNames: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
221
|
+
streamFunctionCallArguments: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
222
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
223
|
+
mode: import("zod").ZodOptional<import("zod").ZodEnum<["MODE_UNSPECIFIED", "AUTO", "ANY", "NONE"]>>;
|
|
224
|
+
allowedFunctionNames: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
225
|
+
streamFunctionCallArguments: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
226
|
+
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
227
|
+
retrievalConfig: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
228
|
+
latLng: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
229
|
+
latitude: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
230
|
+
longitude: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
231
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
232
|
+
latitude?: number | undefined;
|
|
233
|
+
longitude?: number | undefined;
|
|
234
|
+
}, {
|
|
235
|
+
latitude?: number | undefined;
|
|
236
|
+
longitude?: number | undefined;
|
|
237
|
+
}>>;
|
|
238
|
+
languageCode: import("zod").ZodOptional<import("zod").ZodString>;
|
|
239
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
240
|
+
latLng: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
241
|
+
latitude: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
242
|
+
longitude: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
243
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
244
|
+
latitude?: number | undefined;
|
|
245
|
+
longitude?: number | undefined;
|
|
246
|
+
}, {
|
|
247
|
+
latitude?: number | undefined;
|
|
248
|
+
longitude?: number | undefined;
|
|
249
|
+
}>>;
|
|
250
|
+
languageCode: import("zod").ZodOptional<import("zod").ZodString>;
|
|
251
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
252
|
+
latLng: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
253
|
+
latitude: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
254
|
+
longitude: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
255
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
256
|
+
latitude?: number | undefined;
|
|
257
|
+
longitude?: number | undefined;
|
|
258
|
+
}, {
|
|
259
|
+
latitude?: number | undefined;
|
|
260
|
+
longitude?: number | undefined;
|
|
261
|
+
}>>;
|
|
262
|
+
languageCode: import("zod").ZodOptional<import("zod").ZodString>;
|
|
263
|
+
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
264
|
+
thinkingConfig: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
265
|
+
includeThoughts: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
266
|
+
thinkingBudget: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
267
|
+
thinkingLevel: import("zod").ZodOptional<import("zod").ZodEnum<["MINIMAL", "LOW", "MEDIUM", "HIGH"]>>;
|
|
268
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
269
|
+
includeThoughts: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
270
|
+
thinkingBudget: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
271
|
+
thinkingLevel: import("zod").ZodOptional<import("zod").ZodEnum<["MINIMAL", "LOW", "MEDIUM", "HIGH"]>>;
|
|
272
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
273
|
+
includeThoughts: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
274
|
+
thinkingBudget: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
275
|
+
thinkingLevel: import("zod").ZodOptional<import("zod").ZodEnum<["MINIMAL", "LOW", "MEDIUM", "HIGH"]>>;
|
|
276
|
+
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
277
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
278
|
+
version: import("zod").ZodOptional<import("zod").ZodString>;
|
|
279
|
+
maxOutputTokens: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
280
|
+
topK: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
281
|
+
stopSequences: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
282
|
+
} & {
|
|
283
|
+
apiKey: import("zod").ZodOptional<import("zod").ZodString>;
|
|
284
|
+
labels: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
|
|
285
|
+
temperature: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
286
|
+
topP: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
287
|
+
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
288
|
+
safetySettings: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
289
|
+
category: import("zod").ZodEnum<["HARM_CATEGORY_UNSPECIFIED", "HARM_CATEGORY_HATE_SPEECH", "HARM_CATEGORY_DANGEROUS_CONTENT", "HARM_CATEGORY_HARASSMENT", "HARM_CATEGORY_SEXUALLY_EXPLICIT"]>;
|
|
290
|
+
threshold: import("zod").ZodEnum<["BLOCK_LOW_AND_ABOVE", "BLOCK_MEDIUM_AND_ABOVE", "BLOCK_ONLY_HIGH", "BLOCK_NONE"]>;
|
|
291
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
292
|
+
category: import("zod").ZodEnum<["HARM_CATEGORY_UNSPECIFIED", "HARM_CATEGORY_HATE_SPEECH", "HARM_CATEGORY_DANGEROUS_CONTENT", "HARM_CATEGORY_HARASSMENT", "HARM_CATEGORY_SEXUALLY_EXPLICIT"]>;
|
|
293
|
+
threshold: import("zod").ZodEnum<["BLOCK_LOW_AND_ABOVE", "BLOCK_MEDIUM_AND_ABOVE", "BLOCK_ONLY_HIGH", "BLOCK_NONE"]>;
|
|
294
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
295
|
+
category: import("zod").ZodEnum<["HARM_CATEGORY_UNSPECIFIED", "HARM_CATEGORY_HATE_SPEECH", "HARM_CATEGORY_DANGEROUS_CONTENT", "HARM_CATEGORY_HARASSMENT", "HARM_CATEGORY_SEXUALLY_EXPLICIT"]>;
|
|
296
|
+
threshold: import("zod").ZodEnum<["BLOCK_LOW_AND_ABOVE", "BLOCK_MEDIUM_AND_ABOVE", "BLOCK_ONLY_HIGH", "BLOCK_NONE"]>;
|
|
297
|
+
}, import("zod").ZodTypeAny, "passthrough">>, "many">>;
|
|
298
|
+
vertexRetrieval: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
299
|
+
datastore: import("zod").ZodObject<{
|
|
300
|
+
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
301
|
+
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
302
|
+
dataStoreId: import("zod").ZodString;
|
|
303
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
304
|
+
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
305
|
+
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
306
|
+
dataStoreId: import("zod").ZodString;
|
|
307
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
308
|
+
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
309
|
+
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
310
|
+
dataStoreId: import("zod").ZodString;
|
|
311
|
+
}, import("zod").ZodTypeAny, "passthrough">>;
|
|
312
|
+
disableAttribution: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
313
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
314
|
+
datastore: import("zod").ZodObject<{
|
|
315
|
+
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
316
|
+
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
317
|
+
dataStoreId: import("zod").ZodString;
|
|
318
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
319
|
+
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
320
|
+
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
321
|
+
dataStoreId: import("zod").ZodString;
|
|
322
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
323
|
+
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
324
|
+
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
325
|
+
dataStoreId: import("zod").ZodString;
|
|
326
|
+
}, import("zod").ZodTypeAny, "passthrough">>;
|
|
327
|
+
disableAttribution: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
328
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
329
|
+
datastore: import("zod").ZodObject<{
|
|
330
|
+
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
331
|
+
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
332
|
+
dataStoreId: import("zod").ZodString;
|
|
333
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
334
|
+
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
335
|
+
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
336
|
+
dataStoreId: import("zod").ZodString;
|
|
337
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
338
|
+
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
339
|
+
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
340
|
+
dataStoreId: import("zod").ZodString;
|
|
341
|
+
}, import("zod").ZodTypeAny, "passthrough">>;
|
|
342
|
+
disableAttribution: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
343
|
+
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
344
|
+
googleSearchRetrieval: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
345
|
+
disableAttribution: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
346
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
347
|
+
disableAttribution: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
348
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
349
|
+
disableAttribution: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
350
|
+
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
351
|
+
functionCallingConfig: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
352
|
+
mode: import("zod").ZodOptional<import("zod").ZodEnum<["MODE_UNSPECIFIED", "AUTO", "ANY", "NONE"]>>;
|
|
353
|
+
allowedFunctionNames: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
354
|
+
streamFunctionCallArguments: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
355
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
356
|
+
mode: import("zod").ZodOptional<import("zod").ZodEnum<["MODE_UNSPECIFIED", "AUTO", "ANY", "NONE"]>>;
|
|
357
|
+
allowedFunctionNames: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
358
|
+
streamFunctionCallArguments: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
359
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
360
|
+
mode: import("zod").ZodOptional<import("zod").ZodEnum<["MODE_UNSPECIFIED", "AUTO", "ANY", "NONE"]>>;
|
|
361
|
+
allowedFunctionNames: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
362
|
+
streamFunctionCallArguments: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
363
|
+
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
364
|
+
retrievalConfig: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
365
|
+
latLng: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
366
|
+
latitude: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
367
|
+
longitude: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
368
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
369
|
+
latitude?: number | undefined;
|
|
370
|
+
longitude?: number | undefined;
|
|
371
|
+
}, {
|
|
372
|
+
latitude?: number | undefined;
|
|
373
|
+
longitude?: number | undefined;
|
|
374
|
+
}>>;
|
|
375
|
+
languageCode: import("zod").ZodOptional<import("zod").ZodString>;
|
|
376
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
377
|
+
latLng: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
378
|
+
latitude: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
379
|
+
longitude: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
380
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
381
|
+
latitude?: number | undefined;
|
|
382
|
+
longitude?: number | undefined;
|
|
383
|
+
}, {
|
|
384
|
+
latitude?: number | undefined;
|
|
385
|
+
longitude?: number | undefined;
|
|
386
|
+
}>>;
|
|
387
|
+
languageCode: import("zod").ZodOptional<import("zod").ZodString>;
|
|
388
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
389
|
+
latLng: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
390
|
+
latitude: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
391
|
+
longitude: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
392
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
393
|
+
latitude?: number | undefined;
|
|
394
|
+
longitude?: number | undefined;
|
|
395
|
+
}, {
|
|
396
|
+
latitude?: number | undefined;
|
|
397
|
+
longitude?: number | undefined;
|
|
398
|
+
}>>;
|
|
399
|
+
languageCode: import("zod").ZodOptional<import("zod").ZodString>;
|
|
400
|
+
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
401
|
+
thinkingConfig: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
402
|
+
includeThoughts: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
403
|
+
thinkingBudget: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
404
|
+
thinkingLevel: import("zod").ZodOptional<import("zod").ZodEnum<["MINIMAL", "LOW", "MEDIUM", "HIGH"]>>;
|
|
405
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
406
|
+
includeThoughts: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
407
|
+
thinkingBudget: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
408
|
+
thinkingLevel: import("zod").ZodOptional<import("zod").ZodEnum<["MINIMAL", "LOW", "MEDIUM", "HIGH"]>>;
|
|
409
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
410
|
+
includeThoughts: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
411
|
+
thinkingBudget: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
412
|
+
thinkingLevel: import("zod").ZodOptional<import("zod").ZodEnum<["MINIMAL", "LOW", "MEDIUM", "HIGH"]>>;
|
|
413
|
+
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
414
|
+
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
415
|
+
export type GeminiModelReference = typeof geminiModelReference;
|
|
416
|
+
export type GeminiModelConfig = SimplifyDeep<OmitIndexSignature<Parameters<GeminiModelReference['withConfig']>[0]>>;
|
|
2
417
|
export declare abstract class VertexAiMultiLocationOptions {
|
|
3
418
|
/** The Google Cloud locations to use for routing. */
|
|
4
419
|
locations: string[];
|
|
@@ -19,3 +434,4 @@ export declare abstract class VertexAiMultiLocationOptions {
|
|
|
19
434
|
*/
|
|
20
435
|
tokenLimitThreshold?: number;
|
|
21
436
|
}
|
|
437
|
+
export {};
|
package/ai/genkit/types.js
CHANGED