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

Method tokens

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

Get the latest token usage.

(&self)

Source from the content-addressed store, hash-verified

233
234 /// Get the latest token usage.
235 pub fn tokens(&self) -> Option<&MessageUsage> {
236 self.tokens.as_ref()
237 }
238
239 /// Get the finish reason.
240 pub fn finish_reason(&self) -> Option<&str> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected