firebase-functions 7.2.2 → 7.2.3
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/lib/common/providers/tasks.js +1 -0
- package/lib/common/utilities/path-pattern.js +12 -3
- package/lib/esm/common/providers/tasks.mjs +1 -0
- package/lib/esm/common/utilities/path-pattern.mjs +11 -3
- package/lib/esm/v2/compat.mjs +19 -59
- package/lib/esm/v2/index.doc.mjs +1 -1
- package/lib/esm/v2/index.mjs +2 -2
- package/lib/esm/v2/providers/ai/index.mjs +187 -0
- package/lib/esm/v2/providers/ai/types/gemini/v1beta/index.mjs +6 -0
- package/lib/esm/v2/providers/ai/types/vertex/v1beta1/index.mjs +6 -0
- package/lib/esm/v2/providers/database.mjs +35 -2
- package/lib/esm/v2/providers/firestore.mjs +38 -6
- package/lib/esm/v2/providers/https.mjs +10 -2
- package/lib/esm/v2/providers/pubsub.mjs +41 -2
- package/lib/esm/v2/providers/remoteConfig.mjs +18 -1
- package/lib/esm/v2/providers/scheduler.mjs +12 -0
- package/lib/esm/v2/providers/storage.mjs +24 -1
- package/lib/v2/compat.d.ts +14 -12
- package/lib/v2/compat.js +19 -58
- package/lib/v2/index.d.ts +0 -1
- package/lib/v2/index.doc.js +1 -1
- package/lib/v2/index.js +2 -2
- package/lib/v2/providers/ai/index.d.ts +53 -0
- package/lib/v2/providers/ai/index.js +198 -0
- package/lib/v2/providers/ai/types/gemini/v1beta/index.d.ts +817 -0
- package/lib/v2/providers/ai/types/gemini/v1beta/index.js +8 -0
- package/lib/v2/providers/ai/types/vertex/v1beta1/index.d.ts +850 -0
- package/lib/v2/providers/ai/types/vertex/v1beta1/index.js +8 -0
- package/lib/v2/providers/database.d.ts +61 -4
- package/lib/v2/providers/database.js +35 -2
- package/lib/v2/providers/firestore.d.ts +127 -0
- package/lib/v2/providers/firestore.js +38 -5
- package/lib/v2/providers/https.d.ts +2 -2
- package/lib/v2/providers/https.js +10 -2
- package/lib/v2/providers/pubsub.d.ts +18 -4
- package/lib/v2/providers/pubsub.js +41 -2
- package/lib/v2/providers/remoteConfig.d.ts +16 -0
- package/lib/v2/providers/remoteConfig.js +18 -1
- package/lib/v2/providers/scheduler.d.ts +21 -0
- package/lib/v2/providers/scheduler.js +12 -0
- package/lib/v2/providers/storage.d.ts +127 -0
- package/lib/v2/providers/storage.js +24 -1
- package/lib/v2/providers/tasks.d.ts +20 -1
- package/package.json +1 -1
|
@@ -0,0 +1,850 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2024 Google LLC
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
/** This config is shared for all tools provided in the request. */
|
|
18
|
+
export interface ToolConfig {
|
|
19
|
+
/** Function calling config. */
|
|
20
|
+
functionCallingConfig?: FunctionCallingConfig;
|
|
21
|
+
}
|
|
22
|
+
declare enum FunctionCallingMode {
|
|
23
|
+
/** Unspecified function calling mode. This value should not be used. */
|
|
24
|
+
MODE_UNSPECIFIED = "MODE_UNSPECIFIED",
|
|
25
|
+
/**
|
|
26
|
+
* Default model behavior, model decides to predict either function calls
|
|
27
|
+
* or natural language response.
|
|
28
|
+
*/
|
|
29
|
+
AUTO = "AUTO",
|
|
30
|
+
/**
|
|
31
|
+
* Model is constrained to always predicting function calls only.
|
|
32
|
+
* If "allowedFunctionNames" are set, the predicted function calls will be
|
|
33
|
+
* limited to any one of "allowedFunctionNames", else the predicted
|
|
34
|
+
* function calls will be any one of the provided "function_declarations".
|
|
35
|
+
*/
|
|
36
|
+
ANY = "ANY",
|
|
37
|
+
/**
|
|
38
|
+
* Model will not predict any function calls. Model behavior is same as when
|
|
39
|
+
* not passing any function declarations.
|
|
40
|
+
*/
|
|
41
|
+
NONE = "NONE"
|
|
42
|
+
}
|
|
43
|
+
export interface FunctionCallingConfig {
|
|
44
|
+
/** Optional. Function calling mode. */
|
|
45
|
+
mode?: FunctionCallingMode;
|
|
46
|
+
/**
|
|
47
|
+
* Optional. Function names to call. Only set when the Mode is ANY. Function
|
|
48
|
+
* names should match [FunctionDeclaration.name]. With mode set to ANY, model
|
|
49
|
+
* will predict a function call from the set of function names provided.
|
|
50
|
+
*/
|
|
51
|
+
allowedFunctionNames?: string[];
|
|
52
|
+
}
|
|
53
|
+
declare enum SchemaType {
|
|
54
|
+
/** String type. */
|
|
55
|
+
STRING = "STRING",
|
|
56
|
+
/** Number type. */
|
|
57
|
+
NUMBER = "NUMBER",
|
|
58
|
+
/** Integer type. */
|
|
59
|
+
INTEGER = "INTEGER",
|
|
60
|
+
/** Boolean type. */
|
|
61
|
+
BOOLEAN = "BOOLEAN",
|
|
62
|
+
/** Array type. */
|
|
63
|
+
ARRAY = "ARRAY",
|
|
64
|
+
/** Object type. */
|
|
65
|
+
OBJECT = "OBJECT"
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Schema is used to define the format of input/output data.
|
|
69
|
+
* Represents a select subset of an OpenAPI 3.0 schema object.
|
|
70
|
+
* More fields may be added in the future as needed.
|
|
71
|
+
*/
|
|
72
|
+
export interface Schema {
|
|
73
|
+
/**
|
|
74
|
+
* Optional. The type of the property. {@link
|
|
75
|
+
* SchemaType}.
|
|
76
|
+
*/
|
|
77
|
+
type?: SchemaType;
|
|
78
|
+
/** Optional. The format of the property. */
|
|
79
|
+
format?: string;
|
|
80
|
+
/** Optional. The description of the property. */
|
|
81
|
+
description?: string;
|
|
82
|
+
/** Optional. Whether the property is nullable. */
|
|
83
|
+
nullable?: boolean;
|
|
84
|
+
/** Optional. The items of the property. {@link Schema} */
|
|
85
|
+
items?: Schema;
|
|
86
|
+
/** Optional. The enum of the property. */
|
|
87
|
+
enum?: string[];
|
|
88
|
+
/** Optional. Map of {@link Schema}. */
|
|
89
|
+
properties?: {
|
|
90
|
+
[k: string]: Schema;
|
|
91
|
+
};
|
|
92
|
+
/** Optional. Array of required property. */
|
|
93
|
+
required?: string[];
|
|
94
|
+
/** Optional. The example of the property. */
|
|
95
|
+
example?: unknown;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Params used to call the generateContent method.
|
|
99
|
+
*/
|
|
100
|
+
export declare interface GenerateContentRequest extends BaseModelParams {
|
|
101
|
+
/** Array of {@link Content}.*/
|
|
102
|
+
contents: Content[];
|
|
103
|
+
/**
|
|
104
|
+
* Optional. The user provided system instructions for the model.
|
|
105
|
+
* Note: only text should be used in parts of {@link Content}
|
|
106
|
+
*/
|
|
107
|
+
systemInstruction?: string | Content;
|
|
108
|
+
/**
|
|
109
|
+
* Optional. The name of the cached content used as context to serve the prediction.
|
|
110
|
+
* This is the name of a `CachedContent` and not the cache object itself.
|
|
111
|
+
*/
|
|
112
|
+
cachedContent?: string;
|
|
113
|
+
/**
|
|
114
|
+
* Optional. Custom metadata labels for organizing API calls and managing costs at scale. See
|
|
115
|
+
* https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/add-labels-to-api-calls
|
|
116
|
+
*/
|
|
117
|
+
labels?: Record<string, string>;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Base params for initializing a model or calling GenerateContent.
|
|
121
|
+
*/
|
|
122
|
+
export declare interface BaseModelParams {
|
|
123
|
+
/** Optional. Array of {@link SafetySetting}. */
|
|
124
|
+
safetySettings?: SafetySetting[];
|
|
125
|
+
/** Optional. {@link GenerationConfig}. */
|
|
126
|
+
generationConfig?: GenerationConfig;
|
|
127
|
+
/** Optional. Array of {@link Tool}. */
|
|
128
|
+
tools?: Tool[];
|
|
129
|
+
/** Optional. This config is shared for all tools provided in the request. */
|
|
130
|
+
toolConfig?: ToolConfig;
|
|
131
|
+
/**
|
|
132
|
+
* Optional. The user provided system instructions for the model.
|
|
133
|
+
* Note: only text should be used in parts of {@link Content}
|
|
134
|
+
*/
|
|
135
|
+
systemInstruction?: string | Content;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Safety feedback for an entire request.
|
|
139
|
+
*/
|
|
140
|
+
export declare interface SafetySetting {
|
|
141
|
+
/** The harm category. {@link HarmCategory} */
|
|
142
|
+
category: HarmCategory;
|
|
143
|
+
/** The harm threshold. {@link HarmBlockThreshold} */
|
|
144
|
+
threshold: HarmBlockThreshold;
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Schema passed to `GenerationConfig.responseSchema`
|
|
148
|
+
* @public
|
|
149
|
+
*/
|
|
150
|
+
export interface ResponseSchema extends Schema {
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Configuration options for model generation and outputs.
|
|
154
|
+
*/
|
|
155
|
+
export declare interface GenerationConfig {
|
|
156
|
+
/** Optional. If true, the timestamp of the audio will be included in the response. */
|
|
157
|
+
audioTimestamp?: boolean;
|
|
158
|
+
/** Optional. Number of candidates to generate. */
|
|
159
|
+
candidateCount?: number;
|
|
160
|
+
/** Optional. Stop sequences. */
|
|
161
|
+
stopSequences?: string[];
|
|
162
|
+
/** Optional. The maximum number of output tokens to generate per message. */
|
|
163
|
+
maxOutputTokens?: number;
|
|
164
|
+
/** Optional. Controls the randomness of predictions. */
|
|
165
|
+
temperature?: number;
|
|
166
|
+
/** Optional. If specified, nucleus sampling will be used. */
|
|
167
|
+
topP?: number;
|
|
168
|
+
/** Optional. If specified, topK sampling will be used. */
|
|
169
|
+
topK?: number;
|
|
170
|
+
/**
|
|
171
|
+
* Optional. Positive values penalize tokens that repeatedly appear in the generated text, decreasing the probability of repeating content.
|
|
172
|
+
* This maximum value for frequencyPenalty is up to, but not including, 2.0. Its minimum value is -2.0.
|
|
173
|
+
* Supported by gemini-1.5-pro and gemini-1.5-flash only. */
|
|
174
|
+
frequencyPenalty?: number;
|
|
175
|
+
/**
|
|
176
|
+
* Optional. Output response mimetype of the generated candidate text.
|
|
177
|
+
* Supported mimetype:
|
|
178
|
+
* - `text/plain`: (default) Text output.
|
|
179
|
+
* - `application/json`: JSON response in the candidates.
|
|
180
|
+
* The model needs to be prompted to output the appropriate response type,
|
|
181
|
+
* otherwise the behavior is undefined.
|
|
182
|
+
*/
|
|
183
|
+
responseMimeType?: string;
|
|
184
|
+
/**
|
|
185
|
+
* Optional. The schema that generated candidate text must follow. For more
|
|
186
|
+
* information, see
|
|
187
|
+
* https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/control-generated-output.
|
|
188
|
+
* If set, a compatible responseMimeType must also be set.
|
|
189
|
+
*/
|
|
190
|
+
responseSchema?: ResponseSchema;
|
|
191
|
+
}
|
|
192
|
+
declare enum HarmCategory {
|
|
193
|
+
/** The harm category is unspecified. */
|
|
194
|
+
HARM_CATEGORY_UNSPECIFIED = "HARM_CATEGORY_UNSPECIFIED",
|
|
195
|
+
/** The harm category is hate speech. */
|
|
196
|
+
HARM_CATEGORY_HATE_SPEECH = "HARM_CATEGORY_HATE_SPEECH",
|
|
197
|
+
/** The harm category is dangerous content. */
|
|
198
|
+
HARM_CATEGORY_DANGEROUS_CONTENT = "HARM_CATEGORY_DANGEROUS_CONTENT",
|
|
199
|
+
/** The harm category is harassment. */
|
|
200
|
+
HARM_CATEGORY_HARASSMENT = "HARM_CATEGORY_HARASSMENT",
|
|
201
|
+
/** The harm category is sexually explicit content. */
|
|
202
|
+
HARM_CATEGORY_SEXUALLY_EXPLICIT = "HARM_CATEGORY_SEXUALLY_EXPLICIT"
|
|
203
|
+
}
|
|
204
|
+
declare enum HarmBlockThreshold {
|
|
205
|
+
/** Unspecified harm block threshold. */
|
|
206
|
+
HARM_BLOCK_THRESHOLD_UNSPECIFIED = "HARM_BLOCK_THRESHOLD_UNSPECIFIED",
|
|
207
|
+
/** Block low threshold and above (i.e. block more). */
|
|
208
|
+
BLOCK_LOW_AND_ABOVE = "BLOCK_LOW_AND_ABOVE",
|
|
209
|
+
/** Block medium threshold and above. */
|
|
210
|
+
BLOCK_MEDIUM_AND_ABOVE = "BLOCK_MEDIUM_AND_ABOVE",
|
|
211
|
+
/** Block only high threshold (i.e. block less). */
|
|
212
|
+
BLOCK_ONLY_HIGH = "BLOCK_ONLY_HIGH",
|
|
213
|
+
/** Block none. */
|
|
214
|
+
BLOCK_NONE = "BLOCK_NONE",
|
|
215
|
+
/** Turn off the safety filter. */
|
|
216
|
+
OFF = "OFF"
|
|
217
|
+
}
|
|
218
|
+
declare enum HarmProbability {
|
|
219
|
+
/** Harm probability unspecified. */
|
|
220
|
+
HARM_PROBABILITY_UNSPECIFIED = "HARM_PROBABILITY_UNSPECIFIED",
|
|
221
|
+
NEGLIGIBLE = "NEGLIGIBLE",
|
|
222
|
+
/** Low level of harm. */
|
|
223
|
+
LOW = "LOW",
|
|
224
|
+
/** Medium level of harm. */
|
|
225
|
+
MEDIUM = "MEDIUM",
|
|
226
|
+
/** High level of harm. */
|
|
227
|
+
HIGH = "HIGH"
|
|
228
|
+
}
|
|
229
|
+
declare enum HarmSeverity {
|
|
230
|
+
/** Harm severity unspecified. */
|
|
231
|
+
HARM_SEVERITY_UNSPECIFIED = "HARM_SEVERITY_UNSPECIFIED",
|
|
232
|
+
/** Negligible level of harm severity. */
|
|
233
|
+
HARM_SEVERITY_NEGLIGIBLE = "HARM_SEVERITY_NEGLIGIBLE",
|
|
234
|
+
/** Low level of harm severity. */
|
|
235
|
+
HARM_SEVERITY_LOW = "HARM_SEVERITY_LOW",
|
|
236
|
+
/** Medium level of harm severity. */
|
|
237
|
+
HARM_SEVERITY_MEDIUM = "HARM_SEVERITY_MEDIUM",
|
|
238
|
+
/** High level of harm severity. */
|
|
239
|
+
HARM_SEVERITY_HIGH = "HARM_SEVERITY_HIGH"
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* Safety rating corresponding to the generated content.
|
|
243
|
+
*/
|
|
244
|
+
export declare interface SafetyRating {
|
|
245
|
+
/** The harm category. {@link HarmCategory} */
|
|
246
|
+
category?: HarmCategory;
|
|
247
|
+
/** The harm probability. {@link HarmProbability} */
|
|
248
|
+
probability?: HarmProbability;
|
|
249
|
+
/** The harm probability score. */
|
|
250
|
+
probabilityScore?: number;
|
|
251
|
+
/** The harm severity.level {@link HarmSeverity} */
|
|
252
|
+
severity?: HarmSeverity;
|
|
253
|
+
/** The harm severity score. */
|
|
254
|
+
severityScore?: number;
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* The base structured datatype containing multi-part content of a message.
|
|
258
|
+
*/
|
|
259
|
+
export declare interface Content {
|
|
260
|
+
/** Array of {@link Part}. */
|
|
261
|
+
parts: Part[];
|
|
262
|
+
/** The producer of the content. */
|
|
263
|
+
role: string;
|
|
264
|
+
}
|
|
265
|
+
/**
|
|
266
|
+
* A part of a turn in a conversation with the model with a fixed MIME type.
|
|
267
|
+
* It has one of the following mutually exclusive fields:
|
|
268
|
+
* 1. text
|
|
269
|
+
* 2. inlineData
|
|
270
|
+
* 3. fileData
|
|
271
|
+
* 4. functionResponse
|
|
272
|
+
* 5. functionCall
|
|
273
|
+
*/
|
|
274
|
+
export interface BasePart {
|
|
275
|
+
}
|
|
276
|
+
/**
|
|
277
|
+
* A text part of a conversation with the model.
|
|
278
|
+
*/
|
|
279
|
+
export interface TextPart extends BasePart {
|
|
280
|
+
/** Only this property is expected for TextPart. */
|
|
281
|
+
text: string;
|
|
282
|
+
/** inlineData is not expected for TextPart. */
|
|
283
|
+
inlineData?: never;
|
|
284
|
+
/** fileData is not expected for TextPart. */
|
|
285
|
+
fileData?: never;
|
|
286
|
+
/** functionResponse is not expected for TextPart. */
|
|
287
|
+
functionResponse?: never;
|
|
288
|
+
/** functionCall is not expected for TextPart. */
|
|
289
|
+
functionCall?: never;
|
|
290
|
+
}
|
|
291
|
+
/**
|
|
292
|
+
* An inline data part of a conversation with the model.
|
|
293
|
+
*/
|
|
294
|
+
export interface InlineDataPart extends BasePart {
|
|
295
|
+
/** text is not expected for InlineDataPart. */
|
|
296
|
+
text?: never;
|
|
297
|
+
/** Only this property is expected for InlineDataPart. */
|
|
298
|
+
inlineData: GenerativeContentBlob;
|
|
299
|
+
/** fileData is not expected for InlineDataPart. */
|
|
300
|
+
fileData?: never;
|
|
301
|
+
/** functionResponse is not expected for InlineDataPart. */
|
|
302
|
+
functionResponse?: never;
|
|
303
|
+
/** functionCall is not expected for InlineDataPart. */
|
|
304
|
+
functionCall?: never;
|
|
305
|
+
}
|
|
306
|
+
/**
|
|
307
|
+
* URI based data.
|
|
308
|
+
*/
|
|
309
|
+
export interface FileData {
|
|
310
|
+
/** The IANA standard MIME type of the source data. */
|
|
311
|
+
mimeType: string;
|
|
312
|
+
/** URI of the file. */
|
|
313
|
+
fileUri: string;
|
|
314
|
+
}
|
|
315
|
+
/**
|
|
316
|
+
* A file data part of a conversation with the model.
|
|
317
|
+
*/
|
|
318
|
+
export interface FileDataPart extends BasePart {
|
|
319
|
+
/** text is not expected for FileDataPart. */
|
|
320
|
+
text?: never;
|
|
321
|
+
/** inlineData is not expected for FileDataPart. */
|
|
322
|
+
inlineData?: never;
|
|
323
|
+
/** Only this property is expected for FileDataPart. */
|
|
324
|
+
fileData: FileData;
|
|
325
|
+
/** functionResponse is not expected for FileDataPart. */
|
|
326
|
+
functionResponse?: never;
|
|
327
|
+
/** functionCall is not expected for FileDataPart. */
|
|
328
|
+
functionCall?: never;
|
|
329
|
+
}
|
|
330
|
+
/**
|
|
331
|
+
* A function response part of a conversation with the model.
|
|
332
|
+
*/
|
|
333
|
+
export interface FunctionResponsePart extends BasePart {
|
|
334
|
+
/** text is not expected for FunctionResponsePart. */
|
|
335
|
+
text?: never;
|
|
336
|
+
/** inlineData is not expected for FunctionResponsePart. */
|
|
337
|
+
inlineData?: never;
|
|
338
|
+
/** fileData is not expected for FunctionResponsePart. */
|
|
339
|
+
fileData?: never;
|
|
340
|
+
/** Only this property is expected for FunctionResponsePart. */
|
|
341
|
+
functionResponse: FunctionResponse;
|
|
342
|
+
/** functionCall is not expected for FunctionResponsePart. */
|
|
343
|
+
functionCall?: never;
|
|
344
|
+
}
|
|
345
|
+
/**
|
|
346
|
+
* A function call part of a conversation with the model.
|
|
347
|
+
*/
|
|
348
|
+
export interface FunctionCallPart extends BasePart {
|
|
349
|
+
/** text is not expected for FunctionCallPart. */
|
|
350
|
+
text?: never;
|
|
351
|
+
/** inlineData is not expected for FunctionCallPart. */
|
|
352
|
+
inlineData?: never;
|
|
353
|
+
/** fileData is not expected for FunctionCallPart. */
|
|
354
|
+
fileData?: never;
|
|
355
|
+
/** functionResponse is not expected for FunctionCallPart. */
|
|
356
|
+
functionResponse?: never;
|
|
357
|
+
/** Only this property is expected for FunctionCallPart. */
|
|
358
|
+
functionCall: FunctionCall;
|
|
359
|
+
}
|
|
360
|
+
/**
|
|
361
|
+
* A datatype containing media that is part of a multi-part {@link Content}
|
|
362
|
+
* message. A `Part` is a union type of {@link TextPart}, {@link InlineDataPart},
|
|
363
|
+
* {@link FileDataPart}, and {@link FunctionResponsePart}. A
|
|
364
|
+
* `Part` has one of the following mutually exclusive fields:
|
|
365
|
+
* 1. text
|
|
366
|
+
* 2. inlineData
|
|
367
|
+
* 3. fileData
|
|
368
|
+
* 4. functionResponse
|
|
369
|
+
*/
|
|
370
|
+
export declare type Part = TextPart | InlineDataPart | FileDataPart | FunctionResponsePart | FunctionCallPart;
|
|
371
|
+
/**
|
|
372
|
+
* Raw media bytes sent directly in the request. Text should not be sent as
|
|
373
|
+
* raw bytes.
|
|
374
|
+
*/
|
|
375
|
+
export declare interface GenerativeContentBlob {
|
|
376
|
+
/**
|
|
377
|
+
* The MIME type of the source data. The only accepted values: "image/png" or
|
|
378
|
+
* "image/jpeg".
|
|
379
|
+
*/
|
|
380
|
+
mimeType: string;
|
|
381
|
+
/** Base64 encoded data. */
|
|
382
|
+
data: string;
|
|
383
|
+
}
|
|
384
|
+
/**
|
|
385
|
+
* Usage metadata about response(s).
|
|
386
|
+
*/
|
|
387
|
+
export declare interface UsageMetadata {
|
|
388
|
+
/** Optional. Number of tokens in the request. */
|
|
389
|
+
promptTokenCount?: number;
|
|
390
|
+
/** Optional. Number of tokens in the response(s). */
|
|
391
|
+
candidatesTokenCount?: number;
|
|
392
|
+
/** Optional. Total number of tokens. */
|
|
393
|
+
totalTokenCount?: number;
|
|
394
|
+
/** Optional. Number of tokens in the cached content. */
|
|
395
|
+
cachedContentTokenCount?: number;
|
|
396
|
+
}
|
|
397
|
+
/**
|
|
398
|
+
* Content filter results for a prompt sent in the request.
|
|
399
|
+
*/
|
|
400
|
+
export declare interface PromptFeedback {
|
|
401
|
+
/** The reason why the response is blocked. {@link BlockReason}. */
|
|
402
|
+
blockReason: BlockedReason;
|
|
403
|
+
/** Array of {@link SafetyRating} */
|
|
404
|
+
safetyRatings: SafetyRating[];
|
|
405
|
+
/** A readable block reason message. */
|
|
406
|
+
blockReasonMessage?: string;
|
|
407
|
+
}
|
|
408
|
+
declare enum BlockedReason {
|
|
409
|
+
/** Unspecified blocked reason. */
|
|
410
|
+
BLOCKED_REASON_UNSPECIFIED = "BLOCK_REASON_UNSPECIFIED",
|
|
411
|
+
/** Candidates blocked due to safety. */
|
|
412
|
+
SAFETY = "SAFETY",
|
|
413
|
+
/** Candidates blocked due to other reason. */
|
|
414
|
+
OTHER = "OTHER",
|
|
415
|
+
/** terminology blocklist. */
|
|
416
|
+
BLOCKLIST = "BLOCKLIST",
|
|
417
|
+
/** Candidates blocked due to prohibited content. */
|
|
418
|
+
PROHIBITED_CONTENT = "PROHIBITED_CONTENT"
|
|
419
|
+
}
|
|
420
|
+
declare enum FinishReason {
|
|
421
|
+
/** The finish reason is unspecified. */
|
|
422
|
+
FINISH_REASON_UNSPECIFIED = "FINISH_REASON_UNSPECIFIED",
|
|
423
|
+
/** Natural stop point of the model or provided stop sequence. */
|
|
424
|
+
STOP = "STOP",
|
|
425
|
+
/** The maximum number of tokens as specified in the request was reached. */
|
|
426
|
+
MAX_TOKENS = "MAX_TOKENS",
|
|
427
|
+
/**
|
|
428
|
+
* The token generation was stopped as the response was flagged for safety
|
|
429
|
+
* reasons.
|
|
430
|
+
*/
|
|
431
|
+
SAFETY = "SAFETY",
|
|
432
|
+
/**
|
|
433
|
+
* The token generation was stopped as the response was flagged for
|
|
434
|
+
* unauthorized citations.
|
|
435
|
+
*/
|
|
436
|
+
RECITATION = "RECITATION",
|
|
437
|
+
/** All other reasons that stopped the token generation. */
|
|
438
|
+
OTHER = "OTHER",
|
|
439
|
+
/**
|
|
440
|
+
* The token generation was stopped as the response was flagged for the
|
|
441
|
+
* terms which are included from the terminology blocklist.
|
|
442
|
+
*/
|
|
443
|
+
BLOCKLIST = "BLOCKLIST",
|
|
444
|
+
/**
|
|
445
|
+
* The token generation was stopped as the response was flagged for
|
|
446
|
+
* the prohibited contents.
|
|
447
|
+
*/
|
|
448
|
+
PROHIBITED_CONTENT = "PROHIBITED_CONTENT",
|
|
449
|
+
/**
|
|
450
|
+
* The token generation was stopped as the response was flagged for
|
|
451
|
+
* Sensitive Personally Identifiable Information (SPII) contents.
|
|
452
|
+
*/
|
|
453
|
+
SPII = "SPII"
|
|
454
|
+
}
|
|
455
|
+
/**
|
|
456
|
+
* Response from the model supporting multiple candidates.
|
|
457
|
+
*/
|
|
458
|
+
export declare interface GenerateContentResponse {
|
|
459
|
+
/** Array of {@link GenerateContentCandidate}. */
|
|
460
|
+
candidates?: GenerateContentCandidate[];
|
|
461
|
+
/**
|
|
462
|
+
* Optional. This is only populated if there are no candidates due to a
|
|
463
|
+
* safety block. {@link PromptFeedback}.
|
|
464
|
+
*/
|
|
465
|
+
promptFeedback?: PromptFeedback;
|
|
466
|
+
/** Optional. {@link UsageMetadata}. */
|
|
467
|
+
usageMetadata?: UsageMetadata;
|
|
468
|
+
}
|
|
469
|
+
/**
|
|
470
|
+
* A response candidate generated from the model.
|
|
471
|
+
*/
|
|
472
|
+
export declare interface GenerateContentCandidate {
|
|
473
|
+
/** {@link Content}. */
|
|
474
|
+
content: Content;
|
|
475
|
+
/**
|
|
476
|
+
* Optional. The index of the candidate in the {@link
|
|
477
|
+
* GenerateContentResponse}.
|
|
478
|
+
*/
|
|
479
|
+
index: number;
|
|
480
|
+
/**
|
|
481
|
+
* Optional. The reason why the model stopped generating tokens. {@link
|
|
482
|
+
* FinishReason}.
|
|
483
|
+
*/
|
|
484
|
+
finishReason?: FinishReason;
|
|
485
|
+
/**
|
|
486
|
+
* Optional. A readable message describing why the model stopped generating
|
|
487
|
+
* tokens.
|
|
488
|
+
*/
|
|
489
|
+
finishMessage?: string;
|
|
490
|
+
/** Optional. Array of {@link SafetyRating}. */
|
|
491
|
+
safetyRatings?: SafetyRating[];
|
|
492
|
+
/** Optional. {@link CitationMetadata}. */
|
|
493
|
+
citationMetadata?: CitationMetadata;
|
|
494
|
+
/** Optional. {@link GroundingMetadata}. */
|
|
495
|
+
groundingMetadata?: GroundingMetadata;
|
|
496
|
+
}
|
|
497
|
+
/**
|
|
498
|
+
* A collection of source attributions for a piece of content.
|
|
499
|
+
*/
|
|
500
|
+
export declare interface CitationMetadata {
|
|
501
|
+
/** Array of {@link Citation}. */
|
|
502
|
+
citations: Citation[];
|
|
503
|
+
}
|
|
504
|
+
/**
|
|
505
|
+
* Represents a whole or partial calendar date, such as a birthday. The time of
|
|
506
|
+
* day and time zone are either specified elsewhere or are insignificant. The
|
|
507
|
+
* date is relative to the Gregorian Calendar. This can represent one of the
|
|
508
|
+
* following:
|
|
509
|
+
*
|
|
510
|
+
* A full date, with non-zero year, month, and day values.
|
|
511
|
+
* A month and day, with a zero year (for example, an anniversary).
|
|
512
|
+
* A year on its own, with a zero month and a zero day.
|
|
513
|
+
* A year and month, with a zero day (for example, a credit card expiration
|
|
514
|
+
* date).
|
|
515
|
+
*/
|
|
516
|
+
export declare interface GoogleDate {
|
|
517
|
+
/**
|
|
518
|
+
* Year of the date. Must be from 1 to 9999, or 0 to specify a date without a
|
|
519
|
+
* year.
|
|
520
|
+
*/
|
|
521
|
+
year?: number;
|
|
522
|
+
/**
|
|
523
|
+
* Month of the date. Must be from 1 to 12, or 0 to specify a year without a
|
|
524
|
+
* monthi and day.
|
|
525
|
+
*/
|
|
526
|
+
month?: number;
|
|
527
|
+
/**
|
|
528
|
+
* Day of the date. Must be from 1 to 31 and valid for the year and month.
|
|
529
|
+
* or 0 to specify a year by itself or a year and month where the day isn't
|
|
530
|
+
* significant
|
|
531
|
+
*/
|
|
532
|
+
day?: number;
|
|
533
|
+
}
|
|
534
|
+
/**
|
|
535
|
+
* Source attributions for content.
|
|
536
|
+
*/
|
|
537
|
+
export declare interface Citation {
|
|
538
|
+
/** Optional. Start index into the content. */
|
|
539
|
+
startIndex?: number;
|
|
540
|
+
/** Optional. End index into the content. */
|
|
541
|
+
endIndex?: number;
|
|
542
|
+
/** Optional. Url reference of the attribution. */
|
|
543
|
+
uri?: string;
|
|
544
|
+
/** Optional. Title of the attribution. */
|
|
545
|
+
title?: string;
|
|
546
|
+
/** Optional. License of the attribution. */
|
|
547
|
+
license?: string;
|
|
548
|
+
/** Optional. Publication date of the attribution. */
|
|
549
|
+
publicationDate?: GoogleDate;
|
|
550
|
+
}
|
|
551
|
+
/**
|
|
552
|
+
* Google search entry point.
|
|
553
|
+
*/
|
|
554
|
+
export declare interface SearchEntryPoint {
|
|
555
|
+
/**
|
|
556
|
+
* Optional. Web content snippet that can be embedded in a web page or an app
|
|
557
|
+
* webview.
|
|
558
|
+
*/
|
|
559
|
+
renderedContent?: string;
|
|
560
|
+
/** Optional. Base64 encoded JSON representing array of tuple. */
|
|
561
|
+
sdkBlob?: string;
|
|
562
|
+
}
|
|
563
|
+
/**
|
|
564
|
+
* Grounding chunk from the web.
|
|
565
|
+
*/
|
|
566
|
+
export declare interface GroundingChunkWeb {
|
|
567
|
+
/** Optional. URI reference of the grounding chunk. */
|
|
568
|
+
uri?: string;
|
|
569
|
+
/** Optional. Title of the grounding chunk. */
|
|
570
|
+
title?: string;
|
|
571
|
+
}
|
|
572
|
+
/**
|
|
573
|
+
* Grounding chunk from context retrieved by the retrieval tools.
|
|
574
|
+
*/
|
|
575
|
+
export declare interface GroundingChunkRetrievedContext {
|
|
576
|
+
/** Optional. URI reference of the attribution. */
|
|
577
|
+
uri?: string;
|
|
578
|
+
/** Optional. Title of the attribution. */
|
|
579
|
+
title?: string;
|
|
580
|
+
}
|
|
581
|
+
/**
|
|
582
|
+
* Grounding chunk.
|
|
583
|
+
*/
|
|
584
|
+
export declare interface GroundingChunk {
|
|
585
|
+
/** Optional. Grounding chunk from the web. */
|
|
586
|
+
web?: GroundingChunkWeb;
|
|
587
|
+
/**
|
|
588
|
+
* Optional. Grounding chunk from context retrieved by the retrieval tools.
|
|
589
|
+
*/
|
|
590
|
+
retrievedContext?: GroundingChunkRetrievedContext;
|
|
591
|
+
}
|
|
592
|
+
/**
|
|
593
|
+
* Grounding support segment.
|
|
594
|
+
*/
|
|
595
|
+
export declare interface GroundingSupportSegment {
|
|
596
|
+
/** Optional. The index of a Part object within its parent Content object. */
|
|
597
|
+
partIndex?: number;
|
|
598
|
+
/**
|
|
599
|
+
* Optional. Start index in the given Part, measured in bytes.
|
|
600
|
+
* Offset from the start of the Part, inclusive, starting at zero.
|
|
601
|
+
*/
|
|
602
|
+
startIndex?: number;
|
|
603
|
+
/**
|
|
604
|
+
* Optional. End index in the given Part, measured in bytes.
|
|
605
|
+
* Offset from the start of the Part, exclusive, starting at zero.
|
|
606
|
+
*/
|
|
607
|
+
endIndex?: number;
|
|
608
|
+
/** Optional. The text corresponding to the segment from the response. */
|
|
609
|
+
text?: string;
|
|
610
|
+
}
|
|
611
|
+
/**
|
|
612
|
+
* Grounding support.
|
|
613
|
+
*/
|
|
614
|
+
export declare interface GroundingSupport {
|
|
615
|
+
/** Optional. Segment of the content this support belongs to. */
|
|
616
|
+
segment?: GroundingSupportSegment;
|
|
617
|
+
/**
|
|
618
|
+
* Optional. A arrau of indices (into {@link GroundingChunk}) specifying the
|
|
619
|
+
* citations associated with the claim. For instance [1,3,4] means
|
|
620
|
+
* that grounding_chunk[1], grounding_chunk[3],
|
|
621
|
+
* grounding_chunk[4] are the retrieved content attributed to the claim.
|
|
622
|
+
*/
|
|
623
|
+
groundingChunkIndices?: number[];
|
|
624
|
+
/**
|
|
625
|
+
* Confidence score of the support references. Ranges from 0 to 1. 1 is the
|
|
626
|
+
* most confident. This list must have the same size as the
|
|
627
|
+
* groundingChunkIndices.
|
|
628
|
+
*/
|
|
629
|
+
confidenceScores?: number[];
|
|
630
|
+
}
|
|
631
|
+
/**
|
|
632
|
+
* A collection of grounding attributions for a piece of content.
|
|
633
|
+
*/
|
|
634
|
+
export declare interface GroundingMetadata {
|
|
635
|
+
/** Optional. Web search queries for the following-up web search. */
|
|
636
|
+
webSearchQueries?: string[];
|
|
637
|
+
/** Optional. Queries executed by the retrieval tools. */
|
|
638
|
+
retrievalQueries?: string[];
|
|
639
|
+
/** Optional. Google search entry for the following-up web searches. {@link SearchEntryPoint} */
|
|
640
|
+
searchEntryPoint?: SearchEntryPoint;
|
|
641
|
+
/**
|
|
642
|
+
* Optional. Array of supporting references retrieved from specified
|
|
643
|
+
* grounding source. {@link GroundingChunk}.
|
|
644
|
+
*/
|
|
645
|
+
groundingChunks?: GroundingChunk[];
|
|
646
|
+
/** Optional. Array of grounding support. {@link GroundingSupport}. */
|
|
647
|
+
groundingSupports?: GroundingSupport[];
|
|
648
|
+
}
|
|
649
|
+
/**
|
|
650
|
+
* A predicted FunctionCall returned from the model that contains a string
|
|
651
|
+
* representating the FunctionDeclaration.name with the parameters and their
|
|
652
|
+
* values.
|
|
653
|
+
*/
|
|
654
|
+
export declare interface FunctionCall {
|
|
655
|
+
/** The name of the function specified in FunctionDeclaration.name. */
|
|
656
|
+
name: string;
|
|
657
|
+
/** The arguments to pass to the function. */
|
|
658
|
+
args: object;
|
|
659
|
+
}
|
|
660
|
+
/**
|
|
661
|
+
* The result output of a FunctionCall that contains a string representing
|
|
662
|
+
* the FunctionDeclaration.name and a structured JSON object containing any
|
|
663
|
+
* output from the function call. It is used as context to the model.
|
|
664
|
+
*/
|
|
665
|
+
export declare interface FunctionResponse {
|
|
666
|
+
/** The name of the function specified in FunctionDeclaration.name. */
|
|
667
|
+
name: string;
|
|
668
|
+
/** The expected response from the model. */
|
|
669
|
+
response: object;
|
|
670
|
+
}
|
|
671
|
+
/**
|
|
672
|
+
* Structured representation of a function declaration as defined by the
|
|
673
|
+
* [OpenAPI 3.0 specification](https://spec.openapis.org/oas/v3.0.3). Included
|
|
674
|
+
* in this declaration are the function name and parameters. This
|
|
675
|
+
* FunctionDeclaration is a representation of a block of code that can be used
|
|
676
|
+
* as a Tool by the model and executed by the client.
|
|
677
|
+
*/
|
|
678
|
+
export declare interface FunctionDeclaration {
|
|
679
|
+
/**
|
|
680
|
+
* The name of the function to call. Must start with a letter or an
|
|
681
|
+
* underscore. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with
|
|
682
|
+
* a max length of 64.
|
|
683
|
+
*/
|
|
684
|
+
name: string;
|
|
685
|
+
/**
|
|
686
|
+
* Optional. Description and purpose of the function. Model uses it to decide
|
|
687
|
+
* how and whether to call the function.
|
|
688
|
+
*/
|
|
689
|
+
description?: string;
|
|
690
|
+
/**
|
|
691
|
+
* Optional. Describes the parameters to this function in JSON Schema Object
|
|
692
|
+
* format. Reflects the Open API 3.03 Parameter Object. string Key: the name
|
|
693
|
+
* of the parameter. Parameter names are case sensitive. Schema Value: the
|
|
694
|
+
* Schema defining the type used for the parameter. For function with no
|
|
695
|
+
* parameters, this can be left unset.
|
|
696
|
+
*
|
|
697
|
+
* @example with 1 required and 1 optional parameter: type: OBJECT properties:
|
|
698
|
+
* ```
|
|
699
|
+
* param1:
|
|
700
|
+
*
|
|
701
|
+
* type: STRING
|
|
702
|
+
* param2:
|
|
703
|
+
*
|
|
704
|
+
* type: INTEGER
|
|
705
|
+
* required:
|
|
706
|
+
*
|
|
707
|
+
* - param1
|
|
708
|
+
* ```
|
|
709
|
+
*/
|
|
710
|
+
parameters?: FunctionDeclarationSchema;
|
|
711
|
+
}
|
|
712
|
+
/**
|
|
713
|
+
* A FunctionDeclarationsTool is a piece of code that enables the system to
|
|
714
|
+
* interact with external systems to perform an action, or set of actions,
|
|
715
|
+
* outside of knowledge and scope of the model.
|
|
716
|
+
*/
|
|
717
|
+
export declare interface FunctionDeclarationsTool {
|
|
718
|
+
/**
|
|
719
|
+
* Optional. One or more function declarations
|
|
720
|
+
* to be passed to the model along with the current user query. Model may
|
|
721
|
+
* decide to call a subset of these functions by populating
|
|
722
|
+
* [FunctionCall][content.part.functionCall] in the response. User should
|
|
723
|
+
* provide a [FunctionResponse][content.part.functionResponse] for each
|
|
724
|
+
* function call in the next turn. Based on the function responses, Model will
|
|
725
|
+
* generate the final response back to the user. Maximum 64 function
|
|
726
|
+
* declarations can be provided.
|
|
727
|
+
*/
|
|
728
|
+
functionDeclarations?: FunctionDeclaration[];
|
|
729
|
+
}
|
|
730
|
+
/**
|
|
731
|
+
* Defines a retrieval tool that model can call to access external knowledge.
|
|
732
|
+
*/
|
|
733
|
+
export declare interface RetrievalTool {
|
|
734
|
+
/** Optional. {@link Retrieval}. */
|
|
735
|
+
retrieval?: Retrieval;
|
|
736
|
+
}
|
|
737
|
+
export declare interface VertexRagStore {
|
|
738
|
+
/**
|
|
739
|
+
* Optional. List of corpora for retrieval. Currently only support one corpus
|
|
740
|
+
* or multiple files from one corpus. In the future we may open up multiple
|
|
741
|
+
* corpora support.
|
|
742
|
+
*/
|
|
743
|
+
ragResources?: RagResource[];
|
|
744
|
+
/** Optional. Number of top k results to return from the selected corpora. */
|
|
745
|
+
similarityTopK?: number;
|
|
746
|
+
/**
|
|
747
|
+
* Optional. If set this field, results with vector distance smaller than
|
|
748
|
+
* this threshold will be returned.
|
|
749
|
+
*/
|
|
750
|
+
vectorDistanceThreshold?: number;
|
|
751
|
+
}
|
|
752
|
+
/**
|
|
753
|
+
* Config of Vertex RagStore grounding checking.
|
|
754
|
+
*/
|
|
755
|
+
export declare interface RagResource {
|
|
756
|
+
/**
|
|
757
|
+
* Optional. Vertex RAG Store corpus resource name.
|
|
758
|
+
*
|
|
759
|
+
* @example
|
|
760
|
+
* `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
|
|
761
|
+
*/
|
|
762
|
+
ragCorpus?: string;
|
|
763
|
+
/**
|
|
764
|
+
* Optional. Set this field to select the files under the ragCorpora for
|
|
765
|
+
* retrieval.
|
|
766
|
+
*/
|
|
767
|
+
ragFileIds?: string[];
|
|
768
|
+
}
|
|
769
|
+
/**
|
|
770
|
+
* Defines a retrieval tool that model can call to access external knowledge.
|
|
771
|
+
*/
|
|
772
|
+
export declare interface GoogleSearchRetrievalTool {
|
|
773
|
+
/** Optional. {@link GoogleSearchRetrieval}. */
|
|
774
|
+
googleSearchRetrieval?: GoogleSearchRetrieval;
|
|
775
|
+
}
|
|
776
|
+
/** Defines a tool that model can call to access external knowledge. */
|
|
777
|
+
export declare type Tool = FunctionDeclarationsTool | RetrievalTool | GoogleSearchRetrievalTool;
|
|
778
|
+
/**
|
|
779
|
+
* Defines a retrieval tool that model can call to access external knowledge.
|
|
780
|
+
*/
|
|
781
|
+
export declare interface Retrieval {
|
|
782
|
+
/**
|
|
783
|
+
* Optional. Set to use data source powered by Vertex AI Search. {@link
|
|
784
|
+
* VertexAISearch}.
|
|
785
|
+
*/
|
|
786
|
+
vertexAiSearch?: VertexAISearch;
|
|
787
|
+
/** Optional. Set to use data source powered by Vertex RAG store. */
|
|
788
|
+
vertexRagStore?: VertexRagStore;
|
|
789
|
+
/**
|
|
790
|
+
* Optional. Disable using the result from this tool in detecting grounding
|
|
791
|
+
* attribution. This does not affect how the result is given to the model for
|
|
792
|
+
* generation.
|
|
793
|
+
*/
|
|
794
|
+
disableAttribution?: boolean;
|
|
795
|
+
}
|
|
796
|
+
declare enum Mode {
|
|
797
|
+
MODE_UNSPECIFIED = "MODE_UNSPECIFIED",
|
|
798
|
+
MODE_DYNAMIC = "MODE_DYNAMIC"
|
|
799
|
+
}
|
|
800
|
+
/** Describes the options to customize dynamic retrieval. */
|
|
801
|
+
export declare interface DynamicRetrievalConfig {
|
|
802
|
+
/** Optional. The threshold to be used in dynamic retrieval. If not set, a system default value is used. */
|
|
803
|
+
dynamicThreshold?: number;
|
|
804
|
+
/** The mode of the predictor to be used in dynamic retrieval. */
|
|
805
|
+
mode?: Mode;
|
|
806
|
+
}
|
|
807
|
+
/**
|
|
808
|
+
* Tool to retrieve public web data for grounding, powered by Google.
|
|
809
|
+
*/
|
|
810
|
+
export declare interface GoogleSearchRetrieval {
|
|
811
|
+
/** Specifies the dynamic retrieval configuration for the given source. */
|
|
812
|
+
dynamicRetrievalConfig?: DynamicRetrievalConfig;
|
|
813
|
+
}
|
|
814
|
+
/**
|
|
815
|
+
* Retrieve from Vertex AI Search datastore for grounding.
|
|
816
|
+
*/
|
|
817
|
+
export declare interface VertexAISearch {
|
|
818
|
+
/**
|
|
819
|
+
* Fully-qualified Vertex AI Search's datastore resource ID. See
|
|
820
|
+
* https://cloud.google.com/vertex-ai-search-and-conversation
|
|
821
|
+
*
|
|
822
|
+
* @example
|
|
823
|
+
* "projects/<>/locations/<>/collections/<>/dataStores/<>"
|
|
824
|
+
*/
|
|
825
|
+
datastore: string;
|
|
826
|
+
}
|
|
827
|
+
/**
|
|
828
|
+
* Schema for parameters passed to {@link FunctionDeclaration.parameters}.
|
|
829
|
+
*/
|
|
830
|
+
export interface FunctionDeclarationSchema {
|
|
831
|
+
/** The type of the parameter. */
|
|
832
|
+
type: SchemaType;
|
|
833
|
+
/** The format of the parameter. */
|
|
834
|
+
properties: {
|
|
835
|
+
[k: string]: FunctionDeclarationSchemaProperty;
|
|
836
|
+
};
|
|
837
|
+
/** Optional. Description of the parameter. */
|
|
838
|
+
description?: string;
|
|
839
|
+
/** Optional. Array of required parameters. */
|
|
840
|
+
required?: string[];
|
|
841
|
+
}
|
|
842
|
+
/**
|
|
843
|
+
* FunctionDeclarationSchemaProperty is used to define the format of
|
|
844
|
+
* input/output data. Represents a select subset of an OpenAPI 3.0 schema object.
|
|
845
|
+
* More fields may be added in the future as needed.
|
|
846
|
+
*/
|
|
847
|
+
export type FunctionDeclarationSchemaProperty = Schema;
|
|
848
|
+
export declare const requestTypeName = "type.googleapis.com/google.cloud.aiplatform.v1beta1.GenerateContentRequest";
|
|
849
|
+
export declare const responseTypeName = "type.googleapis.com/google.cloud.aiplatform.v1beta1.GenerateContentResponse";
|
|
850
|
+
export {};
|