@mlhub/agents-ts-sdk 0.18.0
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/.openapi-generator/FILES +37 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +45 -0
- package/dist/apis/AgentsApi.d.ts +79 -0
- package/dist/apis/AgentsApi.js +281 -0
- package/dist/apis/HealthApi.d.ts +25 -0
- package/dist/apis/HealthApi.js +118 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +20 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +21 -0
- package/dist/models/Agent.d.ts +130 -0
- package/dist/models/Agent.js +76 -0
- package/dist/models/AgentArtifactType.d.ts +27 -0
- package/dist/models/AgentArtifactType.js +42 -0
- package/dist/models/AgentDeploymentModality.d.ts +23 -0
- package/dist/models/AgentDeploymentModality.js +38 -0
- package/dist/models/AgentLiveness.d.ts +23 -0
- package/dist/models/AgentLiveness.js +38 -0
- package/dist/models/AgentProvider.d.ts +33 -0
- package/dist/models/AgentProvider.js +42 -0
- package/dist/models/AgentRecord.d.ts +124 -0
- package/dist/models/AgentRecord.js +74 -0
- package/dist/models/AgentSkill.d.ts +51 -0
- package/dist/models/AgentSkill.js +48 -0
- package/dist/models/ArtifactLocator.d.ts +34 -0
- package/dist/models/ArtifactLocator.js +43 -0
- package/dist/models/Capabilities.d.ts +33 -0
- package/dist/models/Capabilities.js +42 -0
- package/dist/models/CreateAgentBody.d.ts +76 -0
- package/dist/models/CreateAgentBody.js +58 -0
- package/dist/models/CreateAgentRecordBody.d.ts +106 -0
- package/dist/models/CreateAgentRecordBody.js +68 -0
- package/dist/models/CreateAgentRecordResponse.d.ts +52 -0
- package/dist/models/CreateAgentRecordResponse.js +49 -0
- package/dist/models/CreateAgentResponse.d.ts +52 -0
- package/dist/models/CreateAgentResponse.js +49 -0
- package/dist/models/Endpoint.d.ts +57 -0
- package/dist/models/Endpoint.js +50 -0
- package/dist/models/ListAgentRecordsResponse.d.ts +52 -0
- package/dist/models/ListAgentRecordsResponse.js +49 -0
- package/dist/models/ListAgentsResponse.d.ts +52 -0
- package/dist/models/ListAgentsResponse.js +49 -0
- package/dist/models/MessageBinding.d.ts +24 -0
- package/dist/models/MessageBinding.js +39 -0
- package/dist/models/RestHttpAgentEndpoint.d.ts +46 -0
- package/dist/models/RestHttpAgentEndpoint.js +48 -0
- package/dist/models/RestHttpAgentInterface.d.ts +46 -0
- package/dist/models/RestHttpAgentInterface.js +48 -0
- package/dist/models/RestHttpLivenessProbe.d.ts +51 -0
- package/dist/models/RestHttpLivenessProbe.js +48 -0
- package/dist/models/RpcAgentEndpoint.d.ts +40 -0
- package/dist/models/RpcAgentEndpoint.js +46 -0
- package/dist/models/RpcAgentInterface.d.ts +40 -0
- package/dist/models/RpcAgentInterface.js +46 -0
- package/dist/models/StdioAgentEndpoint.d.ts +40 -0
- package/dist/models/StdioAgentEndpoint.js +46 -0
- package/dist/models/StdioAgentInterface.d.ts +40 -0
- package/dist/models/StdioAgentInterface.js +46 -0
- package/dist/models/Visibility.d.ts +23 -0
- package/dist/models/Visibility.js +38 -0
- package/dist/models/index.d.ts +25 -0
- package/dist/models/index.js +43 -0
- package/dist/runtime.d.ts +140 -0
- package/dist/runtime.js +430 -0
- package/package.json +15 -0
- package/src/apis/AgentsApi.ts +207 -0
- package/src/apis/HealthApi.ts +48 -0
- package/src/apis/index.ts +4 -0
- package/src/index.ts +5 -0
- package/src/models/Agent.ts +223 -0
- package/src/models/AgentArtifactType.ts +40 -0
- package/src/models/AgentDeploymentModality.ts +36 -0
- package/src/models/AgentLiveness.ts +36 -0
- package/src/models/AgentProvider.ts +64 -0
- package/src/models/AgentRecord.ts +219 -0
- package/src/models/AgentSkill.ts +88 -0
- package/src/models/ArtifactLocator.ts +71 -0
- package/src/models/Capabilities.ts +64 -0
- package/src/models/CreateAgentBody.ts +143 -0
- package/src/models/CreateAgentRecordBody.ts +195 -0
- package/src/models/CreateAgentRecordResponse.ts +95 -0
- package/src/models/CreateAgentResponse.ts +95 -0
- package/src/models/Endpoint.ts +96 -0
- package/src/models/ListAgentRecordsResponse.ts +95 -0
- package/src/models/ListAgentsResponse.ts +95 -0
- package/src/models/MessageBinding.ts +37 -0
- package/src/models/RestHttpAgentEndpoint.ts +91 -0
- package/src/models/RestHttpAgentInterface.ts +91 -0
- package/src/models/RestHttpLivenessProbe.ts +88 -0
- package/src/models/RpcAgentEndpoint.ts +79 -0
- package/src/models/RpcAgentInterface.ts +79 -0
- package/src/models/StdioAgentEndpoint.ts +79 -0
- package/src/models/StdioAgentInterface.ts +79 -0
- package/src/models/Visibility.ts +36 -0
- package/src/models/index.ts +27 -0
- package/src/runtime.ts +320 -0
- package/tsconfig.json +20 -0
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* MLHub Agents API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import {
|
|
17
|
+
AgentProvider,
|
|
18
|
+
AgentProviderFromJSON,
|
|
19
|
+
AgentProviderFromJSONTyped,
|
|
20
|
+
AgentProviderToJSON,
|
|
21
|
+
AgentSkill,
|
|
22
|
+
AgentSkillFromJSON,
|
|
23
|
+
AgentSkillFromJSONTyped,
|
|
24
|
+
AgentSkillToJSON,
|
|
25
|
+
ArtifactLocator,
|
|
26
|
+
ArtifactLocatorFromJSON,
|
|
27
|
+
ArtifactLocatorFromJSONTyped,
|
|
28
|
+
ArtifactLocatorToJSON,
|
|
29
|
+
Capabilities,
|
|
30
|
+
CapabilitiesFromJSON,
|
|
31
|
+
CapabilitiesFromJSONTyped,
|
|
32
|
+
CapabilitiesToJSON,
|
|
33
|
+
RestHttpAgentInterface,
|
|
34
|
+
RestHttpAgentInterfaceFromJSON,
|
|
35
|
+
RestHttpAgentInterfaceFromJSONTyped,
|
|
36
|
+
RestHttpAgentInterfaceToJSON,
|
|
37
|
+
RpcAgentInterface,
|
|
38
|
+
RpcAgentInterfaceFromJSON,
|
|
39
|
+
RpcAgentInterfaceFromJSONTyped,
|
|
40
|
+
RpcAgentInterfaceToJSON,
|
|
41
|
+
StdioAgentInterface,
|
|
42
|
+
StdioAgentInterfaceFromJSON,
|
|
43
|
+
StdioAgentInterfaceFromJSONTyped,
|
|
44
|
+
StdioAgentInterfaceToJSON,
|
|
45
|
+
Visibility,
|
|
46
|
+
VisibilityFromJSON,
|
|
47
|
+
VisibilityFromJSONTyped,
|
|
48
|
+
VisibilityToJSON,
|
|
49
|
+
} from './';
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @export
|
|
54
|
+
* @interface AgentRecord
|
|
55
|
+
*/
|
|
56
|
+
export interface AgentRecord {
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {Array<ArtifactLocator>}
|
|
60
|
+
* @memberof AgentRecord
|
|
61
|
+
*/
|
|
62
|
+
artifact_locators: Array<ArtifactLocator>;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {Capabilities}
|
|
66
|
+
* @memberof AgentRecord
|
|
67
|
+
*/
|
|
68
|
+
capabilities: Capabilities;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @type {string}
|
|
72
|
+
* @memberof AgentRecord
|
|
73
|
+
*/
|
|
74
|
+
description: string;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {string}
|
|
78
|
+
* @memberof AgentRecord
|
|
79
|
+
*/
|
|
80
|
+
documentation_url?: string | null;
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @type {string}
|
|
84
|
+
* @memberof AgentRecord
|
|
85
|
+
*/
|
|
86
|
+
icon_url?: string | null;
|
|
87
|
+
/**
|
|
88
|
+
*
|
|
89
|
+
* @type {string}
|
|
90
|
+
* @memberof AgentRecord
|
|
91
|
+
*/
|
|
92
|
+
id: string;
|
|
93
|
+
/**
|
|
94
|
+
*
|
|
95
|
+
* @type {string}
|
|
96
|
+
* @memberof AgentRecord
|
|
97
|
+
*/
|
|
98
|
+
name: string;
|
|
99
|
+
/**
|
|
100
|
+
*
|
|
101
|
+
* @type {string}
|
|
102
|
+
* @memberof AgentRecord
|
|
103
|
+
*/
|
|
104
|
+
owner: string;
|
|
105
|
+
/**
|
|
106
|
+
*
|
|
107
|
+
* @type {AgentProvider}
|
|
108
|
+
* @memberof AgentRecord
|
|
109
|
+
*/
|
|
110
|
+
provider?: AgentProvider;
|
|
111
|
+
/**
|
|
112
|
+
*
|
|
113
|
+
* @type {Array<RestHttpAgentInterface>}
|
|
114
|
+
* @memberof AgentRecord
|
|
115
|
+
*/
|
|
116
|
+
rest_http_interfaces: Array<RestHttpAgentInterface>;
|
|
117
|
+
/**
|
|
118
|
+
*
|
|
119
|
+
* @type {Array<RpcAgentInterface>}
|
|
120
|
+
* @memberof AgentRecord
|
|
121
|
+
*/
|
|
122
|
+
rpc_interfaces: Array<RpcAgentInterface>;
|
|
123
|
+
/**
|
|
124
|
+
*
|
|
125
|
+
* @type {Array<AgentSkill>}
|
|
126
|
+
* @memberof AgentRecord
|
|
127
|
+
*/
|
|
128
|
+
skills: Array<AgentSkill>;
|
|
129
|
+
/**
|
|
130
|
+
*
|
|
131
|
+
* @type {Array<StdioAgentInterface>}
|
|
132
|
+
* @memberof AgentRecord
|
|
133
|
+
*/
|
|
134
|
+
stdio_interfaces: Array<StdioAgentInterface>;
|
|
135
|
+
/**
|
|
136
|
+
*
|
|
137
|
+
* @type {Array<string>}
|
|
138
|
+
* @memberof AgentRecord
|
|
139
|
+
*/
|
|
140
|
+
tags: Array<string>;
|
|
141
|
+
/**
|
|
142
|
+
*
|
|
143
|
+
* @type {string}
|
|
144
|
+
* @memberof AgentRecord
|
|
145
|
+
*/
|
|
146
|
+
tenant_id: string;
|
|
147
|
+
/**
|
|
148
|
+
*
|
|
149
|
+
* @type {string}
|
|
150
|
+
* @memberof AgentRecord
|
|
151
|
+
*/
|
|
152
|
+
version: string;
|
|
153
|
+
/**
|
|
154
|
+
*
|
|
155
|
+
* @type {Visibility}
|
|
156
|
+
* @memberof AgentRecord
|
|
157
|
+
*/
|
|
158
|
+
visibility: Visibility;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
export function AgentRecordFromJSON(json: any): AgentRecord {
|
|
162
|
+
return AgentRecordFromJSONTyped(json, false);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
export function AgentRecordFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentRecord {
|
|
166
|
+
if ((json === undefined) || (json === null)) {
|
|
167
|
+
return json;
|
|
168
|
+
}
|
|
169
|
+
return {
|
|
170
|
+
|
|
171
|
+
'artifact_locators': ((json['artifact_locators'] as Array<any>).map(ArtifactLocatorFromJSON)),
|
|
172
|
+
'capabilities': CapabilitiesFromJSON(json['capabilities']),
|
|
173
|
+
'description': json['description'],
|
|
174
|
+
'documentation_url': !exists(json, 'documentation_url') ? undefined : json['documentation_url'],
|
|
175
|
+
'icon_url': !exists(json, 'icon_url') ? undefined : json['icon_url'],
|
|
176
|
+
'id': json['id'],
|
|
177
|
+
'name': json['name'],
|
|
178
|
+
'owner': json['owner'],
|
|
179
|
+
'provider': !exists(json, 'provider') ? undefined : AgentProviderFromJSON(json['provider']),
|
|
180
|
+
'rest_http_interfaces': ((json['rest_http_interfaces'] as Array<any>).map(RestHttpAgentInterfaceFromJSON)),
|
|
181
|
+
'rpc_interfaces': ((json['rpc_interfaces'] as Array<any>).map(RpcAgentInterfaceFromJSON)),
|
|
182
|
+
'skills': ((json['skills'] as Array<any>).map(AgentSkillFromJSON)),
|
|
183
|
+
'stdio_interfaces': ((json['stdio_interfaces'] as Array<any>).map(StdioAgentInterfaceFromJSON)),
|
|
184
|
+
'tags': json['tags'],
|
|
185
|
+
'tenant_id': json['tenant_id'],
|
|
186
|
+
'version': json['version'],
|
|
187
|
+
'visibility': VisibilityFromJSON(json['visibility']),
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
export function AgentRecordToJSON(value?: AgentRecord | null): any {
|
|
192
|
+
if (value === undefined) {
|
|
193
|
+
return undefined;
|
|
194
|
+
}
|
|
195
|
+
if (value === null) {
|
|
196
|
+
return null;
|
|
197
|
+
}
|
|
198
|
+
return {
|
|
199
|
+
|
|
200
|
+
'artifact_locators': ((value.artifact_locators as Array<any>).map(ArtifactLocatorToJSON)),
|
|
201
|
+
'capabilities': CapabilitiesToJSON(value.capabilities),
|
|
202
|
+
'description': value.description,
|
|
203
|
+
'documentation_url': value.documentation_url,
|
|
204
|
+
'icon_url': value.icon_url,
|
|
205
|
+
'id': value.id,
|
|
206
|
+
'name': value.name,
|
|
207
|
+
'owner': value.owner,
|
|
208
|
+
'provider': AgentProviderToJSON(value.provider),
|
|
209
|
+
'rest_http_interfaces': ((value.rest_http_interfaces as Array<any>).map(RestHttpAgentInterfaceToJSON)),
|
|
210
|
+
'rpc_interfaces': ((value.rpc_interfaces as Array<any>).map(RpcAgentInterfaceToJSON)),
|
|
211
|
+
'skills': ((value.skills as Array<any>).map(AgentSkillToJSON)),
|
|
212
|
+
'stdio_interfaces': ((value.stdio_interfaces as Array<any>).map(StdioAgentInterfaceToJSON)),
|
|
213
|
+
'tags': value.tags,
|
|
214
|
+
'tenant_id': value.tenant_id,
|
|
215
|
+
'version': value.version,
|
|
216
|
+
'visibility': VisibilityToJSON(value.visibility),
|
|
217
|
+
};
|
|
218
|
+
}
|
|
219
|
+
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* MLHub Agents API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface AgentSkill
|
|
20
|
+
*/
|
|
21
|
+
export interface AgentSkill {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof AgentSkill
|
|
26
|
+
*/
|
|
27
|
+
description: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {Array<string>}
|
|
31
|
+
* @memberof AgentSkill
|
|
32
|
+
*/
|
|
33
|
+
examples: Array<string>;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof AgentSkill
|
|
38
|
+
*/
|
|
39
|
+
id: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof AgentSkill
|
|
44
|
+
*/
|
|
45
|
+
name: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {Array<string>}
|
|
49
|
+
* @memberof AgentSkill
|
|
50
|
+
*/
|
|
51
|
+
tags: Array<string>;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function AgentSkillFromJSON(json: any): AgentSkill {
|
|
55
|
+
return AgentSkillFromJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function AgentSkillFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentSkill {
|
|
59
|
+
if ((json === undefined) || (json === null)) {
|
|
60
|
+
return json;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
|
|
64
|
+
'description': json['description'],
|
|
65
|
+
'examples': json['examples'],
|
|
66
|
+
'id': json['id'],
|
|
67
|
+
'name': json['name'],
|
|
68
|
+
'tags': json['tags'],
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function AgentSkillToJSON(value?: AgentSkill | null): any {
|
|
73
|
+
if (value === undefined) {
|
|
74
|
+
return undefined;
|
|
75
|
+
}
|
|
76
|
+
if (value === null) {
|
|
77
|
+
return null;
|
|
78
|
+
}
|
|
79
|
+
return {
|
|
80
|
+
|
|
81
|
+
'description': value.description,
|
|
82
|
+
'examples': value.examples,
|
|
83
|
+
'id': value.id,
|
|
84
|
+
'name': value.name,
|
|
85
|
+
'tags': value.tags,
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* MLHub Agents API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import {
|
|
17
|
+
AgentArtifactType,
|
|
18
|
+
AgentArtifactTypeFromJSON,
|
|
19
|
+
AgentArtifactTypeFromJSONTyped,
|
|
20
|
+
AgentArtifactTypeToJSON,
|
|
21
|
+
} from './';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface ArtifactLocator
|
|
27
|
+
*/
|
|
28
|
+
export interface ArtifactLocator {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {AgentArtifactType}
|
|
32
|
+
* @memberof ArtifactLocator
|
|
33
|
+
*/
|
|
34
|
+
artifact_type: AgentArtifactType;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof ArtifactLocator
|
|
39
|
+
*/
|
|
40
|
+
url: string;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function ArtifactLocatorFromJSON(json: any): ArtifactLocator {
|
|
44
|
+
return ArtifactLocatorFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function ArtifactLocatorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ArtifactLocator {
|
|
48
|
+
if ((json === undefined) || (json === null)) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
|
|
53
|
+
'artifact_type': AgentArtifactTypeFromJSON(json['artifact_type']),
|
|
54
|
+
'url': json['url'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function ArtifactLocatorToJSON(value?: ArtifactLocator | null): any {
|
|
59
|
+
if (value === undefined) {
|
|
60
|
+
return undefined;
|
|
61
|
+
}
|
|
62
|
+
if (value === null) {
|
|
63
|
+
return null;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
|
|
67
|
+
'artifact_type': AgentArtifactTypeToJSON(value.artifact_type),
|
|
68
|
+
'url': value.url,
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* MLHub Agents API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface Capabilities
|
|
20
|
+
*/
|
|
21
|
+
export interface Capabilities {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof Capabilities
|
|
26
|
+
*/
|
|
27
|
+
push_notifications: boolean;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {boolean}
|
|
31
|
+
* @memberof Capabilities
|
|
32
|
+
*/
|
|
33
|
+
streaming: boolean;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export function CapabilitiesFromJSON(json: any): Capabilities {
|
|
37
|
+
return CapabilitiesFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function CapabilitiesFromJSONTyped(json: any, ignoreDiscriminator: boolean): Capabilities {
|
|
41
|
+
if ((json === undefined) || (json === null)) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
|
|
46
|
+
'push_notifications': json['push_notifications'],
|
|
47
|
+
'streaming': json['streaming'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function CapabilitiesToJSON(value?: Capabilities | null): any {
|
|
52
|
+
if (value === undefined) {
|
|
53
|
+
return undefined;
|
|
54
|
+
}
|
|
55
|
+
if (value === null) {
|
|
56
|
+
return null;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
|
|
60
|
+
'push_notifications': value.push_notifications,
|
|
61
|
+
'streaming': value.streaming,
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* MLHub Agents API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import {
|
|
17
|
+
AgentDeploymentModality,
|
|
18
|
+
AgentDeploymentModalityFromJSON,
|
|
19
|
+
AgentDeploymentModalityFromJSONTyped,
|
|
20
|
+
AgentDeploymentModalityToJSON,
|
|
21
|
+
RestHttpAgentEndpoint,
|
|
22
|
+
RestHttpAgentEndpointFromJSON,
|
|
23
|
+
RestHttpAgentEndpointFromJSONTyped,
|
|
24
|
+
RestHttpAgentEndpointToJSON,
|
|
25
|
+
RpcAgentEndpoint,
|
|
26
|
+
RpcAgentEndpointFromJSON,
|
|
27
|
+
RpcAgentEndpointFromJSONTyped,
|
|
28
|
+
RpcAgentEndpointToJSON,
|
|
29
|
+
StdioAgentEndpoint,
|
|
30
|
+
StdioAgentEndpointFromJSON,
|
|
31
|
+
StdioAgentEndpointFromJSONTyped,
|
|
32
|
+
StdioAgentEndpointToJSON,
|
|
33
|
+
Visibility,
|
|
34
|
+
VisibilityFromJSON,
|
|
35
|
+
VisibilityFromJSONTyped,
|
|
36
|
+
VisibilityToJSON,
|
|
37
|
+
} from './';
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @export
|
|
42
|
+
* @interface CreateAgentBody
|
|
43
|
+
*/
|
|
44
|
+
export interface CreateAgentBody {
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {string}
|
|
48
|
+
* @memberof CreateAgentBody
|
|
49
|
+
*/
|
|
50
|
+
agent_record_id?: string | null;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {AgentDeploymentModality}
|
|
54
|
+
* @memberof CreateAgentBody
|
|
55
|
+
*/
|
|
56
|
+
deployment_modality: AgentDeploymentModality;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {string}
|
|
60
|
+
* @memberof CreateAgentBody
|
|
61
|
+
*/
|
|
62
|
+
description: string;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {string}
|
|
66
|
+
* @memberof CreateAgentBody
|
|
67
|
+
*/
|
|
68
|
+
name: string;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @type {Array<RestHttpAgentEndpoint>}
|
|
72
|
+
* @memberof CreateAgentBody
|
|
73
|
+
*/
|
|
74
|
+
rest_http_endpoints?: Array<RestHttpAgentEndpoint>;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {Array<RpcAgentEndpoint>}
|
|
78
|
+
* @memberof CreateAgentBody
|
|
79
|
+
*/
|
|
80
|
+
rpc_endpoints?: Array<RpcAgentEndpoint>;
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @type {Array<StdioAgentEndpoint>}
|
|
84
|
+
* @memberof CreateAgentBody
|
|
85
|
+
*/
|
|
86
|
+
stdio_endpoints?: Array<StdioAgentEndpoint>;
|
|
87
|
+
/**
|
|
88
|
+
*
|
|
89
|
+
* @type {Array<string>}
|
|
90
|
+
* @memberof CreateAgentBody
|
|
91
|
+
*/
|
|
92
|
+
tags?: Array<string>;
|
|
93
|
+
/**
|
|
94
|
+
*
|
|
95
|
+
* @type {Visibility}
|
|
96
|
+
* @memberof CreateAgentBody
|
|
97
|
+
*/
|
|
98
|
+
visibility?: Visibility;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export function CreateAgentBodyFromJSON(json: any): CreateAgentBody {
|
|
102
|
+
return CreateAgentBodyFromJSONTyped(json, false);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export function CreateAgentBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateAgentBody {
|
|
106
|
+
if ((json === undefined) || (json === null)) {
|
|
107
|
+
return json;
|
|
108
|
+
}
|
|
109
|
+
return {
|
|
110
|
+
|
|
111
|
+
'agent_record_id': !exists(json, 'agent_record_id') ? undefined : json['agent_record_id'],
|
|
112
|
+
'deployment_modality': AgentDeploymentModalityFromJSON(json['deployment_modality']),
|
|
113
|
+
'description': json['description'],
|
|
114
|
+
'name': json['name'],
|
|
115
|
+
'rest_http_endpoints': !exists(json, 'rest_http_endpoints') ? undefined : ((json['rest_http_endpoints'] as Array<any>).map(RestHttpAgentEndpointFromJSON)),
|
|
116
|
+
'rpc_endpoints': !exists(json, 'rpc_endpoints') ? undefined : ((json['rpc_endpoints'] as Array<any>).map(RpcAgentEndpointFromJSON)),
|
|
117
|
+
'stdio_endpoints': !exists(json, 'stdio_endpoints') ? undefined : ((json['stdio_endpoints'] as Array<any>).map(StdioAgentEndpointFromJSON)),
|
|
118
|
+
'tags': !exists(json, 'tags') ? undefined : json['tags'],
|
|
119
|
+
'visibility': !exists(json, 'visibility') ? undefined : VisibilityFromJSON(json['visibility']),
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export function CreateAgentBodyToJSON(value?: CreateAgentBody | null): any {
|
|
124
|
+
if (value === undefined) {
|
|
125
|
+
return undefined;
|
|
126
|
+
}
|
|
127
|
+
if (value === null) {
|
|
128
|
+
return null;
|
|
129
|
+
}
|
|
130
|
+
return {
|
|
131
|
+
|
|
132
|
+
'agent_record_id': value.agent_record_id,
|
|
133
|
+
'deployment_modality': AgentDeploymentModalityToJSON(value.deployment_modality),
|
|
134
|
+
'description': value.description,
|
|
135
|
+
'name': value.name,
|
|
136
|
+
'rest_http_endpoints': value.rest_http_endpoints === undefined ? undefined : ((value.rest_http_endpoints as Array<any>).map(RestHttpAgentEndpointToJSON)),
|
|
137
|
+
'rpc_endpoints': value.rpc_endpoints === undefined ? undefined : ((value.rpc_endpoints as Array<any>).map(RpcAgentEndpointToJSON)),
|
|
138
|
+
'stdio_endpoints': value.stdio_endpoints === undefined ? undefined : ((value.stdio_endpoints as Array<any>).map(StdioAgentEndpointToJSON)),
|
|
139
|
+
'tags': value.tags,
|
|
140
|
+
'visibility': VisibilityToJSON(value.visibility),
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
|