ai-agent 0.13.4

Idiomatic agent sdk inspired by the claude code source leak
Documentation
//! Render options for terminal output.

use serde::{Deserialize, Serialize};

/// Terminal render options
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct RenderOptions {
    pub use_ansi: bool,
    pub use_color: bool,
    pub use_theme: bool,
    pub compact: bool,
    pub show_sender: bool,
    pub show_timestamp: bool,
}

impl Default for RenderOptions {
    fn default() -> Self {
        Self {
            use_ansi: true,
            use_color: true,
            use_theme: true,
            compact: false,
            show_sender: true,
            show_timestamp: false,
        }
    }
}

impl RenderOptions {
    pub fn compact() -> Self {
        Self {
            compact: true,
            ..Default::default()
        }
    }

    pub fn plain() -> Self {
        Self {
            use_ansi: false,
            use_color: false,
            use_theme: false,
            compact: true,
            ..Default::default()
        }
    }
}