mod model;

use model::{AiSystem, Environment, Messaging, Personality, Relationship};
use serde_json;

fn main() {
    // テスト用のAIシステム初期化
    let ai = AiSystem {
        personality: Personality {
            kind: "positive".to_string(),
            strength: 0.8,
        },
        relationship: Relationship {
            trust: 0.7,
            intimacy: 0.6,
            curiosity: 0.5,
            threshold: 1.5,
        },
        environment: Environment {
            luck_today: 0.9,
            luck_history: vec![0.9, 0.9, 0.9],
            level: 1,
        },
        messaging: Messaging {
            enabled: true,
            schedule_time: Some("08:00".to_string()),
            decay_rate: 0.1,
            templates: vec![
                "ねえねえ、今日もがんばろうね！".to_string(),
                "そろそろ話したくなっちゃった...".to_string(),
            ],
        },
    };

    // JSONにシリアライズして表示
    let json = serde_json::to_string_pretty(&ai).unwrap();
    println!("{}", json);
}

