MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / ai_assisted

Method ai_assisted

atomic-core/src/change/credit.rs:220–238  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected