@@ -27,7 +27,7 @@ export class AIError extends FirebaseError {
27
27
}
28
28
29
29
// @public
30
- const AIErrorCode: {
30
+ export const AIErrorCode: {
31
31
readonly ERROR: " error" ;
32
32
readonly REQUEST_ERROR: " request-error" ;
33
33
readonly RESPONSE_ERROR: " response-error" ;
@@ -44,11 +44,7 @@ const AIErrorCode: {
44
44
};
45
45
46
46
// @public
47
- type AIErrorCode = (typeof AIErrorCode )[keyof typeof AIErrorCode ];
48
-
49
- export { AIErrorCode }
50
-
51
- export { AIErrorCode as VertexAIErrorCode }
47
+ export type AIErrorCode = (typeof AIErrorCode )[keyof typeof AIErrorCode ];
52
48
53
49
// @public
54
50
export abstract class AIModel {
@@ -293,7 +289,7 @@ export interface FunctionCallPart {
293
289
export interface FunctionDeclaration {
294
290
description: string ;
295
291
name: string ;
296
- parameters? : ObjectSchemaInterface ;
292
+ parameters? : ObjectSchema | ObjectSchemaRequest ;
297
293
}
298
294
299
295
// @public
@@ -393,6 +389,7 @@ export interface GenerationConfig {
393
389
stopSequences? : string [];
394
390
// (undocumented)
395
391
temperature? : number ;
392
+ thinkingConfig? : ThinkingConfig ;
396
393
// (undocumented)
397
394
topK? : number ;
398
395
// (undocumented)
@@ -436,9 +433,6 @@ export function getGenerativeModel(ai: AI, modelParams: ModelParams, requestOpti
436
433
// @beta
437
434
export function getImagenModel(ai : AI , modelParams : ImagenModelParams , requestOptions ? : RequestOptions ): ImagenModel ;
438
435
439
- // @public @deprecated (undocumented)
440
- export function getVertexAI(app ? : FirebaseApp , options ? : VertexAIOptions ): VertexAI ;
441
-
442
436
// @public
443
437
export class GoogleAIBackend extends Backend {
444
438
constructor ();
@@ -498,6 +492,15 @@ export interface GoogleAIGenerateContentResponse {
498
492
usageMetadata? : UsageMetadata ;
499
493
}
500
494
495
+ // @public
496
+ export interface GoogleSearch {
497
+ }
498
+
499
+ // @public
500
+ export interface GoogleSearchTool {
501
+ googleSearch: GoogleSearch ;
502
+ }
503
+
501
504
// @public @deprecated (undocumented)
502
505
export interface GroundingAttribution {
503
506
// (undocumented)
@@ -510,16 +513,29 @@ export interface GroundingAttribution {
510
513
web? : WebAttribution ;
511
514
}
512
515
516
+ // @public
517
+ export interface GroundingChunk {
518
+ web? : WebGroundingChunk ;
519
+ }
520
+
513
521
// @public
514
522
export interface GroundingMetadata {
515
523
// @deprecated (undocumented)
516
524
groundingAttributions: GroundingAttribution [];
517
- // (undocumented)
525
+ groundingChunks? : GroundingChunk [];
526
+ groundingSupports? : GroundingSupport [];
527
+ // @deprecated (undocumented)
518
528
retrievalQueries? : string [];
519
- // (undocumented)
529
+ searchEntryPoint ? : SearchEntrypoint ;
520
530
webSearchQueries? : string [];
521
531
}
522
532
533
+ // @public
534
+ export interface GroundingSupport {
535
+ groundingChunkIndices? : number [];
536
+ segment? : Segment ;
537
+ }
538
+
523
539
// @public
524
540
export const HarmBlockMethod: {
525
541
readonly SEVERITY: " SEVERITY" ;
@@ -738,9 +754,8 @@ export class ObjectSchema extends Schema {
738
754
}
739
755
740
756
// @public
741
- export interface ObjectSchemaInterface extends SchemaInterface {
742
- // (undocumented)
743
- optionalProperties? : string [];
757
+ export interface ObjectSchemaRequest extends SchemaRequest {
758
+ optionalProperties? : never ;
744
759
// (undocumented)
745
760
type: ' object' ;
746
761
}
@@ -896,14 +911,17 @@ export const SchemaType: {
896
911
// @public
897
912
export type SchemaType = (typeof SchemaType )[keyof typeof SchemaType ];
898
913
899
- // @public (undocumented)
914
+ // @public
915
+ export interface SearchEntrypoint {
916
+ renderedContent? : string ;
917
+ }
918
+
919
+ // @public
900
920
export interface Segment {
901
- // (undocumented)
902
921
endIndex: number ;
903
- // (undocumented)
904
922
partIndex: number ;
905
- // (undocumented)
906
923
startIndex: number ;
924
+ text: string ;
907
925
}
908
926
909
927
// @public
@@ -940,7 +958,12 @@ export interface TextPart {
940
958
}
941
959
942
960
// @public
943
- export type Tool = FunctionDeclarationsTool ;
961
+ export interface ThinkingConfig {
962
+ thinkingBudget? : number ;
963
+ }
964
+
965
+ // @public
966
+ export type Tool = FunctionDeclarationsTool | GoogleSearchTool ;
944
967
945
968
// @public
946
969
export interface ToolConfig {
@@ -961,31 +984,17 @@ export interface UsageMetadata {
961
984
promptTokenCount: number ;
962
985
// (undocumented)
963
986
promptTokensDetails? : ModalityTokenCount [];
987
+ thoughtsTokenCount? : number ;
964
988
// (undocumented)
965
989
totalTokenCount: number ;
966
990
}
967
991
968
- // @public @deprecated (undocumented)
969
- export type VertexAI = AI ;
970
-
971
992
// @public
972
993
export class VertexAIBackend extends Backend {
973
994
constructor (location ? : string );
974
995
readonly location: string ;
975
996
}
976
997
977
- // @public @deprecated (undocumented)
978
- export const VertexAIError: typeof AIError ;
979
-
980
- // @public @deprecated (undocumented)
981
- export const VertexAIModel: typeof AIModel ;
982
-
983
- // @public
984
- export interface VertexAIOptions {
985
- // (undocumented)
986
- location? : string ;
987
- }
988
-
989
998
// @public
990
999
export interface VideoMetadata {
991
1000
endOffset: string ;
@@ -1000,5 +1009,12 @@ export interface WebAttribution {
1000
1009
uri: string ;
1001
1010
}
1002
1011
1012
+ // @public
1013
+ export interface WebGroundingChunk {
1014
+ domain? : string ;
1015
+ title? : string ;
1016
+ uri? : string ;
1017
+ }
1018
+
1003
1019
1004
1020
```
0 commit comments