65 lines
1.6 KiB
Java
65 lines
1.6 KiB
Java
package com.gxwebsoft.ai.entity;
|
|
|
|
import com.baomidou.mybatisplus.annotation.TableName;
|
|
import io.swagger.annotations.ApiModel;
|
|
import lombok.Data;
|
|
import lombok.EqualsAndHashCode;
|
|
|
|
import java.io.Serializable;
|
|
|
|
/**
|
|
* 机构
|
|
*
|
|
* @author LX
|
|
* @since 2025-04-14 00:35:34
|
|
*/
|
|
@Data
|
|
@EqualsAndHashCode(callSuper = false)
|
|
@ApiModel(value = "LawOrg对象", description = "机构")
|
|
@TableName("law_org")
|
|
public class ChatResponse implements Serializable {
|
|
private String event;
|
|
|
|
private String conversation_id;
|
|
private String message_id;
|
|
private long created_at;
|
|
private String task_id;
|
|
private String workflow_run_id;
|
|
private String id;
|
|
private String answer;
|
|
private Metadata metadata;
|
|
private Data data;
|
|
private Object[] files;
|
|
|
|
public static class Data {
|
|
private Usage usage;
|
|
}
|
|
|
|
public static class Metadata {
|
|
private String id;
|
|
private String node_id;
|
|
private String node_type;
|
|
private String title;
|
|
private String index;
|
|
private String predecessor_node_id;
|
|
private String inputs;
|
|
private String created_at;
|
|
private String extras;
|
|
}
|
|
|
|
public static class Usage {
|
|
private int prompt_tokens;
|
|
private String prompt_unit_price;
|
|
private String prompt_price_unit;
|
|
private String prompt_price;
|
|
private int completion_tokens;
|
|
private String completion_unit_price;
|
|
private String completion_price_unit;
|
|
private String completion_price;
|
|
private int total_tokens;
|
|
private String total_price;
|
|
private String currency;
|
|
private double latency;
|
|
}
|
|
}
|