mirror of
https://github.com/outbackdingo/optimclaw.git
synced 2026-08-31 08:39:24 +00:00
Load tools at launch
This commit is contained in:
@@ -68,7 +68,7 @@ impl ContextMonitor {
|
||||
|
||||
/// Estimate the token count for a list of messages.
|
||||
pub fn estimate_tokens(&self, messages: &[ChatMessage]) -> usize {
|
||||
messages.iter().map(|m| estimate_message_tokens(m)).sum()
|
||||
messages.iter().map(estimate_message_tokens).sum()
|
||||
}
|
||||
|
||||
/// Check if compaction is needed.
|
||||
|
||||
Reference in New Issue
Block a user