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
16
17
18
use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct AssistantThinkingMessage {
    pub id: String,
    pub thinking: String,
    pub timestamp: i64,
}

impl AssistantThinkingMessage {
    pub fn new(thinking: &str) -> Self {
        Self {
            id: uuid::Uuid::new_v4().to_string(),
            thinking: thinking.to_string(),
            timestamp: chrono::Utc::now().timestamp_millis(),
        }
    }
}