package com.emoon.openplatform.domain.dto.request;

import jakarta.validation.constraints.NotEmpty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 知识库请求
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SchemaRequest {
    /**
     * 对话消息
     */
    @NotEmpty(message = "对话消息不能为空")
    private String messages;

    @NotEmpty(message = "传入的模型不能为空")
    private String model;

    /**
     * 匹配参数 0.0 - 2.0
     */
    private float maxDistance;

    /**
     * 知识库id
     */
    private String kid;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 应用ID
     */
    private String appId;


}
