Skip to content

Commit 72fe68b

Browse files
publish jdcloud-sdk-go version 1.0.1
1 parent 02634b9 commit 72fe68b

12 files changed

Lines changed: 104 additions & 16 deletions

services/agentgrid/apis/CreateBrowserTool.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ type CreateBrowserToolRequest struct {
3636
/* Browser Tool 鉴权方式,当前仅支持 `APIKey` (Optional) */
3737
AuthenticationType *string `json:"authenticationType"`
3838

39-
/* Browser Tool 网络配置类型。当前支持 `Public` 和 `SandBox`,建议显式传值。 */
39+
/* Code Interpreter 网络配置。支持 public|sandbox 两种。默认为sandbox。 */
4040
NetworkConfiguration string `json:"networkConfiguration"`
4141

4242
/* 用于保证请求幂等性。 (Optional) */
@@ -46,7 +46,7 @@ type CreateBrowserToolRequest struct {
4646
/*
4747
* param regionId: Region ID (Required)
4848
* param name: Browser Tool 名称。长度为 1~32 个字符,可包含中文、数字、大小写字母、下划线、中划线或点。 (Required)
49-
* param networkConfiguration: Browser Tool 网络配置类型。当前支持 `Public` 和 `SandBox`,建议显式传值。 (Required)
49+
* param networkConfiguration: Code Interpreter 网络配置。支持 public|sandbox 两种。默认为sandbox。 (Required)
5050
*
5151
* @Deprecated, not compatible when mandatory parameters changed
5252
*/
@@ -74,7 +74,7 @@ func NewCreateBrowserToolRequest(
7474
* param name: Browser Tool 名称。长度为 1~32 个字符,可包含中文、数字、大小写字母、下划线、中划线或点。 (Required)
7575
* param description: Browser Tool 描述信息,长度不超过 256 个字符。 (Optional)
7676
* param authenticationType: Browser Tool 鉴权方式,当前仅支持 `APIKey` (Optional)
77-
* param networkConfiguration: Browser Tool 网络配置类型。当前支持 `Public` 和 `SandBox`,建议显式传值。 (Required)
77+
* param networkConfiguration: Code Interpreter 网络配置。支持 public|sandbox 两种。默认为sandbox。 (Required)
7878
* param clientToken: 用于保证请求幂等性。 (Optional)
7979
*/
8080
func NewCreateBrowserToolRequestWithAllParams(
@@ -131,7 +131,7 @@ func (r *CreateBrowserToolRequest) SetDescription(description string) {
131131
func (r *CreateBrowserToolRequest) SetAuthenticationType(authenticationType string) {
132132
r.AuthenticationType = &authenticationType
133133
}
134-
/* param networkConfiguration: Browser Tool 网络配置类型。当前支持 `Public` 和 `SandBox`,建议显式传值。(Required) */
134+
/* param networkConfiguration: Code Interpreter 网络配置。支持 public|sandbox 两种。默认为sandbox。(Required) */
135135
func (r *CreateBrowserToolRequest) SetNetworkConfiguration(networkConfiguration string) {
136136
r.NetworkConfiguration = networkConfiguration
137137
}

services/agentgrid/apis/CreateCodeInterpreterSession.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ type CreateCodeInterpreterSessionRequest struct {
3030
/* Code Interpreter ID */
3131
CodeInterpreterId string `json:"codeInterpreterId"`
3232

33-
/* Session 名称。 (Optional) */
33+
/* Session 名称。长度为 1~32 个字符,可包含中文、数字、大小写字母、下划线、中划线或点。 (Optional) */
3434
Name *string `json:"name"`
3535

3636
/* Session 存活时间(秒)。取值范围为60~28800,默认为900秒(15分钟)。 (Optional) */
@@ -66,7 +66,7 @@ func NewCreateCodeInterpreterSessionRequest(
6666
/*
6767
* param regionId: Region ID (Required)
6868
* param codeInterpreterId: Code Interpreter ID (Required)
69-
* param name: Session 名称。 (Optional)
69+
* param name: Session 名称。长度为 1~32 个字符,可包含中文、数字、大小写字母、下划线、中划线或点。 (Optional)
7070
* param maxLifeTime: Session 存活时间(秒)。取值范围为60~28800,默认为900秒(15分钟)。 (Optional)
7171
* param clientToken: 用于保证请求幂等性。 (Optional)
7272
*/
@@ -114,7 +114,7 @@ func (r *CreateCodeInterpreterSessionRequest) SetRegionId(regionId string) {
114114
func (r *CreateCodeInterpreterSessionRequest) SetCodeInterpreterId(codeInterpreterId string) {
115115
r.CodeInterpreterId = codeInterpreterId
116116
}
117-
/* param name: Session 名称。(Optional) */
117+
/* param name: Session 名称。长度为 1~32 个字符,可包含中文、数字、大小写字母、下划线、中划线或点。(Optional) */
118118
func (r *CreateCodeInterpreterSessionRequest) SetName(name string) {
119119
r.Name = &name
120120
}

services/agentgrid/apis/DescribeBrowserToolSessions.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,6 @@ type DescribeBrowserToolSessionsResponse struct {
151151
}
152152

153153
type DescribeBrowserToolSessionsResult struct {
154-
Sessions []agentgrid.BrowserToolSession `json:"sessions"`
155-
TotalCount int `json:"totalCount"`
154+
BrowserToolSessions []agentgrid.BrowserToolSession `json:"browserToolSessions"`
155+
Total int `json:"total"`
156156
}

services/agentgrid/apis/DescribeBrowserTools.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,5 +139,5 @@ type DescribeBrowserToolsResponse struct {
139139

140140
type DescribeBrowserToolsResult struct {
141141
BrowserTools []agentgrid.BrowserTool `json:"browserTools"`
142-
TotalCount int `json:"totalCount"`
142+
Total int `json:"total"`
143143
}

services/agentgrid/apis/DescribeCodeInterpreter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,5 +112,5 @@ type DescribeCodeInterpreterResponse struct {
112112
}
113113

114114
type DescribeCodeInterpreterResult struct {
115-
CodeInterpreterView agentgrid.CodeInterpreterView `json:"codeInterpreterView"`
115+
CodeInterpreter agentgrid.CodeInterpreter `json:"codeInterpreter"`
116116
}

services/agentgrid/apis/DescribeCodeInterpreterSession.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,5 +125,5 @@ type DescribeCodeInterpreterSessionResponse struct {
125125
}
126126

127127
type DescribeCodeInterpreterSessionResult struct {
128-
CodeInterpreterSessionView agentgrid.CodeInterpreterSessionView `json:"codeInterpreterSessionView"`
128+
CodeInterpreterSession agentgrid.CodeInterpreterSession `json:"codeInterpreterSession"`
129129
}

services/agentgrid/apis/DescribeCodeInterpreterSessions.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,5 +152,5 @@ type DescribeCodeInterpreterSessionsResponse struct {
152152

153153
type DescribeCodeInterpreterSessionsResult struct {
154154
Total int `json:"total"`
155-
CodeInterpreterSessions []agentgrid.CodeInterpreterSessionView `json:"codeInterpreterSessions"`
155+
CodeInterpreterSessions []agentgrid.CodeInterpreterSession `json:"codeInterpreterSessions"`
156156
}

services/agentgrid/apis/DescribeCodeInterpreters.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,5 +138,6 @@ type DescribeCodeInterpretersResponse struct {
138138
}
139139

140140
type DescribeCodeInterpretersResult struct {
141-
CodeInterpreters []agentgrid.CodeInterpreterView `json:"codeInterpreters"`
141+
Total int `json:"total"`
142+
CodeInterpreters []agentgrid.CodeInterpreter `json:"codeInterpreters"`
142143
}

services/agentgrid/client/AgentgridClient.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func NewAgentgridClient(credential *core.Credential) *AgentgridClient {
4040
Credential: *credential,
4141
Config: *config,
4242
ServiceName: "agentgrid",
43-
Revision: "1.0.0",
43+
Revision: "1.0.1",
4444
Logger: core.NewDefaultLogger(core.LogInfo),
4545
}}
4646
}
@@ -113,7 +113,7 @@ func (c *AgentgridClient) CreateCodeInterpreter(request *agentgrid.CreateCodeInt
113113
114114
## 接口说明
115115
- 删除时会级联停止并删除该 Browser Tool 下的所有 Session。
116-
- 删除请求受理后,Browser Tool 状态会变为 `deleting`,删除完成后变为 `deleted`。`deleting` 期间不可继续创建新的 Session
116+
- 删除请求受理后,Browser Tool 状态会变为 deleting,删除完成后变为 deleteddeleting 期间不可继续创建新的 Session
117117
*/
118118
func (c *AgentgridClient) DeleteBrowserTool(request *agentgrid.DeleteBrowserToolRequest) (*agentgrid.DeleteBrowserToolResponse, error) {
119119
if request == nil {

services/agentgrid/models/BrowserToolSession.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ type BrowserToolSession struct {
2222
/* Browser Tool ID (Optional) */
2323
BrowserToolId string `json:"browserToolId"`
2424

25+
/* browser tool 名字 (Optional) */
26+
Name string `json:"name"`
27+
2528
/* Session ID (Optional) */
2629
SessionId string `json:"sessionId"`
2730

0 commit comments

Comments
 (0)