@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,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MLHub Agents API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AgentSkill
|
|
16
|
+
*/
|
|
17
|
+
export interface AgentSkill {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AgentSkill
|
|
22
|
+
*/
|
|
23
|
+
description: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {Array<string>}
|
|
27
|
+
* @memberof AgentSkill
|
|
28
|
+
*/
|
|
29
|
+
examples: Array<string>;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AgentSkill
|
|
34
|
+
*/
|
|
35
|
+
id: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof AgentSkill
|
|
40
|
+
*/
|
|
41
|
+
name: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {Array<string>}
|
|
45
|
+
* @memberof AgentSkill
|
|
46
|
+
*/
|
|
47
|
+
tags: Array<string>;
|
|
48
|
+
}
|
|
49
|
+
export declare function AgentSkillFromJSON(json: any): AgentSkill;
|
|
50
|
+
export declare function AgentSkillFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentSkill;
|
|
51
|
+
export declare function AgentSkillToJSON(value?: AgentSkill | null): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* MLHub Agents API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.AgentSkillFromJSON = AgentSkillFromJSON;
|
|
17
|
+
exports.AgentSkillFromJSONTyped = AgentSkillFromJSONTyped;
|
|
18
|
+
exports.AgentSkillToJSON = AgentSkillToJSON;
|
|
19
|
+
function AgentSkillFromJSON(json) {
|
|
20
|
+
return AgentSkillFromJSONTyped(json, false);
|
|
21
|
+
}
|
|
22
|
+
function AgentSkillFromJSONTyped(json, ignoreDiscriminator) {
|
|
23
|
+
if ((json === undefined) || (json === null)) {
|
|
24
|
+
return json;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'description': json['description'],
|
|
28
|
+
'examples': json['examples'],
|
|
29
|
+
'id': json['id'],
|
|
30
|
+
'name': json['name'],
|
|
31
|
+
'tags': json['tags'],
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
function AgentSkillToJSON(value) {
|
|
35
|
+
if (value === undefined) {
|
|
36
|
+
return undefined;
|
|
37
|
+
}
|
|
38
|
+
if (value === null) {
|
|
39
|
+
return null;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'description': value.description,
|
|
43
|
+
'examples': value.examples,
|
|
44
|
+
'id': value.id,
|
|
45
|
+
'name': value.name,
|
|
46
|
+
'tags': value.tags,
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MLHub Agents API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { AgentArtifactType } from './';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ArtifactLocator
|
|
17
|
+
*/
|
|
18
|
+
export interface ArtifactLocator {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {AgentArtifactType}
|
|
22
|
+
* @memberof ArtifactLocator
|
|
23
|
+
*/
|
|
24
|
+
artifact_type: AgentArtifactType;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ArtifactLocator
|
|
29
|
+
*/
|
|
30
|
+
url: string;
|
|
31
|
+
}
|
|
32
|
+
export declare function ArtifactLocatorFromJSON(json: any): ArtifactLocator;
|
|
33
|
+
export declare function ArtifactLocatorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ArtifactLocator;
|
|
34
|
+
export declare function ArtifactLocatorToJSON(value?: ArtifactLocator | null): any;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* MLHub Agents API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ArtifactLocatorFromJSON = ArtifactLocatorFromJSON;
|
|
17
|
+
exports.ArtifactLocatorFromJSONTyped = ArtifactLocatorFromJSONTyped;
|
|
18
|
+
exports.ArtifactLocatorToJSON = ArtifactLocatorToJSON;
|
|
19
|
+
var _1 = require("./");
|
|
20
|
+
function ArtifactLocatorFromJSON(json) {
|
|
21
|
+
return ArtifactLocatorFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
function ArtifactLocatorFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if ((json === undefined) || (json === null)) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'artifact_type': (0, _1.AgentArtifactTypeFromJSON)(json['artifact_type']),
|
|
29
|
+
'url': json['url'],
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
function ArtifactLocatorToJSON(value) {
|
|
33
|
+
if (value === undefined) {
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
if (value === null) {
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'artifact_type': (0, _1.AgentArtifactTypeToJSON)(value.artifact_type),
|
|
41
|
+
'url': value.url,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MLHub Agents API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface Capabilities
|
|
16
|
+
*/
|
|
17
|
+
export interface Capabilities {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof Capabilities
|
|
22
|
+
*/
|
|
23
|
+
push_notifications: boolean;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof Capabilities
|
|
28
|
+
*/
|
|
29
|
+
streaming: boolean;
|
|
30
|
+
}
|
|
31
|
+
export declare function CapabilitiesFromJSON(json: any): Capabilities;
|
|
32
|
+
export declare function CapabilitiesFromJSONTyped(json: any, ignoreDiscriminator: boolean): Capabilities;
|
|
33
|
+
export declare function CapabilitiesToJSON(value?: Capabilities | null): any;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* MLHub Agents API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.CapabilitiesFromJSON = CapabilitiesFromJSON;
|
|
17
|
+
exports.CapabilitiesFromJSONTyped = CapabilitiesFromJSONTyped;
|
|
18
|
+
exports.CapabilitiesToJSON = CapabilitiesToJSON;
|
|
19
|
+
function CapabilitiesFromJSON(json) {
|
|
20
|
+
return CapabilitiesFromJSONTyped(json, false);
|
|
21
|
+
}
|
|
22
|
+
function CapabilitiesFromJSONTyped(json, ignoreDiscriminator) {
|
|
23
|
+
if ((json === undefined) || (json === null)) {
|
|
24
|
+
return json;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'push_notifications': json['push_notifications'],
|
|
28
|
+
'streaming': json['streaming'],
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
function CapabilitiesToJSON(value) {
|
|
32
|
+
if (value === undefined) {
|
|
33
|
+
return undefined;
|
|
34
|
+
}
|
|
35
|
+
if (value === null) {
|
|
36
|
+
return null;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'push_notifications': value.push_notifications,
|
|
40
|
+
'streaming': value.streaming,
|
|
41
|
+
};
|
|
42
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MLHub Agents API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { AgentDeploymentModality, RestHttpAgentEndpoint, RpcAgentEndpoint, StdioAgentEndpoint, Visibility } from './';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CreateAgentBody
|
|
17
|
+
*/
|
|
18
|
+
export interface CreateAgentBody {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof CreateAgentBody
|
|
23
|
+
*/
|
|
24
|
+
agent_record_id?: string | null;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {AgentDeploymentModality}
|
|
28
|
+
* @memberof CreateAgentBody
|
|
29
|
+
*/
|
|
30
|
+
deployment_modality: AgentDeploymentModality;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof CreateAgentBody
|
|
35
|
+
*/
|
|
36
|
+
description: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof CreateAgentBody
|
|
41
|
+
*/
|
|
42
|
+
name: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Array<RestHttpAgentEndpoint>}
|
|
46
|
+
* @memberof CreateAgentBody
|
|
47
|
+
*/
|
|
48
|
+
rest_http_endpoints?: Array<RestHttpAgentEndpoint>;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {Array<RpcAgentEndpoint>}
|
|
52
|
+
* @memberof CreateAgentBody
|
|
53
|
+
*/
|
|
54
|
+
rpc_endpoints?: Array<RpcAgentEndpoint>;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {Array<StdioAgentEndpoint>}
|
|
58
|
+
* @memberof CreateAgentBody
|
|
59
|
+
*/
|
|
60
|
+
stdio_endpoints?: Array<StdioAgentEndpoint>;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {Array<string>}
|
|
64
|
+
* @memberof CreateAgentBody
|
|
65
|
+
*/
|
|
66
|
+
tags?: Array<string>;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {Visibility}
|
|
70
|
+
* @memberof CreateAgentBody
|
|
71
|
+
*/
|
|
72
|
+
visibility?: Visibility;
|
|
73
|
+
}
|
|
74
|
+
export declare function CreateAgentBodyFromJSON(json: any): CreateAgentBody;
|
|
75
|
+
export declare function CreateAgentBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateAgentBody;
|
|
76
|
+
export declare function CreateAgentBodyToJSON(value?: CreateAgentBody | null): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* MLHub Agents API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.CreateAgentBodyFromJSON = CreateAgentBodyFromJSON;
|
|
17
|
+
exports.CreateAgentBodyFromJSONTyped = CreateAgentBodyFromJSONTyped;
|
|
18
|
+
exports.CreateAgentBodyToJSON = CreateAgentBodyToJSON;
|
|
19
|
+
var runtime_1 = require("../runtime");
|
|
20
|
+
var _1 = require("./");
|
|
21
|
+
function CreateAgentBodyFromJSON(json) {
|
|
22
|
+
return CreateAgentBodyFromJSONTyped(json, false);
|
|
23
|
+
}
|
|
24
|
+
function CreateAgentBodyFromJSONTyped(json, ignoreDiscriminator) {
|
|
25
|
+
if ((json === undefined) || (json === null)) {
|
|
26
|
+
return json;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'agent_record_id': !(0, runtime_1.exists)(json, 'agent_record_id') ? undefined : json['agent_record_id'],
|
|
30
|
+
'deployment_modality': (0, _1.AgentDeploymentModalityFromJSON)(json['deployment_modality']),
|
|
31
|
+
'description': json['description'],
|
|
32
|
+
'name': json['name'],
|
|
33
|
+
'rest_http_endpoints': !(0, runtime_1.exists)(json, 'rest_http_endpoints') ? undefined : (json['rest_http_endpoints'].map(_1.RestHttpAgentEndpointFromJSON)),
|
|
34
|
+
'rpc_endpoints': !(0, runtime_1.exists)(json, 'rpc_endpoints') ? undefined : (json['rpc_endpoints'].map(_1.RpcAgentEndpointFromJSON)),
|
|
35
|
+
'stdio_endpoints': !(0, runtime_1.exists)(json, 'stdio_endpoints') ? undefined : (json['stdio_endpoints'].map(_1.StdioAgentEndpointFromJSON)),
|
|
36
|
+
'tags': !(0, runtime_1.exists)(json, 'tags') ? undefined : json['tags'],
|
|
37
|
+
'visibility': !(0, runtime_1.exists)(json, 'visibility') ? undefined : (0, _1.VisibilityFromJSON)(json['visibility']),
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function CreateAgentBodyToJSON(value) {
|
|
41
|
+
if (value === undefined) {
|
|
42
|
+
return undefined;
|
|
43
|
+
}
|
|
44
|
+
if (value === null) {
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'agent_record_id': value.agent_record_id,
|
|
49
|
+
'deployment_modality': (0, _1.AgentDeploymentModalityToJSON)(value.deployment_modality),
|
|
50
|
+
'description': value.description,
|
|
51
|
+
'name': value.name,
|
|
52
|
+
'rest_http_endpoints': value.rest_http_endpoints === undefined ? undefined : (value.rest_http_endpoints.map(_1.RestHttpAgentEndpointToJSON)),
|
|
53
|
+
'rpc_endpoints': value.rpc_endpoints === undefined ? undefined : (value.rpc_endpoints.map(_1.RpcAgentEndpointToJSON)),
|
|
54
|
+
'stdio_endpoints': value.stdio_endpoints === undefined ? undefined : (value.stdio_endpoints.map(_1.StdioAgentEndpointToJSON)),
|
|
55
|
+
'tags': value.tags,
|
|
56
|
+
'visibility': (0, _1.VisibilityToJSON)(value.visibility),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MLHub Agents API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { AgentProvider, AgentSkill, ArtifactLocator, Capabilities, RestHttpAgentInterface, RpcAgentInterface, StdioAgentInterface, Visibility } from './';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CreateAgentRecordBody
|
|
17
|
+
*/
|
|
18
|
+
export interface CreateAgentRecordBody {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<ArtifactLocator>}
|
|
22
|
+
* @memberof CreateAgentRecordBody
|
|
23
|
+
*/
|
|
24
|
+
artifact_locators?: Array<ArtifactLocator> | null;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {Capabilities}
|
|
28
|
+
* @memberof CreateAgentRecordBody
|
|
29
|
+
*/
|
|
30
|
+
capabilities: Capabilities;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof CreateAgentRecordBody
|
|
35
|
+
*/
|
|
36
|
+
description: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof CreateAgentRecordBody
|
|
41
|
+
*/
|
|
42
|
+
documentation_url?: string | null;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof CreateAgentRecordBody
|
|
47
|
+
*/
|
|
48
|
+
icon_url?: string | null;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof CreateAgentRecordBody
|
|
53
|
+
*/
|
|
54
|
+
name: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {AgentProvider}
|
|
58
|
+
* @memberof CreateAgentRecordBody
|
|
59
|
+
*/
|
|
60
|
+
provider?: AgentProvider;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {Array<RestHttpAgentInterface>}
|
|
64
|
+
* @memberof CreateAgentRecordBody
|
|
65
|
+
*/
|
|
66
|
+
rest_http_interfaces?: Array<RestHttpAgentInterface>;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {Array<RpcAgentInterface>}
|
|
70
|
+
* @memberof CreateAgentRecordBody
|
|
71
|
+
*/
|
|
72
|
+
rpc_interfaces?: Array<RpcAgentInterface>;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {Array<AgentSkill>}
|
|
76
|
+
* @memberof CreateAgentRecordBody
|
|
77
|
+
*/
|
|
78
|
+
skills?: Array<AgentSkill>;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {Array<StdioAgentInterface>}
|
|
82
|
+
* @memberof CreateAgentRecordBody
|
|
83
|
+
*/
|
|
84
|
+
stdio_interfaces?: Array<StdioAgentInterface>;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {Array<string>}
|
|
88
|
+
* @memberof CreateAgentRecordBody
|
|
89
|
+
*/
|
|
90
|
+
tags?: Array<string>;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @type {string}
|
|
94
|
+
* @memberof CreateAgentRecordBody
|
|
95
|
+
*/
|
|
96
|
+
version: string;
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @type {Visibility}
|
|
100
|
+
* @memberof CreateAgentRecordBody
|
|
101
|
+
*/
|
|
102
|
+
visibility?: Visibility;
|
|
103
|
+
}
|
|
104
|
+
export declare function CreateAgentRecordBodyFromJSON(json: any): CreateAgentRecordBody;
|
|
105
|
+
export declare function CreateAgentRecordBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateAgentRecordBody;
|
|
106
|
+
export declare function CreateAgentRecordBodyToJSON(value?: CreateAgentRecordBody | null): any;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* MLHub Agents API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.CreateAgentRecordBodyFromJSON = CreateAgentRecordBodyFromJSON;
|
|
17
|
+
exports.CreateAgentRecordBodyFromJSONTyped = CreateAgentRecordBodyFromJSONTyped;
|
|
18
|
+
exports.CreateAgentRecordBodyToJSON = CreateAgentRecordBodyToJSON;
|
|
19
|
+
var runtime_1 = require("../runtime");
|
|
20
|
+
var _1 = require("./");
|
|
21
|
+
function CreateAgentRecordBodyFromJSON(json) {
|
|
22
|
+
return CreateAgentRecordBodyFromJSONTyped(json, false);
|
|
23
|
+
}
|
|
24
|
+
function CreateAgentRecordBodyFromJSONTyped(json, ignoreDiscriminator) {
|
|
25
|
+
if ((json === undefined) || (json === null)) {
|
|
26
|
+
return json;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'artifact_locators': !(0, runtime_1.exists)(json, 'artifact_locators') ? undefined : (json['artifact_locators'] === null ? null : json['artifact_locators'].map(_1.ArtifactLocatorFromJSON)),
|
|
30
|
+
'capabilities': (0, _1.CapabilitiesFromJSON)(json['capabilities']),
|
|
31
|
+
'description': json['description'],
|
|
32
|
+
'documentation_url': !(0, runtime_1.exists)(json, 'documentation_url') ? undefined : json['documentation_url'],
|
|
33
|
+
'icon_url': !(0, runtime_1.exists)(json, 'icon_url') ? undefined : json['icon_url'],
|
|
34
|
+
'name': json['name'],
|
|
35
|
+
'provider': !(0, runtime_1.exists)(json, 'provider') ? undefined : (0, _1.AgentProviderFromJSON)(json['provider']),
|
|
36
|
+
'rest_http_interfaces': !(0, runtime_1.exists)(json, 'rest_http_interfaces') ? undefined : (json['rest_http_interfaces'].map(_1.RestHttpAgentInterfaceFromJSON)),
|
|
37
|
+
'rpc_interfaces': !(0, runtime_1.exists)(json, 'rpc_interfaces') ? undefined : (json['rpc_interfaces'].map(_1.RpcAgentInterfaceFromJSON)),
|
|
38
|
+
'skills': !(0, runtime_1.exists)(json, 'skills') ? undefined : (json['skills'].map(_1.AgentSkillFromJSON)),
|
|
39
|
+
'stdio_interfaces': !(0, runtime_1.exists)(json, 'stdio_interfaces') ? undefined : (json['stdio_interfaces'].map(_1.StdioAgentInterfaceFromJSON)),
|
|
40
|
+
'tags': !(0, runtime_1.exists)(json, 'tags') ? undefined : json['tags'],
|
|
41
|
+
'version': json['version'],
|
|
42
|
+
'visibility': !(0, runtime_1.exists)(json, 'visibility') ? undefined : (0, _1.VisibilityFromJSON)(json['visibility']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function CreateAgentRecordBodyToJSON(value) {
|
|
46
|
+
if (value === undefined) {
|
|
47
|
+
return undefined;
|
|
48
|
+
}
|
|
49
|
+
if (value === null) {
|
|
50
|
+
return null;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'artifact_locators': value.artifact_locators === undefined ? undefined : (value.artifact_locators === null ? null : value.artifact_locators.map(_1.ArtifactLocatorToJSON)),
|
|
54
|
+
'capabilities': (0, _1.CapabilitiesToJSON)(value.capabilities),
|
|
55
|
+
'description': value.description,
|
|
56
|
+
'documentation_url': value.documentation_url,
|
|
57
|
+
'icon_url': value.icon_url,
|
|
58
|
+
'name': value.name,
|
|
59
|
+
'provider': (0, _1.AgentProviderToJSON)(value.provider),
|
|
60
|
+
'rest_http_interfaces': value.rest_http_interfaces === undefined ? undefined : (value.rest_http_interfaces.map(_1.RestHttpAgentInterfaceToJSON)),
|
|
61
|
+
'rpc_interfaces': value.rpc_interfaces === undefined ? undefined : (value.rpc_interfaces.map(_1.RpcAgentInterfaceToJSON)),
|
|
62
|
+
'skills': value.skills === undefined ? undefined : (value.skills.map(_1.AgentSkillToJSON)),
|
|
63
|
+
'stdio_interfaces': value.stdio_interfaces === undefined ? undefined : (value.stdio_interfaces.map(_1.StdioAgentInterfaceToJSON)),
|
|
64
|
+
'tags': value.tags,
|
|
65
|
+
'version': value.version,
|
|
66
|
+
'visibility': (0, _1.VisibilityToJSON)(value.visibility),
|
|
67
|
+
};
|
|
68
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MLHub Agents API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { AgentRecord } from './';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CreateAgentRecordResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface CreateAgentRecordResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof CreateAgentRecordResponse
|
|
23
|
+
*/
|
|
24
|
+
message: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {object}
|
|
28
|
+
* @memberof CreateAgentRecordResponse
|
|
29
|
+
*/
|
|
30
|
+
metadata: object;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {AgentRecord}
|
|
34
|
+
* @memberof CreateAgentRecordResponse
|
|
35
|
+
*/
|
|
36
|
+
result: AgentRecord;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof CreateAgentRecordResponse
|
|
41
|
+
*/
|
|
42
|
+
status: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof CreateAgentRecordResponse
|
|
47
|
+
*/
|
|
48
|
+
version: string;
|
|
49
|
+
}
|
|
50
|
+
export declare function CreateAgentRecordResponseFromJSON(json: any): CreateAgentRecordResponse;
|
|
51
|
+
export declare function CreateAgentRecordResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateAgentRecordResponse;
|
|
52
|
+
export declare function CreateAgentRecordResponseToJSON(value?: CreateAgentRecordResponse | null): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* MLHub Agents API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.CreateAgentRecordResponseFromJSON = CreateAgentRecordResponseFromJSON;
|
|
17
|
+
exports.CreateAgentRecordResponseFromJSONTyped = CreateAgentRecordResponseFromJSONTyped;
|
|
18
|
+
exports.CreateAgentRecordResponseToJSON = CreateAgentRecordResponseToJSON;
|
|
19
|
+
var _1 = require("./");
|
|
20
|
+
function CreateAgentRecordResponseFromJSON(json) {
|
|
21
|
+
return CreateAgentRecordResponseFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
function CreateAgentRecordResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if ((json === undefined) || (json === null)) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'message': json['message'],
|
|
29
|
+
'metadata': json['metadata'],
|
|
30
|
+
'result': (0, _1.AgentRecordFromJSON)(json['result']),
|
|
31
|
+
'status': json['status'],
|
|
32
|
+
'version': json['version'],
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
function CreateAgentRecordResponseToJSON(value) {
|
|
36
|
+
if (value === undefined) {
|
|
37
|
+
return undefined;
|
|
38
|
+
}
|
|
39
|
+
if (value === null) {
|
|
40
|
+
return null;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'message': value.message,
|
|
44
|
+
'metadata': value.metadata,
|
|
45
|
+
'result': (0, _1.AgentRecordToJSON)(value.result),
|
|
46
|
+
'status': value.status,
|
|
47
|
+
'version': value.version,
|
|
48
|
+
};
|
|
49
|
+
}
|