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

Function estimate_messages

crates/opencode-util/src/util.rs:94–96  ·  view source on GitHub ↗
(messages: &[&str])

Source from the content-addressed store, hash-verified

92 }
93
94 pub fn estimate_messages(messages: &[&str]) -> usize {
95 messages.iter().map(|m| estimate(m)).sum()
96 }
97}
98
99pub mod format {

Callers

nothing calls this directly

Calls 1

estimateFunction · 0.85

Tested by

no test coverage detected