Estimate the AI contribution level (0.0 = all human, 1.0 = all AI).
(&self)
| 129 | |
| 130 | /// Estimate the AI contribution level (0.0 = all human, 1.0 = all AI). |
| 131 | pub fn ai_contribution_estimate(&self) -> f32 { |
| 132 | match self { |
| 133 | CreditType::Human => 0.0, |
| 134 | CreditType::AiAssisted => 0.3, |
| 135 | CreditType::Collaborative => 0.5, |
| 136 | CreditType::AiGenerated => 0.9, |
| 137 | CreditType::Unknown => 0.0, |
| 138 | } |
| 139 | } |
| 140 | |
| 141 | /// Convert from SuggestionType. |
| 142 | pub fn from_suggestion_type(suggestion_type: SuggestionType) -> Self { |