@google/genai 1.23.0 → 1.24.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 +19 -0
- package/dist/index.cjs +75 -11
- package/dist/index.mjs +75 -11
- package/dist/index.mjs.map +1 -1
- package/dist/node/index.cjs +75 -11
- package/dist/node/index.mjs +75 -11
- package/dist/node/index.mjs.map +1 -1
- package/dist/node/node.d.ts +19 -0
- package/dist/web/index.mjs +75 -11
- package/dist/web/index.mjs.map +1 -1
- package/dist/web/web.d.ts +19 -0
- package/package.json +1 -1
package/dist/web/web.d.ts
CHANGED
|
@@ -3428,6 +3428,8 @@ export declare interface GoogleGenAIOptions {
|
|
|
3428
3428
|
export declare interface GoogleMaps {
|
|
3429
3429
|
/** Optional. Auth config for the Google Maps tool. */
|
|
3430
3430
|
authConfig?: AuthConfig;
|
|
3431
|
+
/** Optional. If true, include the widget context token in the response. */
|
|
3432
|
+
enableWidget?: boolean;
|
|
3431
3433
|
}
|
|
3432
3434
|
|
|
3433
3435
|
/** The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). */
|
|
@@ -3521,6 +3523,10 @@ export declare interface GroundingChunkMapsPlaceAnswerSourcesReviewSnippet {
|
|
|
3521
3523
|
relativePublishTimeDescription?: string;
|
|
3522
3524
|
/** A reference representing this place review which may be used to look up this place review again. */
|
|
3523
3525
|
review?: string;
|
|
3526
|
+
/** Id of the review referencing the place. */
|
|
3527
|
+
reviewId?: string;
|
|
3528
|
+
/** Title of the review. */
|
|
3529
|
+
title?: string;
|
|
3524
3530
|
}
|
|
3525
3531
|
|
|
3526
3532
|
/** Chunk from context retrieved by the retrieval tools. */
|
|
@@ -3561,10 +3567,20 @@ export declare interface GroundingMetadata {
|
|
|
3561
3567
|
retrievalQueries?: string[];
|
|
3562
3568
|
/** Optional. Google search entry for the following-up web searches. */
|
|
3563
3569
|
searchEntryPoint?: SearchEntryPoint;
|
|
3570
|
+
/** Optional. Output only. List of source flagging uris. This is currently populated only for Google Maps grounding. */
|
|
3571
|
+
sourceFlaggingUris?: GroundingMetadataSourceFlaggingUri[];
|
|
3564
3572
|
/** Optional. Web search queries for the following-up web search. */
|
|
3565
3573
|
webSearchQueries?: string[];
|
|
3566
3574
|
}
|
|
3567
3575
|
|
|
3576
|
+
/** Source content flagging uri for a place or review. This is currently populated only for Google Maps grounding. */
|
|
3577
|
+
export declare interface GroundingMetadataSourceFlaggingUri {
|
|
3578
|
+
/** A link where users can flag a problem with the source (place or review). */
|
|
3579
|
+
flagContentUri?: string;
|
|
3580
|
+
/** Id of the place or review. */
|
|
3581
|
+
sourceId?: string;
|
|
3582
|
+
}
|
|
3583
|
+
|
|
3568
3584
|
/** Grounding support. */
|
|
3569
3585
|
export declare interface GroundingSupport {
|
|
3570
3586
|
/** Confidence score of the support references. Ranges from 0 to 1. 1 is the most confident. For Gemini 2.0 and before, this list must have the same size as the grounding_chunk_indices. For Gemini 2.5 and after, this list will be empty and should be ignored. */
|
|
@@ -3864,6 +3880,8 @@ export declare interface InlinedRequest {
|
|
|
3864
3880
|
/** Content of the request.
|
|
3865
3881
|
*/
|
|
3866
3882
|
contents?: ContentListUnion;
|
|
3883
|
+
/** The metadata to be associated with the request. */
|
|
3884
|
+
metadata?: Record<string, string>;
|
|
3867
3885
|
/** Configuration that contains optional model parameters.
|
|
3868
3886
|
*/
|
|
3869
3887
|
config?: GenerateContentConfig;
|
|
@@ -7334,6 +7352,7 @@ declare namespace types {
|
|
|
7334
7352
|
GroundingSupport,
|
|
7335
7353
|
RetrievalMetadata,
|
|
7336
7354
|
SearchEntryPoint,
|
|
7355
|
+
GroundingMetadataSourceFlaggingUri,
|
|
7337
7356
|
GroundingMetadata,
|
|
7338
7357
|
LogprobsResultCandidate,
|
|
7339
7358
|
LogprobsResultTopCandidates,
|