package org.jeecg.modules.airag.app.consts;

/**
 * AI应用常量类
 *
 * @author chenrui
 * @date 2025/2/25 14:52
 */
public class AiAppConsts {

    /**
     * 状态:启用
     */
    public static final String STATUS_ENABLE = "enable";
    /**
     * 状态:禁用
     */
    public static final String STATUS_DISABLE = "disable";
    /**
     * 状态:发布
     */
    public static final String STATUS_RELEASE = "release";


    /**
     * 默认应用id
     */
    public static final String DEFAULT_APP_ID = "default";


    /**
     * 应用类型:简单聊天
     */
    public static final String APP_TYPE_CHAT_SIMPLE = "chatSimple";

    /**
     * 应用类型:聊天流(高级编排)
     */
    public static final String APP_TYPE_CHAT_FLOW = "chatFLow";

    /**
     * 应用元数据:流程输入参数
     * for [issues/8545]新建AI应用的时候只能选择没有自定义参数的AI流程
     */
    public static final String APP_METADATA_FLOW_INPUTS = "flowInputs";

    /**
     * 是否开启记忆
     */
    public static final Integer IZ_OPEN_MEMORY = 1;

    /**
     * 会话标题最大长度
     */
    public static final int CONVERSATION_MAX_TITLE_LENGTH = 10;


    /**
     * AI写作的流程id
     */
    public static final String ARTICLE_WRITER_FLOW_ID = "2011769909807579138";

    /**
     * AI写作redis请求前缀
     */
    public static final String ARTICLE_WRITER_KEY = "airag:chat:article:write:{}";
}
