150 lines
4.1 KiB
Java
150 lines
4.1 KiB
Java
package com.muse.dto;
|
|
|
|
import java.net.URI;
|
|
import java.util.Objects;
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
import java.util.UUID;
|
|
import org.springframework.lang.Nullable;
|
|
import java.io.Serializable;
|
|
import java.time.OffsetDateTime;
|
|
import jakarta.validation.Valid;
|
|
import jakarta.validation.constraints.*;
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
|
|
|
|
|
import java.util.*;
|
|
import jakarta.annotation.Generated;
|
|
|
|
/**
|
|
* 可验证的智能体覆盖引用;服务端仍必须通过 Agent BC 和 Security facade 校验。
|
|
*/
|
|
|
|
@Schema(name = "AgentOverrideRef", description = "可验证的智能体覆盖引用;服务端仍必须通过 Agent BC 和 Security facade 校验。")
|
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2026-05-24T16:47:40.290595+08:00[Asia/Shanghai]", comments = "Generator version: 7.22.0")
|
|
public class AgentOverrideRef implements Serializable {
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
private UUID agentId;
|
|
|
|
private Integer agentVersion;
|
|
|
|
private String reason;
|
|
|
|
public AgentOverrideRef() {
|
|
super();
|
|
}
|
|
|
|
/**
|
|
* Constructor with only required parameters
|
|
*/
|
|
public AgentOverrideRef(UUID agentId, Integer agentVersion, String reason) {
|
|
this.agentId = agentId;
|
|
this.agentVersion = agentVersion;
|
|
this.reason = reason;
|
|
}
|
|
|
|
public AgentOverrideRef agentId(UUID agentId) {
|
|
this.agentId = agentId;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* 覆盖使用的智能体 ID
|
|
* @return agentId
|
|
*/
|
|
@NotNull @Valid
|
|
@Schema(name = "agentId", description = "覆盖使用的智能体 ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
|
@JsonProperty("agentId")
|
|
public UUID getAgentId() {
|
|
return agentId;
|
|
}
|
|
|
|
@JsonProperty("agentId")
|
|
public void setAgentId(UUID agentId) {
|
|
this.agentId = agentId;
|
|
}
|
|
|
|
public AgentOverrideRef agentVersion(Integer agentVersion) {
|
|
this.agentVersion = agentVersion;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* 覆盖使用的智能体版本
|
|
* @return agentVersion
|
|
*/
|
|
@NotNull
|
|
@Schema(name = "agentVersion", description = "覆盖使用的智能体版本", requiredMode = Schema.RequiredMode.REQUIRED)
|
|
@JsonProperty("agentVersion")
|
|
public Integer getAgentVersion() {
|
|
return agentVersion;
|
|
}
|
|
|
|
@JsonProperty("agentVersion")
|
|
public void setAgentVersion(Integer agentVersion) {
|
|
this.agentVersion = agentVersion;
|
|
}
|
|
|
|
public AgentOverrideRef reason(String reason) {
|
|
this.reason = reason;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* 覆盖默认槽位智能体的原因
|
|
* @return reason
|
|
*/
|
|
@NotNull
|
|
@Schema(name = "reason", description = "覆盖默认槽位智能体的原因", requiredMode = Schema.RequiredMode.REQUIRED)
|
|
@JsonProperty("reason")
|
|
public String getReason() {
|
|
return reason;
|
|
}
|
|
|
|
@JsonProperty("reason")
|
|
public void setReason(String reason) {
|
|
this.reason = reason;
|
|
}
|
|
|
|
@Override
|
|
public boolean equals(Object o) {
|
|
if (this == o) {
|
|
return true;
|
|
}
|
|
if (o == null || getClass() != o.getClass()) {
|
|
return false;
|
|
}
|
|
AgentOverrideRef agentOverrideRef = (AgentOverrideRef) o;
|
|
return Objects.equals(this.agentId, agentOverrideRef.agentId) &&
|
|
Objects.equals(this.agentVersion, agentOverrideRef.agentVersion) &&
|
|
Objects.equals(this.reason, agentOverrideRef.reason);
|
|
}
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
return Objects.hash(agentId, agentVersion, reason);
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append("class AgentOverrideRef {\n");
|
|
sb.append(" agentId: ").append(toIndentedString(agentId)).append("\n");
|
|
sb.append(" agentVersion: ").append(toIndentedString(agentVersion)).append("\n");
|
|
sb.append(" reason: ").append(toIndentedString(reason)).append("\n");
|
|
sb.append("}");
|
|
return sb.toString();
|
|
}
|
|
|
|
/**
|
|
* Convert the given object to string with each line indented by 4 spaces
|
|
* (except the first line).
|
|
*/
|
|
private String toIndentedString(@Nullable Object o) {
|
|
return o == null ? "null" : o.toString().replace("\n", "\n ");
|
|
}
|
|
}
|
|
|