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
//! Clear command

pub fn create_clear_command() -> crate::commands::Command {
    crate::commands::Command {
        command_type: crate::commands::CommandType::Local,
        name: "clear".to_string(),
        description: "Clear conversation history and free up context".to_string(),
        aliases: vec!["reset".to_string(), "new".to_string()],
        supports_non_interactive: false,
        load: Some(Box::new(|| {
            Box::pin(async {
                Ok(Box::new(crate::commands::clear::Clear::new())
                    as Box<dyn crate::commands::CommandHandler>)
            })
        })),
    }
}