ai-agent 0.13.4

Idiomatic agent sdk inspired by the claude code source leak
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
pub async fn try_session_memory_compaction<T>(
    _messages: &[T],
    _agent_id: Option<&str>,
    _threshold: usize,
) -> Option<CompactionResult> {
    None
}

#[derive(Debug, Clone)]
pub struct CompactionResult {
    pub compacted: bool,
}