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
13
14
15
#![allow(dead_code)]

pub fn get_user_agent() -> String {
    format!("ai-code/{}", env!("CARGO_PKG_VERSION"))
}

pub fn get_runtime() -> &'static str {
    #[cfg(feature = "tokio")]
    return "tokio";
    #[cfg(feature = "async-std")]
    return "async-std";
    #[cfg(feature = "smol")]
    return "smol";
    "unknown"
}