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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
44 changes: 44 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Java CI

on:
pull_request:
branches:
- main
# A workflow added by a pull request is not loaded from the base branch for
# that pull_request event. Running the workflow from ark-hand's same-repo
# sync branch makes the first workflow-installation PR testable as well.
push:
branches:
- "sync/**"
paths:
- ".github/workflows/ci.yml"

permissions:
contents: read

concurrency:
group: java-ci-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
java-ci:
name: Java CI
runs-on: ubuntu-latest
timeout-minutes: 15

steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "8"
cache: maven

- name: Compile
run: mvn -B compile

- name: Package
run: mvn -B package -DskipTests
33 changes: 16 additions & 17 deletions src/main/java/com/volcengine/ark/runtime/models/agent/Agent.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* 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
Expand Down Expand Up @@ -146,7 +146,7 @@ public Agent() {
}

public Agent id(@javax.annotation.Nonnull String id) {

this.id = id;
return this;
}
Expand All @@ -171,7 +171,7 @@ public void setId(@javax.annotation.Nonnull String id) {
}

public Agent type(@javax.annotation.Nonnull TypeEnum type) {

this.type = type;
return this;
}
Expand All @@ -196,7 +196,7 @@ public void setType(@javax.annotation.Nonnull TypeEnum type) {
}

public Agent name(@javax.annotation.Nonnull String name) {

this.name = name;
return this;
}
Expand All @@ -221,7 +221,7 @@ public void setName(@javax.annotation.Nonnull String name) {
}

public Agent description(@javax.annotation.Nullable String description) {

this.description = description;
return this;
}
Expand All @@ -246,7 +246,7 @@ public void setDescription(@javax.annotation.Nullable String description) {
}

public Agent version(@javax.annotation.Nonnull Integer version) {

this.version = version;
return this;
}
Expand All @@ -271,7 +271,7 @@ public void setVersion(@javax.annotation.Nonnull Integer version) {
}

public Agent model(@javax.annotation.Nullable ModelConfig model) {

this.model = model;
return this;
}
Expand All @@ -296,7 +296,7 @@ public void setModel(@javax.annotation.Nullable ModelConfig model) {
}

public Agent system(@javax.annotation.Nullable String system) {

this.system = system;
return this;
}
Expand All @@ -321,7 +321,7 @@ public void setSystem(@javax.annotation.Nullable String system) {
}

public Agent tools(@javax.annotation.Nullable List<ToolItem> tools) {

this.tools = tools;
return this;
}
Expand Down Expand Up @@ -354,7 +354,7 @@ public void setTools(@javax.annotation.Nullable List<ToolItem> tools) {
}

public Agent mcpServers(@javax.annotation.Nullable List<MCPServer> mcpServers) {

this.mcpServers = mcpServers;
return this;
}
Expand Down Expand Up @@ -387,7 +387,7 @@ public void setMcpServers(@javax.annotation.Nullable List<MCPServer> mcpServers)
}

public Agent skills(@javax.annotation.Nullable List<AgentSkillRef> skills) {

this.skills = skills;
return this;
}
Expand Down Expand Up @@ -420,7 +420,7 @@ public void setSkills(@javax.annotation.Nullable List<AgentSkillRef> skills) {
}

public Agent multiagent(@javax.annotation.Nullable MultiagentConfig multiagent) {

this.multiagent = multiagent;
return this;
}
Expand All @@ -445,7 +445,7 @@ public void setMultiagent(@javax.annotation.Nullable MultiagentConfig multiagent
}

public Agent metadata(@javax.annotation.Nullable Map<String, String> metadata) {

this.metadata = metadata;
return this;
}
Expand Down Expand Up @@ -478,7 +478,7 @@ public void setMetadata(@javax.annotation.Nullable Map<String, String> metadata)
}

public Agent tags(@javax.annotation.Nullable List<Tag> tags) {

this.tags = tags;
return this;
}
Expand Down Expand Up @@ -511,7 +511,7 @@ public void setTags(@javax.annotation.Nullable List<Tag> tags) {
}

public Agent createdAt(@javax.annotation.Nonnull String createdAt) {

this.createdAt = createdAt;
return this;
}
Expand All @@ -536,7 +536,7 @@ public void setCreatedAt(@javax.annotation.Nonnull String createdAt) {
}

public Agent updatedAt(@javax.annotation.Nonnull String updatedAt) {

this.updatedAt = updatedAt;
return this;
}
Expand Down Expand Up @@ -748,4 +748,3 @@ public Agent.Builder toBuilder() {


}

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* 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
Expand Down Expand Up @@ -47,7 +47,7 @@ public AgentRef() {
}

public AgentRef type(@javax.annotation.Nonnull AgentRefType type) {

this.type = type;
return this;
}
Expand All @@ -72,7 +72,7 @@ public void setType(@javax.annotation.Nonnull AgentRefType type) {
}

public AgentRef id(@javax.annotation.Nullable String id) {

this.id = id;
return this;
}
Expand All @@ -97,7 +97,7 @@ public void setId(@javax.annotation.Nullable String id) {
}

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

this.version = version;
return this;
}
Expand Down Expand Up @@ -225,4 +225,3 @@ public AgentRef.Builder toBuilder() {


}

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* 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
Expand All @@ -24,9 +24,9 @@
* 多 Agent 引用类型。
*/
public enum AgentRefType {

AGENT("agent"),

SELF("self");

private String value;
Expand Down Expand Up @@ -55,4 +55,3 @@ public static AgentRefType fromValue(String value) {
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* 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
Expand Down Expand Up @@ -47,7 +47,7 @@ public AgentSkillRef() {
}

public AgentSkillRef type(@javax.annotation.Nonnull SkillRefType type) {

this.type = type;
return this;
}
Expand All @@ -72,7 +72,7 @@ public void setType(@javax.annotation.Nonnull SkillRefType type) {
}

public AgentSkillRef skillId(@javax.annotation.Nullable String skillId) {

this.skillId = skillId;
return this;
}
Expand All @@ -97,7 +97,7 @@ public void setSkillId(@javax.annotation.Nullable String skillId) {
}

public AgentSkillRef version(@javax.annotation.Nullable String version) {

this.version = version;
return this;
}
Expand Down Expand Up @@ -225,4 +225,3 @@ public AgentSkillRef.Builder toBuilder() {


}

Loading
Loading