@agentrun/sdk 0.0.1-test.21dd786
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +225 -0
- package/dist/add.d.ts +2 -0
- package/dist/add.d.ts.map +1 -0
- package/dist/agent-runtime/api/control.d.ts +190 -0
- package/dist/agent-runtime/api/control.d.ts.map +1 -0
- package/dist/agent-runtime/api/data.d.ts +38 -0
- package/dist/agent-runtime/api/data.d.ts.map +1 -0
- package/dist/agent-runtime/api/index.d.ts +5 -0
- package/dist/agent-runtime/api/index.d.ts.map +1 -0
- package/dist/agent-runtime/client.d.ts +146 -0
- package/dist/agent-runtime/client.d.ts.map +1 -0
- package/dist/agent-runtime/endpoint.d.ts +132 -0
- package/dist/agent-runtime/endpoint.d.ts.map +1 -0
- package/dist/agent-runtime/index.d.ts +12 -0
- package/dist/agent-runtime/index.d.ts.map +1 -0
- package/dist/agent-runtime/model.d.ts +327 -0
- package/dist/agent-runtime/model.d.ts.map +1 -0
- package/dist/agent-runtime/runtime.d.ts +206 -0
- package/dist/agent-runtime/runtime.d.ts.map +1 -0
- package/dist/credential/api/control.d.ts +90 -0
- package/dist/credential/api/control.d.ts.map +1 -0
- package/dist/credential/api/index.d.ts +5 -0
- package/dist/credential/api/index.d.ts.map +1 -0
- package/dist/credential/client.d.ts +57 -0
- package/dist/credential/client.d.ts.map +1 -0
- package/dist/credential/credential.d.ts +68 -0
- package/dist/credential/credential.d.ts.map +1 -0
- package/dist/credential/index.d.ts +9 -0
- package/dist/credential/index.d.ts.map +1 -0
- package/dist/credential/model.d.ts +132 -0
- package/dist/credential/model.d.ts.map +1 -0
- package/dist/index.cjs +7498 -0
- package/dist/index.d.ts +32 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +7493 -0
- package/dist/integration/adapter.d.ts +128 -0
- package/dist/integration/adapter.d.ts.map +1 -0
- package/dist/integration/index.d.ts +14 -0
- package/dist/integration/index.d.ts.map +1 -0
- package/dist/integration/mastra/adapter.d.ts +112 -0
- package/dist/integration/mastra/adapter.d.ts.map +1 -0
- package/dist/integration/mastra/index.d.ts +15 -0
- package/dist/integration/mastra/index.d.ts.map +1 -0
- package/dist/integration/mastra/types.d.ts +62 -0
- package/dist/integration/mastra/types.d.ts.map +1 -0
- package/dist/model/api/control.d.ts +162 -0
- package/dist/model/api/control.d.ts.map +1 -0
- package/dist/model/client.d.ts +91 -0
- package/dist/model/client.d.ts.map +1 -0
- package/dist/model/index.d.ts +10 -0
- package/dist/model/index.d.ts.map +1 -0
- package/dist/model/model-proxy.d.ts +186 -0
- package/dist/model/model-proxy.d.ts.map +1 -0
- package/dist/model/model-service.d.ts +185 -0
- package/dist/model/model-service.d.ts.map +1 -0
- package/dist/model/model.d.ts +227 -0
- package/dist/model/model.d.ts.map +1 -0
- package/dist/sandbox/aio-sandbox.d.ts +258 -0
- package/dist/sandbox/aio-sandbox.d.ts.map +1 -0
- package/dist/sandbox/api/aio-data.d.ts +53 -0
- package/dist/sandbox/api/aio-data.d.ts.map +1 -0
- package/dist/sandbox/api/browser-data.d.ts +85 -0
- package/dist/sandbox/api/browser-data.d.ts.map +1 -0
- package/dist/sandbox/api/code-interpreter-data.d.ts +189 -0
- package/dist/sandbox/api/code-interpreter-data.d.ts.map +1 -0
- package/dist/sandbox/api/control.d.ts +146 -0
- package/dist/sandbox/api/control.d.ts.map +1 -0
- package/dist/sandbox/api/sandbox-data.d.ts +168 -0
- package/dist/sandbox/api/sandbox-data.d.ts.map +1 -0
- package/dist/sandbox/browser-sandbox.d.ts +98 -0
- package/dist/sandbox/browser-sandbox.d.ts.map +1 -0
- package/dist/sandbox/client.d.ts +122 -0
- package/dist/sandbox/client.d.ts.map +1 -0
- package/dist/sandbox/code-interpreter-sandbox.d.ts +238 -0
- package/dist/sandbox/code-interpreter-sandbox.d.ts.map +1 -0
- package/dist/sandbox/index.d.ts +16 -0
- package/dist/sandbox/index.d.ts.map +1 -0
- package/dist/sandbox/model.d.ts +231 -0
- package/dist/sandbox/model.d.ts.map +1 -0
- package/dist/sandbox/sandbox.d.ts +90 -0
- package/dist/sandbox/sandbox.d.ts.map +1 -0
- package/dist/sandbox/template.d.ts +118 -0
- package/dist/sandbox/template.d.ts.map +1 -0
- package/dist/server/agui-protocol.d.ts +127 -0
- package/dist/server/agui-protocol.d.ts.map +1 -0
- package/dist/server/index.d.ts +8 -0
- package/dist/server/index.d.ts.map +1 -0
- package/dist/server/model.d.ts +150 -0
- package/dist/server/model.d.ts.map +1 -0
- package/dist/server/server.d.ts +66 -0
- package/dist/server/server.d.ts.map +1 -0
- package/dist/toolset/api/control.d.ts +74 -0
- package/dist/toolset/api/control.d.ts.map +1 -0
- package/dist/toolset/api/index.d.ts +10 -0
- package/dist/toolset/api/index.d.ts.map +1 -0
- package/dist/toolset/api/mcp.d.ts +85 -0
- package/dist/toolset/api/mcp.d.ts.map +1 -0
- package/dist/toolset/client.d.ts +65 -0
- package/dist/toolset/client.d.ts.map +1 -0
- package/dist/toolset/index.d.ts +15 -0
- package/dist/toolset/index.d.ts.map +1 -0
- package/dist/toolset/model.d.ts +246 -0
- package/dist/toolset/model.d.ts.map +1 -0
- package/dist/toolset/openapi.d.ts +174 -0
- package/dist/toolset/openapi.d.ts.map +1 -0
- package/dist/toolset/toolset.d.ts +161 -0
- package/dist/toolset/toolset.d.ts.map +1 -0
- package/dist/utils/config.d.ts +124 -0
- package/dist/utils/config.d.ts.map +1 -0
- package/dist/utils/control-api.d.ts +24 -0
- package/dist/utils/control-api.d.ts.map +1 -0
- package/dist/utils/data-api.d.ts +163 -0
- package/dist/utils/data-api.d.ts.map +1 -0
- package/dist/utils/exception.d.ts +67 -0
- package/dist/utils/exception.d.ts.map +1 -0
- package/dist/utils/helper.d.ts +2 -0
- package/dist/utils/helper.d.ts.map +1 -0
- package/dist/utils/index.d.ts +9 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/log.d.ts +25 -0
- package/dist/utils/log.d.ts.map +1 -0
- package/dist/utils/model.d.ts +77 -0
- package/dist/utils/model.d.ts.map +1 -0
- package/dist/utils/resource.d.ts +72 -0
- package/dist/utils/resource.d.ts.map +1 -0
- package/package.json +98 -0
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agent Runtime Client
|
|
3
|
+
*
|
|
4
|
+
* 此模块提供 Agent Runtime 的客户端 API。
|
|
5
|
+
* This module provides the client API for Agent Runtime.
|
|
6
|
+
*/
|
|
7
|
+
import { Config } from "../utils/config";
|
|
8
|
+
import { InvokeArgs } from "./api/data";
|
|
9
|
+
import { AgentRuntimeEndpoint } from "./endpoint";
|
|
10
|
+
import { AgentRuntimeCreateInput, AgentRuntimeEndpointCreateInput, AgentRuntimeEndpointListInput, AgentRuntimeEndpointUpdateInput, AgentRuntimeListInput, AgentRuntimeUpdateInput, AgentRuntimeVersion, AgentRuntimeVersionListInput } from "./model";
|
|
11
|
+
import { AgentRuntime } from "./runtime";
|
|
12
|
+
/**
|
|
13
|
+
* Agent Runtime Client
|
|
14
|
+
*
|
|
15
|
+
* 提供 Agent Runtime 的创建、删除、更新、查询和端点管理功能。
|
|
16
|
+
* Provides create, delete, update, query and endpoint management functions for Agent Runtime.
|
|
17
|
+
*/
|
|
18
|
+
export declare class AgentRuntimeClient {
|
|
19
|
+
private config?;
|
|
20
|
+
private controlApi;
|
|
21
|
+
constructor(config?: Config);
|
|
22
|
+
/**
|
|
23
|
+
* Create an Agent Runtime
|
|
24
|
+
*/
|
|
25
|
+
create: (params: {
|
|
26
|
+
input: AgentRuntimeCreateInput;
|
|
27
|
+
config?: Config;
|
|
28
|
+
}) => Promise<AgentRuntime>;
|
|
29
|
+
/**
|
|
30
|
+
* Delete an Agent Runtime
|
|
31
|
+
*/
|
|
32
|
+
delete: (params: {
|
|
33
|
+
id: string;
|
|
34
|
+
config?: Config;
|
|
35
|
+
}) => Promise<AgentRuntime>;
|
|
36
|
+
/**
|
|
37
|
+
* Update an Agent Runtime
|
|
38
|
+
*/
|
|
39
|
+
update: (params: {
|
|
40
|
+
id: string;
|
|
41
|
+
input: AgentRuntimeUpdateInput;
|
|
42
|
+
config?: Config;
|
|
43
|
+
}) => Promise<AgentRuntime>;
|
|
44
|
+
/**
|
|
45
|
+
* Get an Agent Runtime
|
|
46
|
+
*/
|
|
47
|
+
get: (params: {
|
|
48
|
+
id: string;
|
|
49
|
+
config?: Config;
|
|
50
|
+
}) => Promise<AgentRuntime>;
|
|
51
|
+
/**
|
|
52
|
+
* List Agent Runtimes
|
|
53
|
+
*/
|
|
54
|
+
list: (params?: {
|
|
55
|
+
input?: AgentRuntimeListInput;
|
|
56
|
+
config?: Config;
|
|
57
|
+
}) => Promise<AgentRuntime[]>;
|
|
58
|
+
/**
|
|
59
|
+
* List all Agent Runtimes (with pagination)
|
|
60
|
+
*/
|
|
61
|
+
listAll: (params?: {
|
|
62
|
+
options?: {
|
|
63
|
+
agentRuntimeName?: string;
|
|
64
|
+
tags?: string;
|
|
65
|
+
searchMode?: string;
|
|
66
|
+
};
|
|
67
|
+
config?: Config;
|
|
68
|
+
}) => Promise<AgentRuntime[]>;
|
|
69
|
+
/**
|
|
70
|
+
* Create an endpoint for an Agent Runtime
|
|
71
|
+
*/
|
|
72
|
+
createEndpoint: (params: {
|
|
73
|
+
agentRuntimeId: string;
|
|
74
|
+
input: AgentRuntimeEndpointCreateInput;
|
|
75
|
+
config?: Config;
|
|
76
|
+
}) => Promise<AgentRuntimeEndpoint>;
|
|
77
|
+
/**
|
|
78
|
+
* Delete an endpoint
|
|
79
|
+
*/
|
|
80
|
+
deleteEndpoint: (params: {
|
|
81
|
+
agentRuntimeId: string;
|
|
82
|
+
endpointId: string;
|
|
83
|
+
config?: Config;
|
|
84
|
+
}) => Promise<AgentRuntimeEndpoint>;
|
|
85
|
+
/**
|
|
86
|
+
* Update an endpoint
|
|
87
|
+
*/
|
|
88
|
+
updateEndpoint: (params: {
|
|
89
|
+
agentRuntimeId: string;
|
|
90
|
+
endpointId: string;
|
|
91
|
+
input: AgentRuntimeEndpointUpdateInput;
|
|
92
|
+
config?: Config;
|
|
93
|
+
}) => Promise<AgentRuntimeEndpoint>;
|
|
94
|
+
/**
|
|
95
|
+
* Get an endpoint
|
|
96
|
+
*/
|
|
97
|
+
getEndpoint: (params: {
|
|
98
|
+
agentRuntimeId: string;
|
|
99
|
+
endpointId: string;
|
|
100
|
+
config?: Config;
|
|
101
|
+
}) => Promise<AgentRuntimeEndpoint>;
|
|
102
|
+
/**
|
|
103
|
+
* List endpoints for an Agent Runtime
|
|
104
|
+
*/
|
|
105
|
+
listEndpoints: (params: {
|
|
106
|
+
agentRuntimeId: string;
|
|
107
|
+
input?: AgentRuntimeEndpointListInput;
|
|
108
|
+
config?: Config;
|
|
109
|
+
}) => Promise<AgentRuntimeEndpoint[]>;
|
|
110
|
+
/**
|
|
111
|
+
* List versions for an Agent Runtime
|
|
112
|
+
*/
|
|
113
|
+
listVersions: (params: {
|
|
114
|
+
agentRuntimeId: string;
|
|
115
|
+
input?: AgentRuntimeVersionListInput;
|
|
116
|
+
config?: Config;
|
|
117
|
+
}) => Promise<AgentRuntimeVersion[]>;
|
|
118
|
+
/**
|
|
119
|
+
* Invoke agent runtime using OpenAI-compatible API
|
|
120
|
+
*
|
|
121
|
+
* This method provides an OpenAI-compatible interface to invoke the agent runtime.
|
|
122
|
+
*
|
|
123
|
+
* @param params - Parameters including agent runtime name, endpoint name, and invocation args
|
|
124
|
+
* @returns OpenAI chat completion response
|
|
125
|
+
*
|
|
126
|
+
* @example
|
|
127
|
+
* ```typescript
|
|
128
|
+
* const client = new AgentRuntimeClient();
|
|
129
|
+
* const response = await client.invokeOpenai({
|
|
130
|
+
* agentRuntimeName: "my-runtime",
|
|
131
|
+
* agentRuntimeEndpointName: "Default",
|
|
132
|
+
* messages: [{ role: "user", content: "Hello" }],
|
|
133
|
+
* stream: false
|
|
134
|
+
* });
|
|
135
|
+
* ```
|
|
136
|
+
*/
|
|
137
|
+
invokeOpenai: (params: {
|
|
138
|
+
agentRuntimeName: string;
|
|
139
|
+
agentRuntimeEndpointName?: string;
|
|
140
|
+
} & InvokeArgs) => Promise<(import("openai/core/streaming").Stream<import("openai/resources").ChatCompletionChunk> & {
|
|
141
|
+
_request_id?: string | null;
|
|
142
|
+
}) | (import("openai/resources").ChatCompletion & {
|
|
143
|
+
_request_id?: string | null;
|
|
144
|
+
})>;
|
|
145
|
+
}
|
|
146
|
+
//# sourceMappingURL=client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/client.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAGzC,OAAO,EAAuB,UAAU,EAAE,MAAM,YAAY,CAAC;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,EACL,uBAAuB,EACvB,+BAA+B,EAC/B,6BAA6B,EAC7B,+BAA+B,EAC/B,qBAAqB,EACrB,uBAAuB,EACvB,mBAAmB,EACnB,4BAA4B,EAC7B,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAEzC;;;;;GAKG;AACH,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,MAAM,CAAC,CAAS;IACxB,OAAO,CAAC,UAAU,CAAyB;gBAE/B,MAAM,CAAC,EAAE,MAAM;IAK3B;;OAEG;IACH,MAAM,GAAU,QAAQ;QACtB,KAAK,EAAE,uBAAuB,CAAC;QAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,KAAG,OAAO,CAAC,YAAY,CAAC,CAGvB;IAEF;;OAEG;IACH,MAAM,GAAU,QAAQ;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,KAAG,OAAO,CAAC,YAAY,CAAC,CAG7E;IAEF;;OAEG;IAC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QACvC,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,KAAG,OAAO,CAAC,oBAAoB,CAAC,CAQ/B;IAEF;;OAEG;IACH,WAAW,GAAU,QAAQ;QAC3B,cAAc,EAAE,MAAM,CAAC;QACvB,UAAU,EAAE,MAAM,CAAC;QACnB,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,KAAG,OAAO,CAAC,oBAAoB,CAAC,CAO/B;IAEF;;OAEG;IACH,aAAa,GAAU,QAAQ;QAC7B,cAAc,EAAE,MAAM,CAAC;QACvB,KAAK,CAAC,EAAE,6BAA6B,CAAC;QACtC,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,KAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC,CAOjC;IAEF;;OAEG;IACH,YAAY,GAAU,QAAQ;QAC5B,cAAc,EAAE,MAAM,CAAC;QACvB,KAAK,CAAC,EAAE,4BAA4B,CAAC;QACrC,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,KAAG,OAAO,CAAC,mBAAmB,EAAE,CAAC,CAOhC;IAEF;;;;;;;;;;;;;;;;;;OAkBG;IACH,YAAY,GACV,QAAQ;QACN,gBAAgB,EAAE,MAAM,CAAC;QACzB,wBAAwB,CAAC,EAAE,MAAM,CAAC;KACnC,GAAG,UAAU;;;;QAyBd;CACH"}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agent Runtime Endpoint Resource
|
|
3
|
+
*
|
|
4
|
+
* 此模块定义 Agent Runtime Endpoint 资源类。
|
|
5
|
+
* This module defines the Agent Runtime Endpoint resource class.
|
|
6
|
+
*/
|
|
7
|
+
import * as $AgentRun from "@alicloud/agentrun20250910";
|
|
8
|
+
import { Config } from "../utils/config";
|
|
9
|
+
import { Status } from "../utils/model";
|
|
10
|
+
import { InvokeArgs } from "./api/data";
|
|
11
|
+
import { AgentRuntimeEndpointCreateInput, AgentRuntimeEndpointUpdateInput, AgentRuntimeEndpointListInput, AgentRuntimeEndpointData, AgentRuntimeEndpointRoutingConfig } from "./model";
|
|
12
|
+
/**
|
|
13
|
+
* Agent Runtime Endpoint resource class
|
|
14
|
+
*/
|
|
15
|
+
export declare class AgentRuntimeEndpoint implements AgentRuntimeEndpointData {
|
|
16
|
+
agentRuntimeEndpointArn?: string;
|
|
17
|
+
agentRuntimeEndpointId?: string;
|
|
18
|
+
agentRuntimeEndpointName?: string;
|
|
19
|
+
agentRuntimeId?: string;
|
|
20
|
+
description?: string;
|
|
21
|
+
endpointPublicUrl?: string;
|
|
22
|
+
resourceName?: string;
|
|
23
|
+
routingConfiguration?: AgentRuntimeEndpointRoutingConfig;
|
|
24
|
+
status?: Status;
|
|
25
|
+
statusReason?: string;
|
|
26
|
+
tags?: string[];
|
|
27
|
+
targetVersion?: string;
|
|
28
|
+
private _config?;
|
|
29
|
+
private _dataApi?;
|
|
30
|
+
private _agentRuntimeName?;
|
|
31
|
+
constructor(data?: Partial<AgentRuntimeEndpointData>, config?: Config);
|
|
32
|
+
/**
|
|
33
|
+
* Create endpoint from SDK response object
|
|
34
|
+
*/
|
|
35
|
+
static fromInnerObject(obj: $AgentRun.AgentRuntimeEndpoint, config?: Config): AgentRuntimeEndpoint;
|
|
36
|
+
private static getClient;
|
|
37
|
+
/**
|
|
38
|
+
* Create an endpoint by Agent Runtime ID
|
|
39
|
+
*/
|
|
40
|
+
static create(params: {
|
|
41
|
+
agentRuntimeId: string;
|
|
42
|
+
input: AgentRuntimeEndpointCreateInput;
|
|
43
|
+
config?: Config;
|
|
44
|
+
}): Promise<AgentRuntimeEndpoint>;
|
|
45
|
+
/**
|
|
46
|
+
* Delete an endpoint by ID
|
|
47
|
+
*/
|
|
48
|
+
static delete(params: {
|
|
49
|
+
agentRuntimeId: string;
|
|
50
|
+
endpointId: string;
|
|
51
|
+
config?: Config;
|
|
52
|
+
}): Promise<AgentRuntimeEndpoint>;
|
|
53
|
+
/**
|
|
54
|
+
* Update an endpoint by ID
|
|
55
|
+
*/
|
|
56
|
+
static update(params: {
|
|
57
|
+
agentRuntimeId: string;
|
|
58
|
+
endpointId: string;
|
|
59
|
+
input: AgentRuntimeEndpointUpdateInput;
|
|
60
|
+
config?: Config;
|
|
61
|
+
}): Promise<AgentRuntimeEndpoint>;
|
|
62
|
+
/**
|
|
63
|
+
* Get an endpoint by ID
|
|
64
|
+
*/
|
|
65
|
+
static get(params: {
|
|
66
|
+
agentRuntimeId: string;
|
|
67
|
+
endpointId: string;
|
|
68
|
+
config?: Config;
|
|
69
|
+
}): Promise<AgentRuntimeEndpoint>;
|
|
70
|
+
/**
|
|
71
|
+
* List endpoints by Agent Runtime ID
|
|
72
|
+
*/
|
|
73
|
+
static listById(params: {
|
|
74
|
+
agentRuntimeId: string;
|
|
75
|
+
input?: AgentRuntimeEndpointListInput;
|
|
76
|
+
config?: Config;
|
|
77
|
+
}): Promise<AgentRuntimeEndpoint[]>;
|
|
78
|
+
/**
|
|
79
|
+
* Delete this endpoint
|
|
80
|
+
*/
|
|
81
|
+
delete: (params?: {
|
|
82
|
+
config?: Config;
|
|
83
|
+
}) => Promise<AgentRuntimeEndpoint>;
|
|
84
|
+
/**
|
|
85
|
+
* Update this endpoint
|
|
86
|
+
*/
|
|
87
|
+
update: (params: {
|
|
88
|
+
input: AgentRuntimeEndpointUpdateInput;
|
|
89
|
+
config?: Config;
|
|
90
|
+
}) => Promise<AgentRuntimeEndpoint>;
|
|
91
|
+
/**
|
|
92
|
+
* Refresh this endpoint's data
|
|
93
|
+
*/
|
|
94
|
+
refresh: (params?: {
|
|
95
|
+
config?: Config;
|
|
96
|
+
}) => Promise<AgentRuntimeEndpoint>;
|
|
97
|
+
/**
|
|
98
|
+
* Wait until the endpoint is ready
|
|
99
|
+
*/
|
|
100
|
+
waitUntilReady: (options?: {
|
|
101
|
+
timeoutSeconds?: number;
|
|
102
|
+
intervalSeconds?: number;
|
|
103
|
+
beforeCheck?: (endpoint: AgentRuntimeEndpoint) => void;
|
|
104
|
+
}, config?: Config) => Promise<AgentRuntimeEndpoint>;
|
|
105
|
+
/**
|
|
106
|
+
* Invoke agent runtime using OpenAI-compatible API through this endpoint
|
|
107
|
+
*
|
|
108
|
+
* This method provides an OpenAI-compatible interface to invoke the agent runtime
|
|
109
|
+
* through this specific endpoint.
|
|
110
|
+
*
|
|
111
|
+
* @param args - Invocation arguments
|
|
112
|
+
* @returns OpenAI chat completion response
|
|
113
|
+
*
|
|
114
|
+
* @example
|
|
115
|
+
* ```typescript
|
|
116
|
+
* const endpoint = await AgentRuntimeEndpoint.get({
|
|
117
|
+
* agentRuntimeId: "runtime-id",
|
|
118
|
+
* endpointId: "endpoint-id"
|
|
119
|
+
* });
|
|
120
|
+
* const response = await endpoint.invokeOpenai({
|
|
121
|
+
* messages: [{ role: "user", content: "Hello" }],
|
|
122
|
+
* stream: false
|
|
123
|
+
* });
|
|
124
|
+
* ```
|
|
125
|
+
*/
|
|
126
|
+
invokeOpenai: (args: InvokeArgs) => Promise<(import("openai/core/streaming").Stream<import("openai/resources").ChatCompletionChunk> & {
|
|
127
|
+
_request_id?: string | null;
|
|
128
|
+
}) | (import("openai/resources").ChatCompletion & {
|
|
129
|
+
_request_id?: string | null;
|
|
130
|
+
})>;
|
|
131
|
+
}
|
|
132
|
+
//# sourceMappingURL=endpoint.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"endpoint.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/endpoint.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,SAAS,MAAM,4BAA4B,CAAC;AAExD,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAGzC,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAGxC,OAAO,EAAuB,UAAU,EAAE,MAAM,YAAY,CAAC;AAC7D,OAAO,EACL,+BAA+B,EAC/B,+BAA+B,EAC/B,6BAA6B,EAC7B,wBAAwB,EACxB,iCAAiC,EAClC,MAAM,SAAS,CAAC;AAE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;;;;OAoBG;IACH,YAAY,GAAU,MAAM,UAAU;;;;QAoCpC;CACH"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agent Runtime module exports
|
|
3
|
+
*/
|
|
4
|
+
export { AgentRuntimeClient } from "./client";
|
|
5
|
+
export { AgentRuntime } from "./runtime";
|
|
6
|
+
export { AgentRuntimeEndpoint } from "./endpoint";
|
|
7
|
+
export { AgentRuntimeControlAPI } from "./api/control";
|
|
8
|
+
export { AgentRuntimeDataAPI } from "./api/data";
|
|
9
|
+
export { AgentRuntimeArtifact, AgentRuntimeLanguage, AgentRuntimeProtocolType, codeFromFile, codeFromOss, codeFromZipFile, } from "./model";
|
|
10
|
+
export type { AgentRuntimeCode, AgentRuntimeContainer, AgentRuntimeHealthCheckConfig, AgentRuntimeLogConfig, AgentRuntimeProtocolConfig, AgentRuntimeEndpointRoutingConfig, AgentRuntimeEndpointRoutingWeight, AgentRuntimeCreateInput, AgentRuntimeUpdateInput, AgentRuntimeListInput, AgentRuntimeEndpointCreateInput, AgentRuntimeEndpointUpdateInput, AgentRuntimeEndpointListInput, AgentRuntimeVersion, AgentRuntimeVersionListInput, AgentRuntimeData, AgentRuntimeEndpointData, } from "./model";
|
|
11
|
+
export type { InvokeArgs } from "./api/data";
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEjD,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,wBAAwB,EACxB,YAAY,EACZ,WAAW,EACX,eAAe,GAChB,MAAM,SAAS,CAAC;AAEjB,YAAY,EACV,gBAAgB,EAChB,qBAAqB,EACrB,6BAA6B,EAC7B,qBAAqB,EACrB,0BAA0B,EAC1B,iCAAiC,EACjC,iCAAiC,EACjC,uBAAuB,EACvB,uBAAuB,EACvB,qBAAqB,EACrB,+BAA+B,EAC/B,+BAA+B,EAC/B,6BAA6B,EAC7B,mBAAmB,EACnB,4BAA4B,EAC5B,gBAAgB,EAChB,wBAAwB,GACzB,MAAM,SAAS,CAAC;AAEjB,YAAY,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,327 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agent Runtime Data Models
|
|
3
|
+
*
|
|
4
|
+
* 此模块定义 Agent Runtime 相关的所有数据模型、枚举和输入输出对象。
|
|
5
|
+
* This module defines all data models, enums, and input/output objects related to Agent Runtime.
|
|
6
|
+
*/
|
|
7
|
+
import { Status } from "../utils/model";
|
|
8
|
+
import type { NetworkConfig, PageableInput } from "../utils/model";
|
|
9
|
+
/**
|
|
10
|
+
* Agent Runtime artifact type
|
|
11
|
+
*/
|
|
12
|
+
export type AgentRuntimeArtifact = "Code" | "Container";
|
|
13
|
+
export declare const AgentRuntimeArtifact: {
|
|
14
|
+
CODE: AgentRuntimeArtifact;
|
|
15
|
+
CONTAINER: AgentRuntimeArtifact;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Agent Runtime language
|
|
19
|
+
*/
|
|
20
|
+
export type AgentRuntimeLanguage = "python3.10" | "python3.12" | "nodejs18" | "nodejs20" | "java8" | "java11";
|
|
21
|
+
export declare const AgentRuntimeLanguage: {
|
|
22
|
+
PYTHON310: AgentRuntimeLanguage;
|
|
23
|
+
PYTHON312: AgentRuntimeLanguage;
|
|
24
|
+
NODEJS18: AgentRuntimeLanguage;
|
|
25
|
+
NODEJS20: AgentRuntimeLanguage;
|
|
26
|
+
JAVA8: AgentRuntimeLanguage;
|
|
27
|
+
JAVA11: AgentRuntimeLanguage;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Agent Runtime protocol type
|
|
31
|
+
*/
|
|
32
|
+
export type AgentRuntimeProtocolType = "HTTP" | "MCP";
|
|
33
|
+
export declare const AgentRuntimeProtocolType: {
|
|
34
|
+
HTTP: AgentRuntimeProtocolType;
|
|
35
|
+
MCP: AgentRuntimeProtocolType;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Agent Runtime code configuration
|
|
39
|
+
*/
|
|
40
|
+
export interface AgentRuntimeCode {
|
|
41
|
+
/** CRC-64 checksum of the code package */
|
|
42
|
+
checksum?: string;
|
|
43
|
+
/** Command to run in the runtime (e.g., ["python"]) */
|
|
44
|
+
command?: string[];
|
|
45
|
+
/** Programming language runtime */
|
|
46
|
+
language?: AgentRuntimeLanguage;
|
|
47
|
+
/** OSS bucket name */
|
|
48
|
+
ossBucketName?: string;
|
|
49
|
+
/** OSS object name */
|
|
50
|
+
ossObjectName?: string;
|
|
51
|
+
/** Base64 encoded ZIP file */
|
|
52
|
+
zipFile?: string;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Create AgentRuntimeCode from a ZIP file
|
|
56
|
+
*/
|
|
57
|
+
export declare function codeFromZipFile(language: AgentRuntimeLanguage, command: string[], zipFilePath: string): Promise<AgentRuntimeCode>;
|
|
58
|
+
/**
|
|
59
|
+
* Create AgentRuntimeCode from OSS
|
|
60
|
+
*/
|
|
61
|
+
export declare function codeFromOss(language: AgentRuntimeLanguage, command: string[], bucket: string, object: string): AgentRuntimeCode;
|
|
62
|
+
/**
|
|
63
|
+
* Create AgentRuntimeCode from a file or directory
|
|
64
|
+
*/
|
|
65
|
+
export declare function codeFromFile(language: AgentRuntimeLanguage, command: string[], filePath: string): Promise<AgentRuntimeCode>;
|
|
66
|
+
/**
|
|
67
|
+
* Agent Runtime container configuration
|
|
68
|
+
*/
|
|
69
|
+
export interface AgentRuntimeContainer {
|
|
70
|
+
/** Command to run in the runtime */
|
|
71
|
+
command?: string[];
|
|
72
|
+
/** Container image address */
|
|
73
|
+
image?: string;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Agent Runtime health check configuration
|
|
77
|
+
*/
|
|
78
|
+
export interface AgentRuntimeHealthCheckConfig {
|
|
79
|
+
/** Failure threshold before marking unhealthy */
|
|
80
|
+
failureThreshold?: number;
|
|
81
|
+
/** HTTP GET URL for health check */
|
|
82
|
+
httpGetUrl?: string;
|
|
83
|
+
/** Initial delay before first health check (seconds) */
|
|
84
|
+
initialDelaySeconds?: number;
|
|
85
|
+
/** Health check interval (seconds) */
|
|
86
|
+
periodSeconds?: number;
|
|
87
|
+
/** Success threshold before marking healthy */
|
|
88
|
+
successThreshold?: number;
|
|
89
|
+
/** Health check timeout (seconds) */
|
|
90
|
+
timeoutSeconds?: number;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Agent Runtime log configuration
|
|
94
|
+
*/
|
|
95
|
+
export interface AgentRuntimeLogConfig {
|
|
96
|
+
/** SLS project name */
|
|
97
|
+
project: string;
|
|
98
|
+
/** SLS logstore name */
|
|
99
|
+
logstore: string;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Agent Runtime protocol configuration
|
|
103
|
+
*/
|
|
104
|
+
export interface AgentRuntimeProtocolConfig {
|
|
105
|
+
/** Protocol type */
|
|
106
|
+
type?: AgentRuntimeProtocolType;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Endpoint routing weight configuration
|
|
110
|
+
*/
|
|
111
|
+
export interface AgentRuntimeEndpointRoutingWeight {
|
|
112
|
+
/** Version identifier */
|
|
113
|
+
version?: string;
|
|
114
|
+
/** Weight value */
|
|
115
|
+
weight?: number;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Endpoint routing configuration
|
|
119
|
+
*/
|
|
120
|
+
export interface AgentRuntimeEndpointRoutingConfig {
|
|
121
|
+
/** Version weights list */
|
|
122
|
+
versionWeights?: AgentRuntimeEndpointRoutingWeight[];
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Agent Runtime create input
|
|
126
|
+
*/
|
|
127
|
+
export interface AgentRuntimeCreateInput {
|
|
128
|
+
/** Agent Runtime name */
|
|
129
|
+
agentRuntimeName?: string;
|
|
130
|
+
/** Artifact type (Code or Container) */
|
|
131
|
+
artifactType?: AgentRuntimeArtifact;
|
|
132
|
+
/** Code configuration */
|
|
133
|
+
codeConfiguration?: AgentRuntimeCode;
|
|
134
|
+
/** Container configuration */
|
|
135
|
+
containerConfiguration?: AgentRuntimeContainer;
|
|
136
|
+
/** CPU cores */
|
|
137
|
+
cpu?: number;
|
|
138
|
+
/** Credential name */
|
|
139
|
+
credentialName?: string;
|
|
140
|
+
/** Description */
|
|
141
|
+
description?: string;
|
|
142
|
+
/** Environment variables */
|
|
143
|
+
environmentVariables?: Record<string, string>;
|
|
144
|
+
/** Execution role ARN */
|
|
145
|
+
executionRoleArn?: string;
|
|
146
|
+
/** Health check configuration */
|
|
147
|
+
healthCheckConfiguration?: AgentRuntimeHealthCheckConfig;
|
|
148
|
+
/** Log configuration */
|
|
149
|
+
logConfiguration?: AgentRuntimeLogConfig;
|
|
150
|
+
/** Memory in MB */
|
|
151
|
+
memory?: number;
|
|
152
|
+
/** Network configuration */
|
|
153
|
+
networkConfiguration?: NetworkConfig;
|
|
154
|
+
/** Port number */
|
|
155
|
+
port?: number;
|
|
156
|
+
/** Protocol configuration */
|
|
157
|
+
protocolConfiguration?: AgentRuntimeProtocolConfig;
|
|
158
|
+
/** Session concurrency limit per instance */
|
|
159
|
+
sessionConcurrencyLimitPerInstance?: number;
|
|
160
|
+
/** Session idle timeout in seconds */
|
|
161
|
+
sessionIdleTimeoutSeconds?: number;
|
|
162
|
+
/** Tags */
|
|
163
|
+
tags?: string[];
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* Agent Runtime update input
|
|
167
|
+
*/
|
|
168
|
+
export interface AgentRuntimeUpdateInput {
|
|
169
|
+
/** Agent Runtime name */
|
|
170
|
+
agentRuntimeName?: string;
|
|
171
|
+
/** Artifact type (Code or Container) */
|
|
172
|
+
artifactType?: AgentRuntimeArtifact;
|
|
173
|
+
/** Code configuration */
|
|
174
|
+
codeConfiguration?: AgentRuntimeCode;
|
|
175
|
+
/** Container configuration */
|
|
176
|
+
containerConfiguration?: AgentRuntimeContainer;
|
|
177
|
+
/** CPU cores */
|
|
178
|
+
cpu?: number;
|
|
179
|
+
/** Credential name */
|
|
180
|
+
credentialName?: string;
|
|
181
|
+
/** Description */
|
|
182
|
+
description?: string;
|
|
183
|
+
/** Environment variables */
|
|
184
|
+
environmentVariables?: Record<string, string>;
|
|
185
|
+
/** Execution role ARN */
|
|
186
|
+
executionRoleArn?: string;
|
|
187
|
+
/** Health check configuration */
|
|
188
|
+
healthCheckConfiguration?: AgentRuntimeHealthCheckConfig;
|
|
189
|
+
/** Log configuration */
|
|
190
|
+
logConfiguration?: AgentRuntimeLogConfig;
|
|
191
|
+
/** Memory in MB */
|
|
192
|
+
memory?: number;
|
|
193
|
+
/** Network configuration */
|
|
194
|
+
networkConfiguration?: NetworkConfig;
|
|
195
|
+
/** Port number */
|
|
196
|
+
port?: number;
|
|
197
|
+
/** Protocol configuration */
|
|
198
|
+
protocolConfiguration?: AgentRuntimeProtocolConfig;
|
|
199
|
+
/** Session concurrency limit per instance */
|
|
200
|
+
sessionConcurrencyLimitPerInstance?: number;
|
|
201
|
+
/** Session idle timeout in seconds */
|
|
202
|
+
sessionIdleTimeoutSeconds?: number;
|
|
203
|
+
/** Tags */
|
|
204
|
+
tags?: string[];
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* Agent Runtime list input
|
|
208
|
+
*/
|
|
209
|
+
export interface AgentRuntimeListInput extends PageableInput {
|
|
210
|
+
/** Filter by name */
|
|
211
|
+
agentRuntimeName?: string;
|
|
212
|
+
/** Filter by tags (comma separated) */
|
|
213
|
+
tags?: string;
|
|
214
|
+
/** Search mode */
|
|
215
|
+
searchMode?: string;
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* Agent Runtime endpoint create input
|
|
219
|
+
*/
|
|
220
|
+
export interface AgentRuntimeEndpointCreateInput {
|
|
221
|
+
/** Endpoint name */
|
|
222
|
+
agentRuntimeEndpointName?: string;
|
|
223
|
+
/** Description */
|
|
224
|
+
description?: string;
|
|
225
|
+
/** Routing configuration */
|
|
226
|
+
routingConfiguration?: AgentRuntimeEndpointRoutingConfig;
|
|
227
|
+
/** Tags */
|
|
228
|
+
tags?: string[];
|
|
229
|
+
/** Target version */
|
|
230
|
+
targetVersion?: string;
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* Agent Runtime endpoint update input
|
|
234
|
+
*/
|
|
235
|
+
export interface AgentRuntimeEndpointUpdateInput {
|
|
236
|
+
/** Endpoint name */
|
|
237
|
+
agentRuntimeEndpointName?: string;
|
|
238
|
+
/** Description */
|
|
239
|
+
description?: string;
|
|
240
|
+
/** Routing configuration */
|
|
241
|
+
routingConfiguration?: AgentRuntimeEndpointRoutingConfig;
|
|
242
|
+
/** Tags */
|
|
243
|
+
tags?: string[];
|
|
244
|
+
/** Target version */
|
|
245
|
+
targetVersion?: string;
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
* Agent Runtime endpoint list input
|
|
249
|
+
*/
|
|
250
|
+
export interface AgentRuntimeEndpointListInput extends PageableInput {
|
|
251
|
+
/** Filter by endpoint name */
|
|
252
|
+
endpointName?: string;
|
|
253
|
+
/** Search mode */
|
|
254
|
+
searchMode?: string;
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* Agent Runtime version
|
|
258
|
+
*/
|
|
259
|
+
export interface AgentRuntimeVersion {
|
|
260
|
+
/** Agent Runtime ARN */
|
|
261
|
+
agentRuntimeArn?: string;
|
|
262
|
+
/** Agent Runtime ID */
|
|
263
|
+
agentRuntimeId?: string;
|
|
264
|
+
/** Agent Runtime name */
|
|
265
|
+
agentRuntimeName?: string;
|
|
266
|
+
/** Version number */
|
|
267
|
+
agentRuntimeVersion?: string;
|
|
268
|
+
/** Version description */
|
|
269
|
+
description?: string;
|
|
270
|
+
/** Last update timestamp */
|
|
271
|
+
lastUpdatedAt?: string;
|
|
272
|
+
}
|
|
273
|
+
/**
|
|
274
|
+
* Agent Runtime version list input
|
|
275
|
+
*/
|
|
276
|
+
export interface AgentRuntimeVersionListInput extends PageableInput {
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* Agent Runtime data (internal representation from API)
|
|
280
|
+
*/
|
|
281
|
+
export interface AgentRuntimeData {
|
|
282
|
+
agentRuntimeArn?: string;
|
|
283
|
+
agentRuntimeId?: string;
|
|
284
|
+
agentRuntimeName?: string;
|
|
285
|
+
agentRuntimeVersion?: string;
|
|
286
|
+
artifactType?: string;
|
|
287
|
+
codeConfiguration?: AgentRuntimeCode;
|
|
288
|
+
containerConfiguration?: AgentRuntimeContainer;
|
|
289
|
+
cpu?: number;
|
|
290
|
+
createdAt?: string;
|
|
291
|
+
credentialName?: string;
|
|
292
|
+
description?: string;
|
|
293
|
+
environmentVariables?: Record<string, string>;
|
|
294
|
+
executionRoleArn?: string;
|
|
295
|
+
healthCheckConfiguration?: AgentRuntimeHealthCheckConfig;
|
|
296
|
+
lastUpdatedAt?: string;
|
|
297
|
+
logConfiguration?: AgentRuntimeLogConfig;
|
|
298
|
+
memory?: number;
|
|
299
|
+
networkConfiguration?: NetworkConfig;
|
|
300
|
+
port?: number;
|
|
301
|
+
protocolConfiguration?: AgentRuntimeProtocolConfig;
|
|
302
|
+
resourceName?: string;
|
|
303
|
+
sessionConcurrencyLimitPerInstance?: number;
|
|
304
|
+
sessionIdleTimeoutSeconds?: number;
|
|
305
|
+
status?: Status;
|
|
306
|
+
statusReason?: string;
|
|
307
|
+
tags?: string[];
|
|
308
|
+
}
|
|
309
|
+
/**
|
|
310
|
+
* Agent Runtime endpoint data (internal representation from API)
|
|
311
|
+
*/
|
|
312
|
+
export interface AgentRuntimeEndpointData {
|
|
313
|
+
agentRuntimeEndpointArn?: string;
|
|
314
|
+
agentRuntimeEndpointId?: string;
|
|
315
|
+
agentRuntimeEndpointName?: string;
|
|
316
|
+
agentRuntimeId?: string;
|
|
317
|
+
description?: string;
|
|
318
|
+
endpointPublicUrl?: string;
|
|
319
|
+
resourceName?: string;
|
|
320
|
+
routingConfiguration?: AgentRuntimeEndpointRoutingConfig;
|
|
321
|
+
status?: Status;
|
|
322
|
+
statusReason?: string;
|
|
323
|
+
tags?: string[];
|
|
324
|
+
targetVersion?: string;
|
|
325
|
+
}
|
|
326
|
+
export { Status, NetworkConfig };
|
|
327
|
+
//# sourceMappingURL=model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/model.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEnE;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG,WAAW,CAAC;AAExD,eAAO,MAAM,oBAAoB;UACf,oBAAoB;eACV,oBAAoB;CAC/C,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAC5B,YAAY,GACZ,YAAY,GACZ,UAAU,GACV,UAAU,GACV,OAAO,GACP,QAAQ,CAAC;AAEb,eAAO,MAAM,oBAAoB;eACJ,oBAAoB;eACpB,oBAAoB;cACvB,oBAAoB;cACpB,oBAAoB;WAC1B,oBAAoB;YAClB,oBAAoB;CACzC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,MAAM,GAAG,KAAK,CAAC;AAEtD,eAA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