package com.gxwebsoft.house.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * AI找房应答
 */
@Data
@Schema(name = "HouseAiChatResponse对象", description = "AI找房应答")
public class HouseAiChatResponse implements Serializable {
    private static final long serialVersionUID = 1L;

    @Schema(description = "消息类型")
    private String type = "house_ai_result";

    @Schema(description = "回答文本")
    private String answer;

    @Schema(description = "命中的常见问题")
    private List<HouseFaq> faqs = new ArrayList<>();

    @Schema(description = "推荐房源")
    private List<HouseAiHouseCard> houses = new ArrayList<>();

    @Schema(description = "房源匹配结果类型 exact/approximate/none")
    private String matchType = "none";

    @Schema(description = "语义解析结果")
    private HouseAiIntent intent;

    @Schema(description = "来源 faq/house/ai")
    private String source;

    @Schema(description = "是否展示无候选咨询线索入口")
    private Boolean showContactForm = false;
}
