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

Class AssistantTokens

crates/opencode-session/src/message_v2.rs:312–319  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

310
311#[derive(Debug, Clone, Serialize, Deserialize)]
312pub struct AssistantTokens {
313 #[serde(skip_serializing_if = "Option::is_none")]
314 pub total: Option<i32>,
315 pub input: i32,
316 pub output: i32,
317 pub reasoning: i32,
318 pub cache: CacheTokens,
319}
320
321#[derive(Debug, Clone, Serialize, Deserialize)]
322#[serde(tag = "name")]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected