Junjie
2 天以前 63b01db83d9aad8a15276b4236a9a22e4aeef065
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package com.zy.ai.service;
 
import lombok.Data;
 
import java.io.Serializable;
import java.util.List;
 
public interface DataAnalysisAgentService {
 
    DataAnalysisAgentResult runAnalysis(String periodType);
 
    @Data
    class DataAnalysisAgentResult implements Serializable {
        private static final long serialVersionUID = 1L;
        private Boolean success;
        private String periodType;
        private String triggerType;
        private String summary;
        private String structuredData;
        private Integer toolCallCount;
        private Integer llmCallCount;
        private Long promptTokens;
        private Long completionTokens;
        private Long totalTokens;
        private Boolean maxRoundsReached;
        private List<McpCallResult> mcpCalls;
    }
 
    @Data
    class McpCallResult implements Serializable {
        private static final long serialVersionUID = 1L;
        private Integer callSeq;
        private String toolName;
        private Long durationMs;
        private String status;
        private String requestJson;
        private String responseJson;
        private String errorMessage;
    }
}