@@ -51,7 +51,8 @@ export declare interface VertexInit {
51
51
export declare interface GenerateContentRequest extends BaseModelParams {
52
52
/** Array of {@link Content}.*/
53
53
contents : Content [ ] ;
54
- /** Optional. The user provided system instructions for the model.
54
+ /**
55
+ * Optional. The user provided system instructions for the model.
55
56
* Note: only text should be used in parts of {@link Content}
56
57
*/
57
58
systemInstruction ?: string | Content ;
@@ -110,7 +111,8 @@ export declare interface GetGenerativeModelParams extends ModelParams {
110
111
tools ?: Tool [ ] ;
111
112
/** Optional. The request options to use for generation. */
112
113
requestOptions ?: RequestOptions ;
113
- /** Optional. The user provided system instructions for the model.
114
+ /**
115
+ * Optional. The user provided system instructions for the model.
114
116
* Note: only text should be used in parts of {@link Content}
115
117
*/
116
118
systemInstruction ?: string | Content ;
@@ -138,7 +140,8 @@ export declare interface BaseModelParams {
138
140
generationConfig ?: GenerationConfig ;
139
141
/** Optional. Array of {@link Tool}. */
140
142
tools ?: Tool [ ] ;
141
- /** Optional. The user provided system instructions for the model.
143
+ /**
144
+ * Optional. The user provided system instructions for the model.
142
145
* Note: only text should be used in parts of {@link Content}
143
146
*/
144
147
systemInstruction ?: string | Content ;
@@ -563,12 +566,20 @@ export declare interface CitationMetadata {
563
566
* date).
564
567
*/
565
568
export declare interface GoogleDate {
566
- /** Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year. */
569
+ /**
570
+ * Year of the date. Must be from 1 to 9999, or 0 to specify a date without a
571
+ * year.
572
+ */
567
573
year ?: number ;
568
- /** Month of the date. Must be from 1 to 12, or 0 to specify a year without a monthi and day. */
574
+ /**
575
+ * Month of the date. Must be from 1 to 12, or 0 to specify a year without a
576
+ * monthi and day.
577
+ */
569
578
month ?: number ;
570
- /** Day of the date. Must be from 1 to 31 and valid for the year and month.
571
- * or 0 to specify a year by itself or a year and month where the day isn't significant
579
+ /**
580
+ * Day of the date. Must be from 1 to 31 and valid for the year and month.
581
+ * or 0 to specify a year by itself or a year and month where the day isn't
582
+ * significant
572
583
*/
573
584
day ?: number ;
574
585
}
@@ -763,6 +774,40 @@ export declare interface RetrievalTool {
763
774
retrieval ?: Retrieval ;
764
775
}
765
776
777
+ export declare interface VertexRagStore {
778
+ /**
779
+ * Optional. List of corpora for retrieval. Currently only support one corpus
780
+ * or multiple files from one corpus. In the future we may open up multiple
781
+ * corpora support.
782
+ */
783
+ ragResources ?: RagResource [ ] ;
784
+
785
+ /** Optional. Number of top k results to return from the selected corpora. */
786
+ similarityTopK ?: number ;
787
+
788
+ /** Optional. If set this field, results with vector distance smaller than this threshold will be returned. */
789
+ vectorDistanceThreshold ?: number ;
790
+ }
791
+
792
+ /**
793
+ * Config of Vertex RagStore grounding checking.
794
+ */
795
+ export declare interface RagResource {
796
+ /**
797
+ * Optional. Vertex RAG Store corpus resource name.
798
+ *
799
+ * @example
800
+ * `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
801
+ */
802
+ ragCorpus ?: string ;
803
+
804
+ /**
805
+ * Optional. Set this field to select the files under the ragCorpora for
806
+ * retrieval.
807
+ */
808
+ ragFileIds ?: string [ ] ;
809
+ }
810
+
766
811
/**
767
812
* Defines a retrieval tool that model can call to access external knowledge.
768
813
*/
@@ -786,6 +831,10 @@ export declare interface Retrieval {
786
831
* VertexAISearch}.
787
832
*/
788
833
vertexAiSearch ?: VertexAISearch ;
834
+
835
+ /** Optional. Set to use data source powered by Vertex RAG store. */
836
+ vertexRagStore ?: VertexRagStore ;
837
+
789
838
/**
790
839
* Optional. Disable using the result from this tool in detecting grounding
791
840
* attribution. This does not affect how the result is given to the model for
@@ -896,7 +945,8 @@ export declare interface StartChatParams {
896
945
tools ?: Tool [ ] ;
897
946
/** Optional. The base Vertex AI endpoint to use for the request. */
898
947
apiEndpoint ?: string ;
899
- /** Optional. The user provided system instructions for the model.
948
+ /**
949
+ * Optional. The user provided system instructions for the model.
900
950
* Note: only text should be used in parts of {@link Content}
901
951
*/
902
952
systemInstruction ?: string | Content ;
@@ -916,7 +966,8 @@ export declare interface StartChatSessionRequest extends StartChatParams {
916
966
publisherModelEndpoint : string ;
917
967
/** The resource path to use for the request. */
918
968
resourcePath : string ;
919
- /** Optional. The user provided system instructions for the model.
969
+ /**
970
+ * Optional. The user provided system instructions for the model.
920
971
* Note: only text should be used in parts of {@link Content}
921
972
*/
922
973
systemInstruction ?: string | Content ;
0 commit comments