Create credit for AI-assisted content.
(
author_name: impl Into<String>,
author_email: Option<impl Into<String>>,
vendor: AIVendor,
model: impl Into<String>,
change_hash: Hash,
timestamp: Dat
| 218 | |
| 219 | /// Create credit for AI-assisted content. |
| 220 | pub fn ai_assisted( |
| 221 | author_name: impl Into<String>, |
| 222 | author_email: Option<impl Into<String>>, |
| 223 | vendor: AIVendor, |
| 224 | model: impl Into<String>, |
| 225 | change_hash: Hash, |
| 226 | timestamp: DateTime<Utc>, |
| 227 | ) -> Self { |
| 228 | Self { |
| 229 | author_name: author_name.into(), |
| 230 | author_email: author_email.map(Into::into), |
| 231 | credit_type: CreditType::AiAssisted, |
| 232 | ai_vendor: Some(vendor), |
| 233 | ai_model: Some(model.into()), |
| 234 | change_hash, |
| 235 | timestamp, |
| 236 | confidence: None, |
| 237 | } |
| 238 | } |
| 239 | |
| 240 | /// Create credit for AI-generated content. |
| 241 | pub fn ai_generated( |
nothing calls this directly
no outgoing calls
no test coverage detected