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

Method tokens

atomic-core/src/change/provenance/builder.rs:119–122  ·  view source on GitHub ↗

Set token usage.

(mut self, input: u64, output: u64)

Source from the content-addressed store, hash-verified

117
118 /// Set token usage.
119 pub fn tokens(mut self, input: u64, output: u64) -> Self {
120 self.tokens = TokenUsage::new(input, output);
121 self
122 }
123
124 /// Set cost in USD.
125 pub fn cost_usd(mut self, usd: f64) -> Self {

Callers 3

test_provenance_builderFunction · 0.45
test_provenance_displayFunction · 0.45

Calls

no outgoing calls

Tested by 3

test_provenance_builderFunction · 0.36
test_provenance_displayFunction · 0.36