V3beta1/GenerativeSettings/Types.pm untested

filter: Statementstmt 0.0% 0 / 96 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 101 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Google::Cloud::Dialogflow::Cx::V3beta1::GenerativeSettings::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 'GenerativeSettings',
11 as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::GenerativeSettings::GenerativeSettings'];
12  
13 coerce 'GenerativeSettings',
14 from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::GenerativeSettings::GenerativeSettings'->new($_) };
15  
16 declare 'RepeatedGenerativeSettings',
17 as ArrayRef[GenerativeSettings()];
18  
19 coerce 'RepeatedGenerativeSettings',
20 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::GenerativeSettings::GenerativeSettings'->new($_) } @$_ ] };
21  
22 declare 'MapStringGenerativeSettings',
23 as HashRef[GenerativeSettings()];
24  
25 declare 'FallbackSettings',
26 as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::GenerativeSettings::GenerativeSettings::FallbackSettings'];
27  
28 coerce 'FallbackSettings',
29 from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::GenerativeSettings::GenerativeSettings::FallbackSettings'->new($_) };
30  
31 declare 'RepeatedFallbackSettings',
32 as ArrayRef[FallbackSettings()];
33  
34 coerce 'RepeatedFallbackSettings',
35 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::GenerativeSettings::GenerativeSettings::FallbackSettings'->new($_) } @$_ ] };
36  
37 declare 'MapStringFallbackSettings',
38 as HashRef[FallbackSettings()];
39  
40 declare 'PromptTemplate',
41 as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::GenerativeSettings::GenerativeSettings::FallbackSettings::PromptTemplate'];
42  
43 coerce 'PromptTemplate',
44 from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::GenerativeSettings::GenerativeSettings::FallbackSettings::PromptTemplate'->new($_) };
45  
46 declare 'RepeatedPromptTemplate',
47 as ArrayRef[PromptTemplate()];
48  
49 coerce 'RepeatedPromptTemplate',
50 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::GenerativeSettings::GenerativeSettings::FallbackSettings::PromptTemplate'->new($_) } @$_ ] };
51  
52 declare 'MapStringPromptTemplate',
53 as HashRef[PromptTemplate()];
54  
55 declare 'KnowledgeConnectorSettings',
56 as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::GenerativeSettings::GenerativeSettings::KnowledgeConnectorSettings'];
57  
58 coerce 'KnowledgeConnectorSettings',
59 from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::GenerativeSettings::GenerativeSettings::KnowledgeConnectorSettings'->new($_) };
60  
61 declare 'RepeatedKnowledgeConnectorSettings',
62 as ArrayRef[KnowledgeConnectorSettings()];
63  
64 coerce 'RepeatedKnowledgeConnectorSettings',
65 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::GenerativeSettings::GenerativeSettings::KnowledgeConnectorSettings'->new($_) } @$_ ] };
66  
67 declare 'MapStringKnowledgeConnectorSettings',
68 as HashRef[KnowledgeConnectorSettings()];
69  
70 declare 'LlmModelSettings',
71 as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::GenerativeSettings::LlmModelSettings'];
72  
73 coerce 'LlmModelSettings',
74 from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::GenerativeSettings::LlmModelSettings'->new($_) };
75  
76 declare 'RepeatedLlmModelSettings',
77 as ArrayRef[LlmModelSettings()];
78  
79 coerce 'RepeatedLlmModelSettings',
80 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::GenerativeSettings::LlmModelSettings'->new($_) } @$_ ] };
81  
82 declare 'MapStringLlmModelSettings',
83 as HashRef[LlmModelSettings()];
84  
85 declare 'Parameters',
86 as InstanceOf['Google::Cloud::Dialogflow::Cx::V3beta1::GenerativeSettings::LlmModelSettings::Parameters'];
87  
88 coerce 'Parameters',
89 from HashRef, via { 'Google::Cloud::Dialogflow::Cx::V3beta1::GenerativeSettings::LlmModelSettings::Parameters'->new($_) };
90  
91 declare 'RepeatedParameters',
92 as ArrayRef[Parameters()];
93  
94 coerce 'RepeatedParameters',
95 from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Dialogflow::Cx::V3beta1::GenerativeSettings::LlmModelSettings::Parameters'->new($_) } @$_ ] };
96  
97 declare 'MapStringParameters',
98 as HashRef[Parameters()];
99  
100 declare 'InputTokenLimit',
101 as (Int | Str);
102  
103 declare 'OutputTokenLimit',
104 as (Int | Str);
105  
106 1;
107  
108 __END__