zoey-core 0.1.1

ZoeyAI core runtime and types — privacy-first AI agent framework optimized for local models
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use tracing::debug;

pub fn summarize_profiles(tag: &str, entries: &[(String, i64)], total_ms: i64) {
    let mut sorted = entries.to_vec();
    sorted.sort_by(|a, b| b.1.cmp(&a.1));
    let top: Vec<String> = sorted
        .iter()
        .take(3)
        .map(|(k, d)| format!("{}:{}ms", k, d))
        .collect();
    debug!(phase = tag, total_ms, top = ?top, "pipeline_profiles");
}