V1alpha/Content/Types.pm untested

filter: Statementstmt 0.0% 0 / 281 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 286 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Google::Ai::Generativelanguage::V1alpha::Content::Types;
2  
3 use strict;
4 use warnings;
5  
6 use Type::Library -base;
7 use Type::Utils -all;
8 use Types::Standard -types;
9  
10 declare 'Type',
11 as (Int | Str);
12  
13 declare 'Content',
14 as InstanceOf['Google::Ai::Generativelanguage::V1alpha::Content::Content'];
15  
16 coerce 'Content',
17 from HashRef, via { 'Google::Ai::Generativelanguage::V1alpha::Content::Content'->new($_) };
18  
19 declare 'RepeatedContent',
20 as ArrayRef[Content()];
21  
22 coerce 'RepeatedContent',
23 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1alpha::Content::Content'->new($_) } @$_ ] };
24  
25 declare 'MapStringContent',
26 as HashRef[Content()];
27  
28 declare 'Part',
29 as InstanceOf['Google::Ai::Generativelanguage::V1alpha::Content::Part'];
30  
31 coerce 'Part',
32 from HashRef, via { 'Google::Ai::Generativelanguage::V1alpha::Content::Part'->new($_) };
33  
34 declare 'RepeatedPart',
35 as ArrayRef[Part()];
36  
37 coerce 'RepeatedPart',
38 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1alpha::Content::Part'->new($_) } @$_ ] };
39  
40 declare 'MapStringPart',
41 as HashRef[Part()];
42  
43 declare 'Blob',
44 as InstanceOf['Google::Ai::Generativelanguage::V1alpha::Content::Blob'];
45  
46 coerce 'Blob',
47 from HashRef, via { 'Google::Ai::Generativelanguage::V1alpha::Content::Blob'->new($_) };
48  
49 declare 'RepeatedBlob',
50 as ArrayRef[Blob()];
51  
52 coerce 'RepeatedBlob',
53 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1alpha::Content::Blob'->new($_) } @$_ ] };
54  
55 declare 'MapStringBlob',
56 as HashRef[Blob()];
57  
58 declare 'FileData',
59 as InstanceOf['Google::Ai::Generativelanguage::V1alpha::Content::FileData'];
60  
61 coerce 'FileData',
62 from HashRef, via { 'Google::Ai::Generativelanguage::V1alpha::Content::FileData'->new($_) };
63  
64 declare 'RepeatedFileData',
65 as ArrayRef[FileData()];
66  
67 coerce 'RepeatedFileData',
68 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1alpha::Content::FileData'->new($_) } @$_ ] };
69  
70 declare 'MapStringFileData',
71 as HashRef[FileData()];
72  
73 declare 'ExecutableCode',
74 as InstanceOf['Google::Ai::Generativelanguage::V1alpha::Content::ExecutableCode'];
75  
76 coerce 'ExecutableCode',
77 from HashRef, via { 'Google::Ai::Generativelanguage::V1alpha::Content::ExecutableCode'->new($_) };
78  
79 declare 'RepeatedExecutableCode',
80 as ArrayRef[ExecutableCode()];
81  
82 coerce 'RepeatedExecutableCode',
83 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1alpha::Content::ExecutableCode'->new($_) } @$_ ] };
84  
85 declare 'MapStringExecutableCode',
86 as HashRef[ExecutableCode()];
87  
88 declare 'Language',
89 as (Int | Str);
90  
91 declare 'CodeExecutionResult',
92 as InstanceOf['Google::Ai::Generativelanguage::V1alpha::Content::CodeExecutionResult'];
93  
94 coerce 'CodeExecutionResult',
95 from HashRef, via { 'Google::Ai::Generativelanguage::V1alpha::Content::CodeExecutionResult'->new($_) };
96  
97 declare 'RepeatedCodeExecutionResult',
98 as ArrayRef[CodeExecutionResult()];
99  
100 coerce 'RepeatedCodeExecutionResult',
101 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1alpha::Content::CodeExecutionResult'->new($_) } @$_ ] };
102  
103 declare 'MapStringCodeExecutionResult',
104 as HashRef[CodeExecutionResult()];
105  
106 declare 'Outcome',
107 as (Int | Str);
108  
109 declare 'Tool',
110 as InstanceOf['Google::Ai::Generativelanguage::V1alpha::Content::Tool'];
111  
112 coerce 'Tool',
113 from HashRef, via { 'Google::Ai::Generativelanguage::V1alpha::Content::Tool'->new($_) };
114  
115 declare 'RepeatedTool',
116 as ArrayRef[Tool()];
117  
118 coerce 'RepeatedTool',
119 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1alpha::Content::Tool'->new($_) } @$_ ] };
120  
121 declare 'MapStringTool',
122 as HashRef[Tool()];
123  
124 declare 'GoogleSearch',
125 as InstanceOf['Google::Ai::Generativelanguage::V1alpha::Content::Tool::GoogleSearch'];
126  
127 coerce 'GoogleSearch',
128 from HashRef, via { 'Google::Ai::Generativelanguage::V1alpha::Content::Tool::GoogleSearch'->new($_) };
129  
130 declare 'RepeatedGoogleSearch',
131 as ArrayRef[GoogleSearch()];
132  
133 coerce 'RepeatedGoogleSearch',
134 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1alpha::Content::Tool::GoogleSearch'->new($_) } @$_ ] };
135  
136 declare 'MapStringGoogleSearch',
137 as HashRef[GoogleSearch()];
138  
139 declare 'GoogleSearchRetrieval',
140 as InstanceOf['Google::Ai::Generativelanguage::V1alpha::Content::GoogleSearchRetrieval'];
141  
142 coerce 'GoogleSearchRetrieval',
143 from HashRef, via { 'Google::Ai::Generativelanguage::V1alpha::Content::GoogleSearchRetrieval'->new($_) };
144  
145 declare 'RepeatedGoogleSearchRetrieval',
146 as ArrayRef[GoogleSearchRetrieval()];
147  
148 coerce 'RepeatedGoogleSearchRetrieval',
149 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1alpha::Content::GoogleSearchRetrieval'->new($_) } @$_ ] };
150  
151 declare 'MapStringGoogleSearchRetrieval',
152 as HashRef[GoogleSearchRetrieval()];
153  
154 declare 'DynamicRetrievalConfig',
155 as InstanceOf['Google::Ai::Generativelanguage::V1alpha::Content::DynamicRetrievalConfig'];
156  
157 coerce 'DynamicRetrievalConfig',
158 from HashRef, via { 'Google::Ai::Generativelanguage::V1alpha::Content::DynamicRetrievalConfig'->new($_) };
159  
160 declare 'RepeatedDynamicRetrievalConfig',
161 as ArrayRef[DynamicRetrievalConfig()];
162  
163 coerce 'RepeatedDynamicRetrievalConfig',
164 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1alpha::Content::DynamicRetrievalConfig'->new($_) } @$_ ] };
165  
166 declare 'MapStringDynamicRetrievalConfig',
167 as HashRef[DynamicRetrievalConfig()];
168  
169 declare 'Mode',
170 as (Int | Str);
171  
172 declare 'CodeExecution',
173 as InstanceOf['Google::Ai::Generativelanguage::V1alpha::Content::CodeExecution'];
174  
175 coerce 'CodeExecution',
176 from HashRef, via { 'Google::Ai::Generativelanguage::V1alpha::Content::CodeExecution'->new($_) };
177  
178 declare 'RepeatedCodeExecution',
179 as ArrayRef[CodeExecution()];
180  
181 coerce 'RepeatedCodeExecution',
182 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1alpha::Content::CodeExecution'->new($_) } @$_ ] };
183  
184 declare 'MapStringCodeExecution',
185 as HashRef[CodeExecution()];
186  
187 declare 'ToolConfig',
188 as InstanceOf['Google::Ai::Generativelanguage::V1alpha::Content::ToolConfig'];
189  
190 coerce 'ToolConfig',
191 from HashRef, via { 'Google::Ai::Generativelanguage::V1alpha::Content::ToolConfig'->new($_) };
192  
193 declare 'RepeatedToolConfig',
194 as ArrayRef[ToolConfig()];
195  
196 coerce 'RepeatedToolConfig',
197 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1alpha::Content::ToolConfig'->new($_) } @$_ ] };
198  
199 declare 'MapStringToolConfig',
200 as HashRef[ToolConfig()];
201  
202 declare 'FunctionCallingConfig',
203 as InstanceOf['Google::Ai::Generativelanguage::V1alpha::Content::FunctionCallingConfig'];
204  
205 coerce 'FunctionCallingConfig',
206 from HashRef, via { 'Google::Ai::Generativelanguage::V1alpha::Content::FunctionCallingConfig'->new($_) };
207  
208 declare 'RepeatedFunctionCallingConfig',
209 as ArrayRef[FunctionCallingConfig()];
210  
211 coerce 'RepeatedFunctionCallingConfig',
212 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1alpha::Content::FunctionCallingConfig'->new($_) } @$_ ] };
213  
214 declare 'MapStringFunctionCallingConfig',
215 as HashRef[FunctionCallingConfig()];
216  
217 declare 'Mode',
218 as (Int | Str);
219  
220 declare 'FunctionDeclaration',
221 as InstanceOf['Google::Ai::Generativelanguage::V1alpha::Content::FunctionDeclaration'];
222  
223 coerce 'FunctionDeclaration',
224 from HashRef, via { 'Google::Ai::Generativelanguage::V1alpha::Content::FunctionDeclaration'->new($_) };
225  
226 declare 'RepeatedFunctionDeclaration',
227 as ArrayRef[FunctionDeclaration()];
228  
229 coerce 'RepeatedFunctionDeclaration',
230 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1alpha::Content::FunctionDeclaration'->new($_) } @$_ ] };
231  
232 declare 'MapStringFunctionDeclaration',
233 as HashRef[FunctionDeclaration()];
234  
235 declare 'FunctionCall',
236 as InstanceOf['Google::Ai::Generativelanguage::V1alpha::Content::FunctionCall'];
237  
238 coerce 'FunctionCall',
239 from HashRef, via { 'Google::Ai::Generativelanguage::V1alpha::Content::FunctionCall'->new($_) };
240  
241 declare 'RepeatedFunctionCall',
242 as ArrayRef[FunctionCall()];
243  
244 coerce 'RepeatedFunctionCall',
245 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1alpha::Content::FunctionCall'->new($_) } @$_ ] };
246  
247 declare 'MapStringFunctionCall',
248 as HashRef[FunctionCall()];
249  
250 declare 'FunctionResponse',
251 as InstanceOf['Google::Ai::Generativelanguage::V1alpha::Content::FunctionResponse'];
252  
253 coerce 'FunctionResponse',
254 from HashRef, via { 'Google::Ai::Generativelanguage::V1alpha::Content::FunctionResponse'->new($_) };
255  
256 declare 'RepeatedFunctionResponse',
257 as ArrayRef[FunctionResponse()];
258  
259 coerce 'RepeatedFunctionResponse',
260 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1alpha::Content::FunctionResponse'->new($_) } @$_ ] };
261  
262 declare 'MapStringFunctionResponse',
263 as HashRef[FunctionResponse()];
264  
265 declare 'Schema',
266 as InstanceOf['Google::Ai::Generativelanguage::V1alpha::Content::Schema'];
267  
268 coerce 'Schema',
269 from HashRef, via { 'Google::Ai::Generativelanguage::V1alpha::Content::Schema'->new($_) };
270  
271 declare 'RepeatedSchema',
272 as ArrayRef[Schema()];
273  
274 coerce 'RepeatedSchema',
275 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1alpha::Content::Schema'->new($_) } @$_ ] };
276  
277 declare 'MapStringSchema',
278 as HashRef[Schema()];
279  
280 declare 'PropertiesEntry',
281 as InstanceOf['Google::Ai::Generativelanguage::V1alpha::Content::Schema::PropertiesEntry'];
282  
283 coerce 'PropertiesEntry',
284 from HashRef, via { 'Google::Ai::Generativelanguage::V1alpha::Content::Schema::PropertiesEntry'->new($_) };
285  
286 declare 'RepeatedPropertiesEntry',
287 as ArrayRef[PropertiesEntry()];
288  
289 coerce 'RepeatedPropertiesEntry',
290 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1alpha::Content::Schema::PropertiesEntry'->new($_) } @$_ ] };
291  
292 declare 'MapStringPropertiesEntry',
293 as HashRef[PropertiesEntry()];
294  
295 declare 'GroundingPassage',
296 as InstanceOf['Google::Ai::Generativelanguage::V1alpha::Content::GroundingPassage'];
297  
298 coerce 'GroundingPassage',
299 from HashRef, via { 'Google::Ai::Generativelanguage::V1alpha::Content::GroundingPassage'->new($_) };
300  
301 declare 'RepeatedGroundingPassage',
302 as ArrayRef[GroundingPassage()];
303  
304 coerce 'RepeatedGroundingPassage',
305 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1alpha::Content::GroundingPassage'->new($_) } @$_ ] };
306  
307 declare 'MapStringGroundingPassage',
308 as HashRef[GroundingPassage()];
309  
310 declare 'GroundingPassages',
311 as InstanceOf['Google::Ai::Generativelanguage::V1alpha::Content::GroundingPassages'];
312  
313 coerce 'GroundingPassages',
314 from HashRef, via { 'Google::Ai::Generativelanguage::V1alpha::Content::GroundingPassages'->new($_) };
315  
316 declare 'RepeatedGroundingPassages',
317 as ArrayRef[GroundingPassages()];
318  
319 coerce 'RepeatedGroundingPassages',
320 from ArrayRef[HashRef], via { [ map { 'Google::Ai::Generativelanguage::V1alpha::Content::GroundingPassages'->new($_) } @$_ ] };
321  
322 declare 'MapStringGroundingPassages',
323 as HashRef[GroundingPassages()];
324  
325 1;
326  
327 __END__