Junjie
8 天以前 3c1543a1049670c227755229a0305613442bcda8
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
package com.zy.ai.service;
 
import lombok.Data;
 
import java.io.Serializable;
import java.util.List;
 
public interface AutoTuneAgentService {
 
    AutoTuneAgentResult runAutoTune(String triggerType);
 
    @Data
    class AutoTuneAgentResult implements Serializable {
        private static final long serialVersionUID = 1L;
 
        private Boolean success;
 
        private String triggerType;
 
        private String summary;
 
        private Integer toolCallCount;
 
        private Integer llmCallCount;
 
        private Long promptTokens;
 
        private Long completionTokens;
 
        private Long totalTokens;
 
        private Boolean maxRoundsReached;
 
        private Boolean analysisOnly;
 
        private Boolean allowApply;
 
        private String executionMode;
 
        private Boolean actualApplyCalled;
 
        private Boolean rollbackCalled;
 
        private Integer successCount;
 
        private Integer rejectCount;
 
        private List<McpCallResult> mcpCalls;
    }
 
    @Data
    class McpCallResult implements Serializable {
        private static final long serialVersionUID = 1L;
 
        private Integer callSeq;
 
        private String toolName;
 
        private String status;
 
        private Boolean dryRun;
 
        private Long applyJobId;
 
        private Integer successCount;
 
        private Integer rejectCount;
 
        private Long durationMs;
 
        private String requestJson;
 
        private String responseJson;
 
        private String errorMessage;
    }
}