MCPcopy Create free account
hub / github.com/ccusage/ccusage / has_signal

Function has_signal

rust/crates/ccusage/src/adapter/codebuff/parser.rs:290–297  ·  view source on GitHub ↗
(usage: &AssistantUsage)

Source from the content-addressed store, hash-verified

288}
289
290fn has_signal(usage: &AssistantUsage) -> bool {
291 usage.input_tokens > 0
292 || usage.output_tokens > 0
293 || usage.cache_creation_input_tokens > 0
294 || usage.cache_read_input_tokens > 0
295 || usage.extra_total_tokens > 0
296 || usage.credits > 0.0
297}
298
299fn message_timestamp(message: &serde_json::Map<String, Value>) -> Option<crate::TimestampMs> {
300 timestamp_value(message.get("timestamp"))

Callers 2

load_chat_fileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected