package org.xyzh.ai.client.dto;

import com.alibaba.fastjson2.annotation.JSONField;
import lombok.Data;

import java.util.List;

/**
 * @description 对话变量响应
 * @filename ConversationVariablesResponse.java
 * @author AI Assistant
 * @copyright xyzh
 * @since 2025-12-29
 */
@Data
public class ConversationVariablesResponse {

    private Integer limit;

    @JSONField(name = "has_more")
    private Boolean hasMore;

    private List<ConversationVariableItem> data;

    /**
     * 对话中的变量项
     */
    @Data
    public static class ConversationVariableItem {

        /**
         * 变量ID
         */
        private String id;

        /**
         * 变量名称
         */
        private String name;

        /**
         * 变量类型 (string, number, boolean 等)
         */
        @JSONField(name = "value_type")
        private String valueType;

        /**
         * 变量值
         */
        private String value;

        /**
         * 变量描述
         */
        private String description;

        /**
         * 创建时间戳
         */
        @JSONField(name = "created_at")
        private Long createdAt;

        /**
         * 最后更新时间戳
         */
        @JSONField(name = "updated_at")
        private Long updatedAt;
    }
}
