MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / cost

Method cost

crates/opencode-session/src/llm.rs:230–232  ·  view source on GitHub ↗

Get the accumulated cost.

(&self)

Source from the content-addressed store, hash-verified

228
229 /// Get the accumulated cost.
230 pub fn cost(&self) -> f64 {
231 self.cost
232 }
233
234 /// Get the latest token usage.
235 pub fn tokens(&self) -> Option<&MessageUsage> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected