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

Function make_attestation

atomic-core/src/change/attestation.rs:750–777  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

748 }
749
750 fn make_attestation() -> Attestation {
751 Attestation::builder("session-abc", make_agent())
752 .cost_usd(0.57)
753 .duration_api_ms(172_000)
754 .duration_wall_ms(2_354_000)
755 .code_changes(CodeChangeStats::new(263, 8))
756 .add_model(ModelUsage {
757 model: "claude-sonnet-4-5".into(),
758 input_tokens: 176,
759 output_tokens: 8400,
760 cache_read_tokens: 526_900,
761 cache_write_tokens: 13_100,
762 cost_usd: 0.56,
763 })
764 .add_model(ModelUsage {
765 model: "claude-haiku-4-5".into(),
766 input_tokens: 9400,
767 output_tokens: 403,
768 cache_read_tokens: 0,
769 cache_write_tokens: 0,
770 cost_usd: 0.0115,
771 })
772 .add_change(Hash::of(b"change-a"))
773 .add_change(Hash::of(b"change-b"))
774 .add_change(Hash::of(b"change-c"))
775 .timestamp(1739290034)
776 .build()
777 }
778
779 // -------------------------------------------------------------------------
780 // Agent

Callers 14

test_builder_fullFunction · 0.85
test_serialize_has_magicFunction · 0.85
test_hash_deterministicFunction · 0.85
test_total_tokensFunction · 0.85
test_used_tokensFunction · 0.85
test_cache_tokensFunction · 0.85
test_change_countFunction · 0.85
test_covers_changeFunction · 0.85

Calls 9

make_agentFunction · 0.85
add_modelMethod · 0.80
code_changesMethod · 0.80
duration_wall_msMethod · 0.80
duration_api_msMethod · 0.80
buildMethod · 0.45
timestampMethod · 0.45
add_changeMethod · 0.45
cost_usdMethod · 0.45

Tested by

no test coverage detected