Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ The official Java library for accessing ModelArk on Volcengine and BytePlus. It
<dependency>
<groupId>com.volcengine</groupId>
<artifactId>ark-runtime</artifactId>
<version>0.8.0</version>
<version>0.9.0</version>
</dependency>
```

### Gradle

```groovy
implementation 'com.volcengine:ark-runtime:0.8.0'
implementation 'com.volcengine:ark-runtime:0.9.0'
```

## Choose Volcengine or BytePlus
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.8.0
0.9.0
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.volcengine</groupId>
<artifactId>ark-runtime</artifactId>
<version>0.8.0</version>
<version>0.9.0</version>
<packaging>jar</packaging>

<name>ark-runtime</name>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,190 @@
// Copyright (c) 2026 ByteDance Ltd. and/or its affiliates.
// SPDX-License-Identifier: Apache-2.0

/*
* Ark Managed Agents Agent API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.1.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/


package com.volcengine.ark.runtime.models.agent;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import java.util.Objects;

/**
* RetrieveRequest
*/
@JsonPropertyOrder({
RetrieveRequest.JSON_PROPERTY_AGENT_ID,
RetrieveRequest.JSON_PROPERTY_VERSION
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.21.0")
public class RetrieveRequest {
public static final String JSON_PROPERTY_AGENT_ID = "agentId";
@javax.annotation.Nonnull
private String agentId;

public static final String JSON_PROPERTY_VERSION = "version";
@javax.annotation.Nullable
private Integer version;

public RetrieveRequest() {
}

public RetrieveRequest agentId(@javax.annotation.Nonnull String agentId) {

this.agentId = agentId;
return this;
}

/**
* Get agentId
* @return agentId
*/
@javax.annotation.Nonnull
@JsonProperty(value = JSON_PROPERTY_AGENT_ID, required = true)
@JsonInclude(value = JsonInclude.Include.ALWAYS)

public String getAgentId() {
return agentId;
}


@JsonProperty(value = JSON_PROPERTY_AGENT_ID, required = true)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setAgentId(@javax.annotation.Nonnull String agentId) {
this.agentId = agentId;
}

public RetrieveRequest version(@javax.annotation.Nullable Integer version) {

this.version = version;
return this;
}

/**
* 可选 Agent 版本号;省略返回当前最新版本,传入正整数返回 该历史版本的冻结视图;版本不存在返回 404。
* @return version
*/
@javax.annotation.Nullable
@JsonProperty(value = JSON_PROPERTY_VERSION, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

public Integer getVersion() {
return version;
}


@JsonProperty(value = JSON_PROPERTY_VERSION, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setVersion(@javax.annotation.Nullable Integer version) {
this.version = version;
}


@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
RetrieveRequest retrieveRequest = (RetrieveRequest) o;
return Objects.equals(this.agentId, retrieveRequest.agentId) &&
Objects.equals(this.version, retrieveRequest.version);
}

@Override
public int hashCode() {
return Objects.hash(agentId, version);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class RetrieveRequest {\n");
sb.append(" agentId: ").append(toIndentedString(agentId)).append("\n");
sb.append(" version: ").append(toIndentedString(version)).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(Object o) {
return o == null ? "null" : o.toString().replace("\n", "\n ");
}

public static class Builder {

private RetrieveRequest instance;

public Builder() {
this(new RetrieveRequest());
}

protected Builder(RetrieveRequest instance) {
this.instance = instance;
}

public RetrieveRequest.Builder agentId(String agentId) {
this.instance.agentId = agentId;
return this;
}
public RetrieveRequest.Builder version(Integer version) {
this.instance.version = version;
return this;
}


/**
* returns a built RetrieveRequest instance.
*
* The builder is not reusable.
*/
public RetrieveRequest build() {
try {
return this.instance;
} finally {
// ensure that this.instance is not reused
this.instance = null;
}
}

@Override
public String toString() {
return getClass() + "=(" + instance + ")";
}
}

/**
* Create a builder with no initialized field.
*/
public static RetrieveRequest.Builder builder() {
return new RetrieveRequest.Builder();
}

/**
* Create a builder with a shallow copy of this instance.
*/
public RetrieveRequest.Builder toBuilder() {
return new RetrieveRequest.Builder()
.agentId(getAgentId())
.version(getVersion());
}


}
Loading
Loading