package org.dromara.ai.config;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * 简化的AI自动配置类
 * 主要用于扫描AI模块的组件
 *
 * @author pengles
 */
@Slf4j
@Configuration
@ComponentScan(basePackages = "org.dromara.ai")
@ConditionalOnProperty(prefix = "ruoyi.ai", name = "enabled", havingValue = "true", matchIfMissing = true)
public class AiAutoConfiguration {

    public AiAutoConfiguration() {
        log.info("AI模块已启用");
    }
}