Load tools at launch

This commit is contained in:
Illia Polosukhin
2026-02-03 00:48:22 -08:00
parent 575269546b
commit 343782524f
6 changed files with 117 additions and 24 deletions
+1 -1
View File
@@ -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.