package com.pablotj.ai.chat.infrastructure.health;
/*
import com.pablotj.ai.chat.domain.service.AiConversationService;
import org.springframework.boot.actuator.health.Health;
import org.springframework.boot.actuator.health.HealthIndicator;
import org.springframework.stereotype.Component;

/**
 * Health indicator for the AI service.
 * Monitors the availability and status of the AI conversation service.
 *//*
@Component
public class AiServiceHealthIndicator implements HealthIndicator {
    
    private final AiConversationService aiConversationService;
    
    public AiServiceHealthIndicator(AiConversationService aiConversationService) {
        this.aiConversationService = aiConversationService;
    }
    
    @Override
    public Health health() {
        try {
            boolean isAvailable = aiConversationService.isAvailable();
            String modelInfo = aiConversationService.getModelInfo();
            
            if (isAvailable) {
                return Health.up()
                        .withDetail("status", "AI service is operational")
                        .withDetail("model", modelInfo)
                        .build();
            } else {
                return Health.down()
                        .withDetail("status", "AI service is not available")
                        .withDetail("model", modelInfo)
                        .build();
            }
        } catch (Exception e) {
            return Health.down()
                    .withDetail("status", "AI service health check failed")
                    .withDetail("error", e.getMessage())
                    .build();
        }
    }
}
*/