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
//! User-Agent string helpers.
//!
//! Kept dependency-free so SDK-bundled code (bridge, cli/transports) can
//! import without pulling in auth.ts and its transitive dependency tree.

use crate::MACRO_VERSION;

/// Get the Claude Code User-Agent string.
pub fn get_claude_code_user_agent() -> String {
    format!("claude-code/{}", MACRO_VERSION)
}