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

Function attestation

atomic-repository/src/git_binding/summary.rs:284–298  ·  view source on GitHub ↗
(session: &str, vendor: &str, model: &str, tokens: u64)

Source from the content-addressed store, hash-verified

282 use atomic_core::change::attestation::{AttestAgent, ModelUsage};
283
284 fn attestation(session: &str, vendor: &str, model: &str, tokens: u64) -> Attestation {
285 let mut usage = ModelUsage::new(model);
286 usage.input_tokens = tokens;
287 usage.output_tokens = tokens / 2;
288 usage.cost_usd = 0.25;
289 let mut value = Attestation::builder(
290 session,
291 AttestAgent::new("claude-code", "Claude Code", vendor),
292 )
293 .cost_usd(0.25)
294 .build();
295 value.models = vec![usage];
296 value.notes = Some("PRIVATE NOTES SENTINEL".to_string());
297 value
298 }
299
300 #[test]
301 fn summary_is_an_allowlisted_projection() {

Callers

nothing calls this directly

Calls 2

buildMethod · 0.45
cost_usdMethod · 0.45

Tested by

no test coverage detected