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

Method ai_contribution_estimate

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

Estimate the AI contribution level (0.0 = all human, 1.0 = all AI).

(&self)

Source from the content-addressed store, hash-verified

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 {

Callers 1

ai_contributionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected