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;
|
}
|
}
|