Set token usage.
(mut self, input: u64, output: u64)
| 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 { |
no outgoing calls