Debian Codegraph @

vertexai/genai/config.yaml

raw
1 # Configuration for the protoveneer tool.
2
3 package: genai
4
5 protoImportPath: cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb
6
7 types:
8 HarmCategory:
9 protoPrefix: HarmCategory_HARM_CATEGORY_
10 docVerb: specifies
11
12 SafetySetting_HarmBlockThreshold:
13 name: HarmBlockThreshold
14 protoPrefix: SafetySetting_BLOCK_
15 veneerPrefix: HarmBlock
16 docVerb: specifies
17 valueNames:
18 SafetySetting_HARM_BLOCK_THRESHOLD_UNSPECIFIED: HarmBlockUnspecified
19
20 SafetySetting_HarmBlockMethod:
21 name: HarmBlockMethod
22 protoPrefix: SafetySetting_
23 veneerPrefix: HarmBlockMethod
24 doc: 'determines how harm blocking is done.'
25
26 SafetyRating_HarmProbability:
27 name: HarmProbability
28 protoPrefix: SafetyRating_
29 docVerb: specifies
30 valueNames:
31 SafetyRating_HARM_PROBABILITY_UNSPECIFIED: HarmProbabilityUnspecified
32
33 SafetyRating_HarmSeverity:
34 name: HarmSeverity
35 protoPrefix: SafetyRating_
36 docVerb: specifies
37
38 Candidate_FinishReason:
39 name: FinishReason
40 protoPrefix: Candidate_
41
42 GenerateContentResponse_PromptFeedback_BlockedReason:
43 name: BlockedReason
44 protoPrefix: GenerateContentResponse_PromptFeedback_
45
46 Type:
47 protoPrefix: Type_
48
49 Content:
50 fields:
51 Parts:
52 type: '[]Part'
53
54 Blob:
55 fields:
56 MimeType:
57 name: MIMEType
58 doc: 'contains binary data like images. Use [Text] for text.'
59 removeOtherDoc: true
60
61 FileData:
62 fields:
63 MimeType:
64 name: MIMEType
65 FileUri:
66 name: FileURI
67
68 FunctionCall:
69 fields:
70 Id:
71 omit: true
72
73 FunctionResponse:
74 fields:
75 Id:
76 omit: true
77
78 FunctionCallingConfig:
79 doc: 'holds configuration for function calling.'
80
81 FunctionCallingConfig_Mode:
82 name: FunctionCallingMode
83 protoPrefix: FunctionCallingConfig
84 veneerPrefix: FunctionCalling
85 valueNames:
86 FunctionCallingConfig_MODE_UNSPECIFIED: FunctionCallingUnspecified
87
88 GenerationConfig:
89 fields:
90 TopK:
91 type: '*int32'
92 convertToFrom: int32pToFloat32p, float32pToInt32p
93 ResponseMimeType:
94 name: ResponseMIMEType
95 ResponseLogprobs:
96 omit: true
97 Logprobs:
98 omit: true
99 Seed:
100 omit: true
101 ResponseJsonSchema:
102 omit: true
103 RoutingConfig:
104 omit: true
105 AudioTimestamp:
106 omit: true
107 ResponseModalities:
108 omit: true
109 MediaResolution:
110 omit: true
111 SpeechConfig:
112 omit: true
113 ModelConfig:
114 omit: true
115
116 GenerationConfig_ThinkingConfig:
117 name: ThinkingConfig
118
119 SafetyRating:
120 docVerb: 'is the'
121
122 Citation:
123 docVerb: contains
124 fields:
125 Uri:
126 name: URI
127
128 Candidate:
129 fields:
130 FinishMessage:
131 type: string
132 GroundingMetadata:
133 omit: true
134 AvgLogprobs:
135 omit: true
136 LogprobsResult:
137 omit: true
138 UrlContextMetadata:
139 omit: true
140
141 GenerateContentResponse:
142 doc: 'is the response from a GenerateContent or GenerateContentStream call.'
143 fields:
144 ModelVersion:
145 omit: true
146 CreateTime:
147 omit: true
148 ResponseId:
149 omit: true
150
151 GenerateContentResponse_PromptFeedback:
152 name: PromptFeedback
153 docVerb: contains
154
155 GenerateContentResponse_UsageMetadata:
156 name: UsageMetadata
157 fields:
158 CachedContentTokenCount:
159 omit: true
160 PromptTokensDetails:
161 omit: true
162 CacheTokensDetails:
163 omit: true
164 CandidatesTokensDetails:
165 omit: true
166
167 CountTokensResponse:
168 fields:
169 PromptTokensDetails:
170 omit: true
171
172 Tool:
173 docVerb: contains
174 fields:
175 Retrieval:
176 omit: true
177 GoogleSearchRetrieval:
178 omit: true
179 GoogleSearch:
180 omit: true
181 EnterpriseWebSearch:
182 omit: true
183 CodeExecution:
184 omit: true
185 UrlContext:
186 omit: true
187
188 ToolConfig:
189 doc: 'configures tools.'
190 fields:
191 RetrievalConfig:
192 omit: true
193
194 Schema:
195 fields:
196 Example:
197 omit: true
198 Default:
199 # TODO(jba): protoveneer should treat a *structpb.Value as an any
200 omit: true
201 PropertyOrdering:
202 omit: true
203 AnyOf:
204 omit: true
205 AdditionalProperties:
206 omit: true
207 Ref:
208 omit: true
209 Defs:
210 omit: true
211
212 CitationMetadata:
213 FunctionDeclaration:
214 fields:
215 ParametersJsonSchema:
216 omit: true
217 ResponseJsonSchema:
218 omit: true
219
220 SafetySetting:
221
222 CachedContent:
223 populateToFrom: populateCachedContentTo, populateCachedContentFrom
224 fields:
225 Expiration:
226 type: ExpireTimeOrTTL
227 noConvert: true
228 DisplayName:
229 omit: true
230 UsageMetadata:
231 omit: true
232 EncryptionSpec:
233 omit: true
234
235
236 # Omit everything that is not explicitly configured.
237 omitTypes:
238 - '*'
239
240
241 converters:
242 Part: partToProto, partFromProto