|
8 | 8 | import static org.opensearch.core.xcontent.XContentParserUtils.ensureExpectedToken; |
9 | 9 | import static org.opensearch.ml.common.CommonValue.TENANT_ID_FIELD; |
10 | 10 | import static org.opensearch.ml.common.CommonValue.VERSION_2_19_0; |
11 | | -import static org.opensearch.ml.common.CommonValue.VERSION_3_3_0; |
| 11 | +import static org.opensearch.ml.common.CommonValue.VERSION_3_4_0; |
12 | 12 | import static org.opensearch.ml.common.utils.StringUtils.getParameterMap; |
13 | 13 |
|
14 | 14 | import java.io.IOException; |
@@ -110,7 +110,7 @@ public MLAgentUpdateInput(StreamInput in) throws IOException { |
110 | 110 | Version streamInputVersion = in.getVersion(); |
111 | 111 | agentId = in.readString(); |
112 | 112 | name = in.readOptionalString(); |
113 | | - type = streamInputVersion.onOrAfter(VERSION_3_3_0) ? in.readOptionalString() : null; |
| 113 | + type = streamInputVersion.onOrAfter(VERSION_3_4_0) ? in.readOptionalString() : null; |
114 | 114 | description = in.readOptionalString(); |
115 | 115 | llmModelId = in.readOptionalString(); |
116 | 116 | if (in.readBoolean()) { |
@@ -194,7 +194,7 @@ public void writeTo(StreamOutput out) throws IOException { |
194 | 194 | Version streamOutputVersion = out.getVersion(); |
195 | 195 | out.writeString(agentId); |
196 | 196 | out.writeOptionalString(name); |
197 | | - if (streamOutputVersion.onOrAfter(VERSION_3_3_0)) { |
| 197 | + if (streamOutputVersion.onOrAfter(VERSION_3_4_0)) { |
198 | 198 | out.writeOptionalString(type); |
199 | 199 | } |
200 | 200 | out.writeOptionalString(description); |
|
0 commit comments