| 1 | package Google::Cloud::Ces::V1beta::EvaluationMetricsConfig::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 'EvaluationMetricsConfig', | ||
| 11 | as InstanceOf['Google::Cloud::Ces::V1beta::EvaluationMetricsConfig::EvaluationMetricsConfig']; | ||
| 12 | |||
| 13 | coerce 'EvaluationMetricsConfig', | ||
| 14 | from HashRef, via { 'Google::Cloud::Ces::V1beta::EvaluationMetricsConfig::EvaluationMetricsConfig'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedEvaluationMetricsConfig', | ||
| 17 | as ArrayRef[EvaluationMetricsConfig()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedEvaluationMetricsConfig', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Ces::V1beta::EvaluationMetricsConfig::EvaluationMetricsConfig'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringEvaluationMetricsConfig', | ||
| 23 | as HashRef[EvaluationMetricsConfig()]; | ||
| 24 | |||
| 25 | declare 'ComparisonType', | ||
| 26 | as (Int | Str); | ||
| 27 | |||
| 28 | declare 'SemanticSimilarityMetricsConfig', | ||
| 29 | as InstanceOf['Google::Cloud::Ces::V1beta::EvaluationMetricsConfig::EvaluationMetricsConfig::SemanticSimilarityMetricsConfig']; | ||
| 30 | |||
| 31 | coerce 'SemanticSimilarityMetricsConfig', | ||
| 32 | from HashRef, via { 'Google::Cloud::Ces::V1beta::EvaluationMetricsConfig::EvaluationMetricsConfig::SemanticSimilarityMetricsConfig'->new($_) }; | ||
| 33 | |||
| 34 | declare 'RepeatedSemanticSimilarityMetricsConfig', | ||
| 35 | as ArrayRef[SemanticSimilarityMetricsConfig()]; | ||
| 36 | |||
| 37 | coerce 'RepeatedSemanticSimilarityMetricsConfig', | ||
| 38 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Ces::V1beta::EvaluationMetricsConfig::EvaluationMetricsConfig::SemanticSimilarityMetricsConfig'->new($_) } @$_ ] }; | ||
| 39 | |||
| 40 | declare 'MapStringSemanticSimilarityMetricsConfig', | ||
| 41 | as HashRef[SemanticSimilarityMetricsConfig()]; | ||
| 42 | |||
| 43 | declare 'ToolCorrectnessMetricsConfig', | ||
| 44 | as InstanceOf['Google::Cloud::Ces::V1beta::EvaluationMetricsConfig::EvaluationMetricsConfig::ToolCorrectnessMetricsConfig']; | ||
| 45 | |||
| 46 | coerce 'ToolCorrectnessMetricsConfig', | ||
| 47 | from HashRef, via { 'Google::Cloud::Ces::V1beta::EvaluationMetricsConfig::EvaluationMetricsConfig::ToolCorrectnessMetricsConfig'->new($_) }; | ||
| 48 | |||
| 49 | declare 'RepeatedToolCorrectnessMetricsConfig', | ||
| 50 | as ArrayRef[ToolCorrectnessMetricsConfig()]; | ||
| 51 | |||
| 52 | coerce 'RepeatedToolCorrectnessMetricsConfig', | ||
| 53 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Ces::V1beta::EvaluationMetricsConfig::EvaluationMetricsConfig::ToolCorrectnessMetricsConfig'->new($_) } @$_ ] }; | ||
| 54 | |||
| 55 | declare 'MapStringToolCorrectnessMetricsConfig', | ||
| 56 | as HashRef[ToolCorrectnessMetricsConfig()]; | ||
| 57 | |||
| 58 | declare 'HallucinationMetricsConfig', | ||
| 59 | as InstanceOf['Google::Cloud::Ces::V1beta::EvaluationMetricsConfig::EvaluationMetricsConfig::HallucinationMetricsConfig']; | ||
| 60 | |||
| 61 | coerce 'HallucinationMetricsConfig', | ||
| 62 | from HashRef, via { 'Google::Cloud::Ces::V1beta::EvaluationMetricsConfig::EvaluationMetricsConfig::HallucinationMetricsConfig'->new($_) }; | ||
| 63 | |||
| 64 | declare 'RepeatedHallucinationMetricsConfig', | ||
| 65 | as ArrayRef[HallucinationMetricsConfig()]; | ||
| 66 | |||
| 67 | coerce 'RepeatedHallucinationMetricsConfig', | ||
| 68 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Ces::V1beta::EvaluationMetricsConfig::EvaluationMetricsConfig::HallucinationMetricsConfig'->new($_) } @$_ ] }; | ||
| 69 | |||
| 70 | declare 'MapStringHallucinationMetricsConfig', | ||
| 71 | as HashRef[HallucinationMetricsConfig()]; | ||
| 72 | |||
| 73 | declare 'UserGoalMetMetricsConfig', | ||
| 74 | as InstanceOf['Google::Cloud::Ces::V1beta::EvaluationMetricsConfig::EvaluationMetricsConfig::UserGoalMetMetricsConfig']; | ||
| 75 | |||
| 76 | coerce 'UserGoalMetMetricsConfig', | ||
| 77 | from HashRef, via { 'Google::Cloud::Ces::V1beta::EvaluationMetricsConfig::EvaluationMetricsConfig::UserGoalMetMetricsConfig'->new($_) }; | ||
| 78 | |||
| 79 | declare 'RepeatedUserGoalMetMetricsConfig', | ||
| 80 | as ArrayRef[UserGoalMetMetricsConfig()]; | ||
| 81 | |||
| 82 | coerce 'RepeatedUserGoalMetMetricsConfig', | ||
| 83 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Ces::V1beta::EvaluationMetricsConfig::EvaluationMetricsConfig::UserGoalMetMetricsConfig'->new($_) } @$_ ] }; | ||
| 84 | |||
| 85 | declare 'MapStringUserGoalMetMetricsConfig', | ||
| 86 | as HashRef[UserGoalMetMetricsConfig()]; | ||
| 87 | |||
| 88 | declare 'ExpectationsMetMetricsConfig', | ||
| 89 | as InstanceOf['Google::Cloud::Ces::V1beta::EvaluationMetricsConfig::EvaluationMetricsConfig::ExpectationsMetMetricsConfig']; | ||
| 90 | |||
| 91 | coerce 'ExpectationsMetMetricsConfig', | ||
| 92 | from HashRef, via { 'Google::Cloud::Ces::V1beta::EvaluationMetricsConfig::EvaluationMetricsConfig::ExpectationsMetMetricsConfig'->new($_) }; | ||
| 93 | |||
| 94 | declare 'RepeatedExpectationsMetMetricsConfig', | ||
| 95 | as ArrayRef[ExpectationsMetMetricsConfig()]; | ||
| 96 | |||
| 97 | coerce 'RepeatedExpectationsMetMetricsConfig', | ||
| 98 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Ces::V1beta::EvaluationMetricsConfig::EvaluationMetricsConfig::ExpectationsMetMetricsConfig'->new($_) } @$_ ] }; | ||
| 99 | |||
| 100 | declare 'MapStringExpectationsMetMetricsConfig', | ||
| 101 | as HashRef[ExpectationsMetMetricsConfig()]; | ||
| 102 | |||
| 103 | declare 'GoldenMetricsConfig', | ||
| 104 | as InstanceOf['Google::Cloud::Ces::V1beta::EvaluationMetricsConfig::EvaluationMetricsConfig::GoldenMetricsConfig']; | ||
| 105 | |||
| 106 | coerce 'GoldenMetricsConfig', | ||
| 107 | from HashRef, via { 'Google::Cloud::Ces::V1beta::EvaluationMetricsConfig::EvaluationMetricsConfig::GoldenMetricsConfig'->new($_) }; | ||
| 108 | |||
| 109 | declare 'RepeatedGoldenMetricsConfig', | ||
| 110 | as ArrayRef[GoldenMetricsConfig()]; | ||
| 111 | |||
| 112 | coerce 'RepeatedGoldenMetricsConfig', | ||
| 113 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Ces::V1beta::EvaluationMetricsConfig::EvaluationMetricsConfig::GoldenMetricsConfig'->new($_) } @$_ ] }; | ||
| 114 | |||
| 115 | declare 'MapStringGoldenMetricsConfig', | ||
| 116 | as HashRef[GoldenMetricsConfig()]; | ||
| 117 | |||
| 118 | declare 'ScenarioMetricsConfig', | ||
| 119 | as InstanceOf['Google::Cloud::Ces::V1beta::EvaluationMetricsConfig::EvaluationMetricsConfig::ScenarioMetricsConfig']; | ||
| 120 | |||
| 121 | coerce 'ScenarioMetricsConfig', | ||
| 122 | from HashRef, via { 'Google::Cloud::Ces::V1beta::EvaluationMetricsConfig::EvaluationMetricsConfig::ScenarioMetricsConfig'->new($_) }; | ||
| 123 | |||
| 124 | declare 'RepeatedScenarioMetricsConfig', | ||
| 125 | as ArrayRef[ScenarioMetricsConfig()]; | ||
| 126 | |||
| 127 | coerce 'RepeatedScenarioMetricsConfig', | ||
| 128 | from ArrayRef[HashRef], via { [ map { 'Google::Cloud::Ces::V1beta::EvaluationMetricsConfig::EvaluationMetricsConfig::ScenarioMetricsConfig'->new($_) } @$_ ] }; | ||
| 129 | |||
| 130 | declare 'MapStringScenarioMetricsConfig', | ||
| 131 | as HashRef[ScenarioMetricsConfig()]; | ||
| 132 | |||
| 133 | 1; | ||
| 134 | |||
| 135 | __END__ |