-
Notifications
You must be signed in to change notification settings - Fork 96
智能体相关:新增「查看智能体列表、「查看智能体配置」接口,均支持草稿态和已发布。旧接口「查看已发布智能体列表」以及「获取已发布智能体配置」即将在 7 月下线,请及时迁移Feature new apis #109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
jingxiang
wants to merge
15
commits into
coze-dev:main
Choose a base branch
from
jingxiang:feature-new-apis
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
智能体相关:新增「查看智能体列表、「查看智能体配置」接口,均支持草稿态和已发布。旧接口「查看已发布智能体列表」以及「获取已发布智能体配置」即将在 7 月下线,请及时迁移Feature new apis #109
Changes from 10 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
772d795
When running workflows in the Coze app, the `app_id` must be set.
jingxiang 13743af
变量名改成 appID ,跟 SDK 内的命名规则保持一致
jingxiang 4518e29
Merge branch 'main' into main
chyroc 2546e5c
Merge branch 'coze-dev:main' into main
jingxiang f889f72
Merge branch 'coze-dev:main' into main
jingxiang 3ee7fa4
Merge branch 'coze-dev:main' into main
jingxiang 086caac
Merge branch 'coze-dev:main' into main
jingxiang 0fa22dd
Merge branch 'coze-dev:main' into main
jingxiang 27a7af3
Merge branch 'coze-dev:main' into main
jingxiang 33c29f5
智能体相关:新增「查看智能体列表、「查看智能体配置」接口,均支持草稿态和已发布。旧接口「查看已发布智能体列表」以及「获取已发布智能体配置」…
jingxiang acd04d3
unicode character issue fixed
jingxiang df85117
issue fixed
jingxiang 14f8b12
@SuperBuilder
jingxiang 785d66d
connector_id
jingxiang 77b7120
ci
jingxiang File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
api/src/main/java/com/coze/openapi/client/bots/ListBotV2Req.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| package com.coze.openapi.client.bots; | ||
|
|
||
| import com.coze.openapi.client.common.BaseReq; | ||
| import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
|
||
| import lombok.AllArgsConstructor; | ||
| import lombok.Data; | ||
| import lombok.EqualsAndHashCode; | ||
| import lombok.NoArgsConstructor; | ||
| import lombok.experimental.SuperBuilder; | ||
|
|
||
| @Data | ||
| @SuperBuilder | ||
| @NoArgsConstructor | ||
| @AllArgsConstructor | ||
| @EqualsAndHashCode(callSuper = true) | ||
| public class ListBotV2Req extends BaseReq { | ||
| @JsonProperty("workspace_id") | ||
| private String workspaceID; | ||
| @JsonProperty("publish_status") | ||
| private String publishStatus; | ||
| @JsonProperty("connector_id") | ||
| private String connectorID; | ||
| @JsonProperty("page_num") | ||
| private Integer pageNum; | ||
| @JsonProperty("page_size") | ||
| private Integer pageSize; | ||
| } |
28 changes: 28 additions & 0 deletions
28
api/src/main/java/com/coze/openapi/client/bots/ListBotV2Resp.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| package com.coze.openapi.client.bots; | ||
|
|
||
| import java.util.List; | ||
|
|
||
| import com.coze.openapi.client.bots.model.BotSimpleInfo; | ||
| import com.coze.openapi.client.common.BaseResp; | ||
| import com.fasterxml.jackson.annotation.JsonInclude; | ||
| import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
|
||
| import lombok.AllArgsConstructor; | ||
| import lombok.Builder; | ||
| import lombok.Data; | ||
| import lombok.EqualsAndHashCode; | ||
| import lombok.NoArgsConstructor; | ||
|
|
||
| @Data | ||
| @Builder | ||
| @NoArgsConstructor | ||
| @AllArgsConstructor | ||
| @JsonInclude(JsonInclude.Include.NON_NULL) | ||
| @EqualsAndHashCode(callSuper = true) | ||
| public class ListBotV2Resp extends BaseResp { | ||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
| @JsonProperty("items") | ||
| private List<BotSimpleInfo> items; | ||
|
|
||
| @JsonProperty("total") | ||
| private Integer total; | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
api/src/main/java/com/coze/openapi/client/bots/RetrieveBotV2Req.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| package com.coze.openapi.client.bots; | ||
|
|
||
| import com.coze.openapi.client.common.BaseReq; | ||
| import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
|
||
| import lombok.AllArgsConstructor; | ||
| import lombok.Data; | ||
| import lombok.EqualsAndHashCode; | ||
| import lombok.NoArgsConstructor; | ||
| import lombok.experimental.SuperBuilder; | ||
|
|
||
| @Data | ||
| @SuperBuilder | ||
| @AllArgsConstructor | ||
| @NoArgsConstructor | ||
| @EqualsAndHashCode(callSuper = true) | ||
| public class RetrieveBotV2Req extends BaseReq { | ||
| @JsonProperty("bot_id") | ||
| private String botID; | ||
|
|
||
| @JsonProperty("is_published") | ||
| private Boolean isPublished; | ||
|
|
||
| public static RetrieveBotV2Req of(String botID, Boolean isPublished) { | ||
| return RetrieveBotV2Req.builder().botID(botID).isPublished(isPublished).build(); | ||
| } | ||
| } |
19 changes: 19 additions & 0 deletions
19
api/src/main/java/com/coze/openapi/client/bots/RetrieveBotV2Resp.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| package com.coze.openapi.client.bots; | ||
|
|
||
| import com.coze.openapi.client.bots.model.Bot; | ||
| import com.coze.openapi.client.common.BaseResp; | ||
|
|
||
| import lombok.Data; | ||
| import lombok.EqualsAndHashCode; | ||
| import lombok.NoArgsConstructor; | ||
| import lombok.ToString; | ||
| import lombok.experimental.SuperBuilder; | ||
|
|
||
| @Data | ||
| @SuperBuilder | ||
| @NoArgsConstructor | ||
| @EqualsAndHashCode(callSuper = true) | ||
| @ToString(callSuper = true) | ||
| public class RetrieveBotV2Resp extends BaseResp { | ||
| private Bot bot; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 58 additions & 0 deletions
58
api/src/main/java/com/coze/openapi/client/bots/model/BotBackgroundImageInfo.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,58 @@ | ||
| package com.coze.openapi.client.bots.model; | ||
|
|
||
| import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
|
||
| import lombok.AllArgsConstructor; | ||
| import lombok.Builder; | ||
| import lombok.Data; | ||
| import lombok.NoArgsConstructor; | ||
|
|
||
| @Data | ||
| @Builder | ||
| @NoArgsConstructor | ||
| @AllArgsConstructor | ||
| public class BotBackgroundImageInfo { | ||
| @JsonProperty("web_background_image") | ||
| private BackgroundImageDetail webBackgroundImage; | ||
|
|
||
| @JsonProperty("mobile_background_image") | ||
| private BackgroundImageDetail mobileBackgroundImage; | ||
|
|
||
| @Data | ||
| @Builder | ||
| @NoArgsConstructor | ||
| @AllArgsConstructor | ||
| public static class BackgroundImageDetail { | ||
| @JsonProperty("image_url") | ||
| private String imageUrl; | ||
|
|
||
| @JsonProperty("theme_color") | ||
| private String themeColor; | ||
|
|
||
| @JsonProperty("canvas_position") | ||
| private CanvasPosition canvasPosition; | ||
|
|
||
| @JsonProperty("gradient_position") | ||
| private GradientPosition gradientPosition; | ||
| } | ||
|
|
||
| @Data | ||
| @Builder | ||
| @NoArgsConstructor | ||
| @AllArgsConstructor | ||
| public static class CanvasPosition { | ||
| private Double top; | ||
| private Double left; | ||
| private Double width; | ||
| private Double height; | ||
| } | ||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
|
|
||
| @Data | ||
| @Builder | ||
| @NoArgsConstructor | ||
| @AllArgsConstructor | ||
| public static class GradientPosition { | ||
| private Double left; | ||
| private Double right; | ||
| } | ||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
| } | ||
38 changes: 38 additions & 0 deletions
38
api/src/main/java/com/coze/openapi/client/bots/model/BotSimpleInfo.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| package com.coze.openapi.client.bots.model; | ||
|
|
||
| import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
|
||
| import lombok.AllArgsConstructor; | ||
| import lombok.Builder; | ||
| import lombok.Data; | ||
| import lombok.NoArgsConstructor; | ||
|
|
||
| @Data | ||
| @Builder | ||
| @NoArgsConstructor | ||
| @AllArgsConstructor | ||
| public class BotSimpleInfo { | ||
| @JsonProperty("id") | ||
| private String id; | ||
|
|
||
| @JsonProperty("name") | ||
| private String name; | ||
|
|
||
| @JsonProperty("icon_url") | ||
| private String iconUrl; | ||
|
|
||
| @JsonProperty("updated_at") | ||
| private Long updatedAt; | ||
|
|
||
| @JsonProperty("description") | ||
| private String description; | ||
|
|
||
| @JsonProperty("is_published") | ||
| private Boolean isPublished; | ||
|
|
||
| @JsonProperty("published_at") | ||
| private Long publishedAt; | ||
|
|
||
| @JsonProperty("owner_user_id") | ||
| private String ownerUserId; | ||
| } |
32 changes: 32 additions & 0 deletions
32
api/src/main/java/com/coze/openapi/client/bots/model/BotVeriable.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| package com.coze.openapi.client.bots.model; | ||
|
|
||
| import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
|
||
| import lombok.AllArgsConstructor; | ||
| import lombok.Builder; | ||
| import lombok.Data; | ||
| import lombok.NoArgsConstructor; | ||
|
|
||
| @Data | ||
| @Builder | ||
| @NoArgsConstructor | ||
| @AllArgsConstructor | ||
| public class BotVeriable { | ||
|
jingxiang marked this conversation as resolved.
Outdated
|
||
| @JsonProperty("enable") | ||
| private Boolean enable; | ||
|
|
||
| @JsonProperty("channel") | ||
| private String channel; | ||
|
|
||
| @JsonProperty("keyword") | ||
| private String keyword; | ||
|
|
||
| @JsonProperty("description") | ||
| private String description; | ||
|
|
||
| @JsonProperty("default_value") | ||
| private String defaultValue; | ||
|
|
||
| @JsonProperty("prompt_enable") | ||
| private Boolean promptEnable; | ||
| } | ||
20 changes: 20 additions & 0 deletions
20
api/src/main/java/com/coze/openapi/client/bots/model/BotVoice.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| package com.coze.openapi.client.bots.model; | ||
|
|
||
| import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
|
||
| import lombok.AllArgsConstructor; | ||
| import lombok.Builder; | ||
| import lombok.Data; | ||
| import lombok.NoArgsConstructor; | ||
|
|
||
| @Data | ||
| @Builder | ||
| @NoArgsConstructor | ||
| @AllArgsConstructor | ||
| public class BotVoice { | ||
| @JsonProperty("voice_id") | ||
| private String voiceId; | ||
|
|
||
| @JsonProperty("language_code") | ||
| private String languageCode; | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.