ai-agent 0.88.0

Idiomatic agent sdk inspired by the claude code source leak
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
// Source: /data/home/swei/claudecode/openclaudecode/src/utils/errors.ts
pub fn error_message(error: &dyn std::error::Error) -> String {
    error.to_string()
}

pub fn to_error<T: std::fmt::Display + Sized>(err: T) -> String {
    err.to_string()
}

pub fn is_enoent(error: &str) -> bool {
    error.contains("No such file")
}