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

Method collaborative

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

Create credit for collaborative human+AI 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

261
262 /// Create credit for collaborative human+AI content.
263 pub fn collaborative(
264 author_name: impl Into<String>,
265 author_email: Option<impl Into<String>>,
266 vendor: AIVendor,
267 model: impl Into<String>,
268 change_hash: Hash,
269 timestamp: DateTime<Utc>,
270 ) -> Self {
271 Self {
272 author_name: author_name.into(),
273 author_email: author_email.map(Into::into),
274 credit_type: CreditType::Collaborative,
275 ai_vendor: Some(vendor),
276 ai_model: Some(model.into()),
277 change_hash,
278 timestamp,
279 confidence: None,
280 }
281 }
282
283 /// Create credit with unknown attribution.
284 pub fn unknown(change_hash: Hash, timestamp: DateTime<Utc>) -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected