@google/genai 1.51.0 → 1.52.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/genai.d.ts +31 -0
- package/dist/index.cjs +51 -6
- package/dist/index.mjs +51 -6
- package/dist/index.mjs.map +1 -1
- package/dist/node/index.cjs +51 -6
- package/dist/node/index.mjs +51 -6
- package/dist/node/index.mjs.map +1 -1
- package/dist/node/node.d.ts +31 -0
- package/dist/tokenizer/node.mjs.map +1 -1
- package/dist/vertex_internal/index.cjs +115 -116
- package/dist/vertex_internal/index.cjs.map +1 -1
- package/dist/vertex_internal/index.d.ts +22 -0
- package/dist/vertex_internal/index.js +115 -116
- package/dist/vertex_internal/index.js.map +1 -1
- package/dist/web/index.mjs +51 -6
- package/dist/web/index.mjs.map +1 -1
- package/dist/web/web.d.ts +31 -0
- package/package.json +1 -1
package/dist/web/web.d.ts
CHANGED
|
@@ -2595,6 +2595,10 @@ export declare interface CreateFileSearchStoreConfig {
|
|
|
2595
2595
|
/** The human-readable display name for the file search store.
|
|
2596
2596
|
*/
|
|
2597
2597
|
displayName?: string;
|
|
2598
|
+
/** The embedding model to use for the FileSearchStore.
|
|
2599
|
+
Format: `models/{model}`. If not specified, the default embedding model will be used.
|
|
2600
|
+
*/
|
|
2601
|
+
embeddingModel?: string;
|
|
2598
2602
|
}
|
|
2599
2603
|
|
|
2600
2604
|
/** Config for file_search_stores.create parameters. */
|
|
@@ -3211,6 +3215,19 @@ export declare interface DownloadFileParameters {
|
|
|
3211
3215
|
config?: DownloadFileConfig;
|
|
3212
3216
|
}
|
|
3213
3217
|
|
|
3218
|
+
/** Used to override the default configuration. */
|
|
3219
|
+
export declare interface DownloadMediaConfig {
|
|
3220
|
+
/** Used to override HTTP request options. */
|
|
3221
|
+
httpOptions?: HttpOptions;
|
|
3222
|
+
/** Abort signal which can be used to cancel the request.
|
|
3223
|
+
|
|
3224
|
+
NOTE: AbortSignal is a client-only operation. Using it to cancel an
|
|
3225
|
+
operation will not cancel the request in the service. You will still
|
|
3226
|
+
be charged usage for any applicable operations.
|
|
3227
|
+
*/
|
|
3228
|
+
abortSignal?: AbortSignal;
|
|
3229
|
+
}
|
|
3230
|
+
|
|
3214
3231
|
/**
|
|
3215
3232
|
* Configuration for dynamic agents.
|
|
3216
3233
|
*/
|
|
@@ -3945,6 +3962,8 @@ export declare interface FileSearchStore {
|
|
|
3945
3962
|
/** The size of raw bytes ingested into the FileSearchStore. This is the
|
|
3946
3963
|
total size of all the documents in the FileSearchStore. */
|
|
3947
3964
|
sizeBytes?: string;
|
|
3965
|
+
/** The embedding model used by the FileSearchStore. */
|
|
3966
|
+
embeddingModel?: string;
|
|
3948
3967
|
}
|
|
3949
3968
|
|
|
3950
3969
|
declare class FileSearchStores extends BaseModule {
|
|
@@ -4003,6 +4022,15 @@ declare class FileSearchStores extends BaseModule {
|
|
|
4003
4022
|
* ```
|
|
4004
4023
|
*/
|
|
4005
4024
|
uploadToFileSearchStore(params: types.UploadToFileSearchStoreParameters): Promise<types.UploadToFileSearchStoreOperation>;
|
|
4025
|
+
/**
|
|
4026
|
+
* Downloads media using a Media ID or URI.
|
|
4027
|
+
* This method is only supported in the Gemini Developer client.
|
|
4028
|
+
*
|
|
4029
|
+
* @param uri - The URI or Media ID of the blob.
|
|
4030
|
+
* @param config - Optional configuration for the download.
|
|
4031
|
+
* @returns A promise that resolves to the blob data as a Uint8Array.
|
|
4032
|
+
*/
|
|
4033
|
+
downloadMedia(uri: string, config?: types.DownloadMediaConfig): Promise<Uint8Array>;
|
|
4006
4034
|
/**
|
|
4007
4035
|
* Creates a File Search Store.
|
|
4008
4036
|
*
|
|
@@ -5819,6 +5847,8 @@ export declare interface GroundingChunkRetrievedContext {
|
|
|
5819
5847
|
fileSearchStore?: string;
|
|
5820
5848
|
/** Optional. Page number of the retrieved context. This field is not supported in Vertex AI. */
|
|
5821
5849
|
pageNumber?: number;
|
|
5850
|
+
/** Optional. Media ID. This field is not supported in Vertex AI. */
|
|
5851
|
+
mediaId?: string;
|
|
5822
5852
|
}
|
|
5823
5853
|
|
|
5824
5854
|
/** A list of string values. This data type is not supported in Vertex AI. */
|
|
@@ -11753,6 +11783,7 @@ declare namespace types {
|
|
|
11753
11783
|
EmbedContentParameters,
|
|
11754
11784
|
UploadToFileSearchStoreResponse,
|
|
11755
11785
|
UploadToFileSearchStoreOperation,
|
|
11786
|
+
DownloadMediaConfig,
|
|
11756
11787
|
BlobImageUnion,
|
|
11757
11788
|
PartUnion,
|
|
11758
11789
|
PartListUnion,
|