@ideascol/agents-generator-sdk 0.0.8 → 0.1.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/dist/bin/cli.js +57 -5
- package/dist/index.js +53 -1
- package/dist/lib/clients/agents-generator/index.d.ts +2 -0
- package/dist/lib/clients/agents-generator/models/AgentRequest.d.ts +1 -1
- package/dist/lib/clients/agents-generator/models/CreateMCPServerRequest.d.ts +6 -0
- package/dist/lib/clients/agents-generator/models/FileResponse.d.ts +1 -0
- package/dist/lib/clients/agents-generator/models/MCPServerReference.d.ts +6 -1
- package/dist/lib/clients/agents-generator/models/NodeData.d.ts +13 -1
- package/dist/lib/clients/agents-generator/models/UpdateMCPServerRequest.d.ts +6 -0
- package/dist/lib/clients/agents-generator/services/AgentService.d.ts +10 -0
- package/dist/lib/clients/agents-generator/services/McpServersService.d.ts +27 -0
- package/package.json +1 -1
package/dist/bin/cli.js
CHANGED
|
@@ -598,7 +598,7 @@ var OpenAPI;
|
|
|
598
598
|
var init_OpenAPI = __esm(() => {
|
|
599
599
|
OpenAPI = {
|
|
600
600
|
BASE: "",
|
|
601
|
-
VERSION: "main-
|
|
601
|
+
VERSION: "main-0b1b322fb998cc905c3b6794c429010cbdf39f4e",
|
|
602
602
|
WITH_CREDENTIALS: false,
|
|
603
603
|
CREDENTIALS: "include",
|
|
604
604
|
TOKEN: undefined,
|
|
@@ -939,6 +939,21 @@ class AgentService {
|
|
|
939
939
|
}
|
|
940
940
|
});
|
|
941
941
|
}
|
|
942
|
+
static getAgentStructureAgentsAgentIdStructureGet(agentId, userId) {
|
|
943
|
+
return request(OpenAPI, {
|
|
944
|
+
method: "GET",
|
|
945
|
+
url: "/agents/{agent_id}/structure",
|
|
946
|
+
path: {
|
|
947
|
+
agent_id: agentId
|
|
948
|
+
},
|
|
949
|
+
query: {
|
|
950
|
+
user_id: userId
|
|
951
|
+
},
|
|
952
|
+
errors: {
|
|
953
|
+
422: `Validation Error`
|
|
954
|
+
}
|
|
955
|
+
});
|
|
956
|
+
}
|
|
942
957
|
static visualizeAgentAgentsAgentIdVisualizeGet(agentId, userId, format = "png") {
|
|
943
958
|
return request(OpenAPI, {
|
|
944
959
|
method: "GET",
|
|
@@ -1287,6 +1302,17 @@ class McpServersService {
|
|
|
1287
1302
|
url: "/mcp-servers"
|
|
1288
1303
|
});
|
|
1289
1304
|
}
|
|
1305
|
+
static createMcpServerMcpServersPost(requestBody) {
|
|
1306
|
+
return request(OpenAPI, {
|
|
1307
|
+
method: "POST",
|
|
1308
|
+
url: "/mcp-servers",
|
|
1309
|
+
body: requestBody,
|
|
1310
|
+
mediaType: "application/json",
|
|
1311
|
+
errors: {
|
|
1312
|
+
422: `Validation Error`
|
|
1313
|
+
}
|
|
1314
|
+
});
|
|
1315
|
+
}
|
|
1290
1316
|
static getMcpServerMcpServersServerIdGet(serverId) {
|
|
1291
1317
|
return request(OpenAPI, {
|
|
1292
1318
|
method: "GET",
|
|
@@ -1299,6 +1325,32 @@ class McpServersService {
|
|
|
1299
1325
|
}
|
|
1300
1326
|
});
|
|
1301
1327
|
}
|
|
1328
|
+
static updateMcpServerMcpServersServerIdPut(serverId, requestBody) {
|
|
1329
|
+
return request(OpenAPI, {
|
|
1330
|
+
method: "PUT",
|
|
1331
|
+
url: "/mcp-servers/{server_id}",
|
|
1332
|
+
path: {
|
|
1333
|
+
server_id: serverId
|
|
1334
|
+
},
|
|
1335
|
+
body: requestBody,
|
|
1336
|
+
mediaType: "application/json",
|
|
1337
|
+
errors: {
|
|
1338
|
+
422: `Validation Error`
|
|
1339
|
+
}
|
|
1340
|
+
});
|
|
1341
|
+
}
|
|
1342
|
+
static deleteMcpServerMcpServersServerIdDelete(serverId) {
|
|
1343
|
+
return request(OpenAPI, {
|
|
1344
|
+
method: "DELETE",
|
|
1345
|
+
url: "/mcp-servers/{server_id}",
|
|
1346
|
+
path: {
|
|
1347
|
+
server_id: serverId
|
|
1348
|
+
},
|
|
1349
|
+
errors: {
|
|
1350
|
+
422: `Validation Error`
|
|
1351
|
+
}
|
|
1352
|
+
});
|
|
1353
|
+
}
|
|
1302
1354
|
}
|
|
1303
1355
|
var init_McpServersService = __esm(() => {
|
|
1304
1356
|
init_OpenAPI();
|
|
@@ -1564,7 +1616,7 @@ var init_lib = __esm(() => {
|
|
|
1564
1616
|
var import_cli_maker, commandAgents, agentsCommand_default;
|
|
1565
1617
|
var init_agentsCommand = __esm(() => {
|
|
1566
1618
|
init_lib();
|
|
1567
|
-
import_cli_maker = __toESM(require_dist());
|
|
1619
|
+
import_cli_maker = __toESM(require_dist(), 1);
|
|
1568
1620
|
commandAgents = {
|
|
1569
1621
|
name: "getAgents",
|
|
1570
1622
|
description: "Get the list of agents",
|
|
@@ -1587,7 +1639,7 @@ var init_agentsCommand = __esm(() => {
|
|
|
1587
1639
|
var import_cli_maker2, rootCommand, rootCommand_default;
|
|
1588
1640
|
var init_rootCommand = __esm(() => {
|
|
1589
1641
|
init_lib();
|
|
1590
|
-
import_cli_maker2 = __toESM(require_dist());
|
|
1642
|
+
import_cli_maker2 = __toESM(require_dist(), 1);
|
|
1591
1643
|
rootCommand = {
|
|
1592
1644
|
name: "version",
|
|
1593
1645
|
description: "Get the version of the API",
|
|
@@ -1618,7 +1670,7 @@ var init_rootCommand = __esm(() => {
|
|
|
1618
1670
|
var import_cli_maker3, commandConversations, conversationsCommand_default;
|
|
1619
1671
|
var init_conversationsCommand = __esm(() => {
|
|
1620
1672
|
init_agents_generator();
|
|
1621
|
-
import_cli_maker3 = __toESM(require_dist());
|
|
1673
|
+
import_cli_maker3 = __toESM(require_dist(), 1);
|
|
1622
1674
|
commandConversations = {
|
|
1623
1675
|
name: "getConversations",
|
|
1624
1676
|
description: "Get the list of conversations",
|
|
@@ -1664,7 +1716,7 @@ var init_cli = __esm(() => {
|
|
|
1664
1716
|
init_agentsCommand();
|
|
1665
1717
|
init_rootCommand();
|
|
1666
1718
|
init_conversationsCommand();
|
|
1667
|
-
import_cli_maker4 = __toESM(require_dist());
|
|
1719
|
+
import_cli_maker4 = __toESM(require_dist(), 1);
|
|
1668
1720
|
cli = new import_cli_maker4.CLI("@ideascol/agents-generator-sdk", "agents-generator-sdk", {
|
|
1669
1721
|
interactive: true,
|
|
1670
1722
|
version: OpenAPI.VERSION
|
package/dist/index.js
CHANGED
|
@@ -166,7 +166,7 @@ var OpenAPI;
|
|
|
166
166
|
var init_OpenAPI = __esm(() => {
|
|
167
167
|
OpenAPI = {
|
|
168
168
|
BASE: "",
|
|
169
|
-
VERSION: "main-
|
|
169
|
+
VERSION: "main-0b1b322fb998cc905c3b6794c429010cbdf39f4e",
|
|
170
170
|
WITH_CREDENTIALS: false,
|
|
171
171
|
CREDENTIALS: "include",
|
|
172
172
|
TOKEN: undefined,
|
|
@@ -507,6 +507,21 @@ class AgentService {
|
|
|
507
507
|
}
|
|
508
508
|
});
|
|
509
509
|
}
|
|
510
|
+
static getAgentStructureAgentsAgentIdStructureGet(agentId, userId) {
|
|
511
|
+
return request(OpenAPI, {
|
|
512
|
+
method: "GET",
|
|
513
|
+
url: "/agents/{agent_id}/structure",
|
|
514
|
+
path: {
|
|
515
|
+
agent_id: agentId
|
|
516
|
+
},
|
|
517
|
+
query: {
|
|
518
|
+
user_id: userId
|
|
519
|
+
},
|
|
520
|
+
errors: {
|
|
521
|
+
422: `Validation Error`
|
|
522
|
+
}
|
|
523
|
+
});
|
|
524
|
+
}
|
|
510
525
|
static visualizeAgentAgentsAgentIdVisualizeGet(agentId, userId, format = "png") {
|
|
511
526
|
return request(OpenAPI, {
|
|
512
527
|
method: "GET",
|
|
@@ -855,6 +870,17 @@ class McpServersService {
|
|
|
855
870
|
url: "/mcp-servers"
|
|
856
871
|
});
|
|
857
872
|
}
|
|
873
|
+
static createMcpServerMcpServersPost(requestBody) {
|
|
874
|
+
return request(OpenAPI, {
|
|
875
|
+
method: "POST",
|
|
876
|
+
url: "/mcp-servers",
|
|
877
|
+
body: requestBody,
|
|
878
|
+
mediaType: "application/json",
|
|
879
|
+
errors: {
|
|
880
|
+
422: `Validation Error`
|
|
881
|
+
}
|
|
882
|
+
});
|
|
883
|
+
}
|
|
858
884
|
static getMcpServerMcpServersServerIdGet(serverId) {
|
|
859
885
|
return request(OpenAPI, {
|
|
860
886
|
method: "GET",
|
|
@@ -867,6 +893,32 @@ class McpServersService {
|
|
|
867
893
|
}
|
|
868
894
|
});
|
|
869
895
|
}
|
|
896
|
+
static updateMcpServerMcpServersServerIdPut(serverId, requestBody) {
|
|
897
|
+
return request(OpenAPI, {
|
|
898
|
+
method: "PUT",
|
|
899
|
+
url: "/mcp-servers/{server_id}",
|
|
900
|
+
path: {
|
|
901
|
+
server_id: serverId
|
|
902
|
+
},
|
|
903
|
+
body: requestBody,
|
|
904
|
+
mediaType: "application/json",
|
|
905
|
+
errors: {
|
|
906
|
+
422: `Validation Error`
|
|
907
|
+
}
|
|
908
|
+
});
|
|
909
|
+
}
|
|
910
|
+
static deleteMcpServerMcpServersServerIdDelete(serverId) {
|
|
911
|
+
return request(OpenAPI, {
|
|
912
|
+
method: "DELETE",
|
|
913
|
+
url: "/mcp-servers/{server_id}",
|
|
914
|
+
path: {
|
|
915
|
+
server_id: serverId
|
|
916
|
+
},
|
|
917
|
+
errors: {
|
|
918
|
+
422: `Validation Error`
|
|
919
|
+
}
|
|
920
|
+
});
|
|
921
|
+
}
|
|
870
922
|
}
|
|
871
923
|
var init_McpServersService = __esm(() => {
|
|
872
924
|
init_OpenAPI();
|
|
@@ -12,6 +12,7 @@ export type { BucketResponse } from './models/BucketResponse';
|
|
|
12
12
|
export type { ConversationCreate } from './models/ConversationCreate';
|
|
13
13
|
export type { ConversationResponse } from './models/ConversationResponse';
|
|
14
14
|
export type { ConversationUpdate } from './models/ConversationUpdate';
|
|
15
|
+
export type { CreateMCPServerRequest } from './models/CreateMCPServerRequest';
|
|
15
16
|
export type { CredentialCreate } from './models/CredentialCreate';
|
|
16
17
|
export type { CredentialUpdate } from './models/CredentialUpdate';
|
|
17
18
|
export type { Edge } from './models/Edge';
|
|
@@ -34,6 +35,7 @@ export type { MessageResponse } from './models/MessageResponse';
|
|
|
34
35
|
export type { Node } from './models/Node';
|
|
35
36
|
export type { NodeData } from './models/NodeData';
|
|
36
37
|
export type { Position } from './models/Position';
|
|
38
|
+
export type { UpdateMCPServerRequest } from './models/UpdateMCPServerRequest';
|
|
37
39
|
export type { ValidationError } from './models/ValidationError';
|
|
38
40
|
export { AgentService } from './services/AgentService';
|
|
39
41
|
export { ConversationsService } from './services/ConversationsService';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Model representing a reference to an MCP server within an agent.
|
|
3
|
-
* Includes the server ID and dynamic parameters.
|
|
3
|
+
* Includes the server ID and dynamic parameters, plus optional server details.
|
|
4
4
|
*/
|
|
5
5
|
export type MCPServerReference = {
|
|
6
6
|
id: string;
|
|
@@ -8,4 +8,9 @@ export type MCPServerReference = {
|
|
|
8
8
|
* Dynamic parameters for the MCP server (e.g., API keys)
|
|
9
9
|
*/
|
|
10
10
|
params?: Record<string, any>;
|
|
11
|
+
name?: (string | null);
|
|
12
|
+
status?: (string | null);
|
|
13
|
+
url?: (string | null);
|
|
14
|
+
description?: (string | null);
|
|
15
|
+
type?: (string | null);
|
|
11
16
|
};
|
|
@@ -7,5 +7,17 @@ export type NodeData = {
|
|
|
7
7
|
/**
|
|
8
8
|
* List of MCP servers associated with this node
|
|
9
9
|
*/
|
|
10
|
-
mcp_servers?: Array<MCPServerReference
|
|
10
|
+
mcp_servers?: (Array<MCPServerReference> | null);
|
|
11
|
+
/**
|
|
12
|
+
* List of selected folders for file search tools
|
|
13
|
+
*/
|
|
14
|
+
selectedFolders?: null;
|
|
15
|
+
/**
|
|
16
|
+
* Configuration for web search tool
|
|
17
|
+
*/
|
|
18
|
+
webSearchConfig?: (Record<string, any> | null);
|
|
19
|
+
/**
|
|
20
|
+
* Configuration for hosted MCP tool
|
|
21
|
+
*/
|
|
22
|
+
hostedMCPConfig?: (Record<string, any> | null);
|
|
11
23
|
};
|
|
@@ -62,6 +62,16 @@ export declare class AgentService {
|
|
|
62
62
|
* @throws ApiError
|
|
63
63
|
*/
|
|
64
64
|
static queryAgentAgentsAgentIdQueryPost(agentId: string, requestBody: AgentQueryRequest, userId?: string, conversationId?: (string | null)): CancelablePromise<AgentQueryResponse>;
|
|
65
|
+
/**
|
|
66
|
+
* Get Agent Structure
|
|
67
|
+
* Get detailed agent structure and tools information using openai-agents visualization.
|
|
68
|
+
* Returns information about the agent's graph structure, nodes, edges, and tools used.
|
|
69
|
+
* @param agentId
|
|
70
|
+
* @param userId
|
|
71
|
+
* @returns any Successful Response
|
|
72
|
+
* @throws ApiError
|
|
73
|
+
*/
|
|
74
|
+
static getAgentStructureAgentsAgentIdStructureGet(agentId: string, userId?: string): CancelablePromise<Record<string, any>>;
|
|
65
75
|
/**
|
|
66
76
|
* Visualize Agent
|
|
67
77
|
* @param agentId
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import type { CreateMCPServerRequest } from '../models/CreateMCPServerRequest';
|
|
1
2
|
import type { MCPServer } from '../models/MCPServer';
|
|
2
3
|
import type { MCPServerList } from '../models/MCPServerList';
|
|
4
|
+
import type { UpdateMCPServerRequest } from '../models/UpdateMCPServerRequest';
|
|
3
5
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
4
6
|
export declare class McpServersService {
|
|
5
7
|
/**
|
|
@@ -10,6 +12,14 @@ export declare class McpServersService {
|
|
|
10
12
|
* @throws ApiError
|
|
11
13
|
*/
|
|
12
14
|
static getMcpServersMcpServersGet(): CancelablePromise<MCPServerList>;
|
|
15
|
+
/**
|
|
16
|
+
* Create Mcp Server
|
|
17
|
+
* Create a new MCP server.
|
|
18
|
+
* @param requestBody
|
|
19
|
+
* @returns MCPServer Successful Response
|
|
20
|
+
* @throws ApiError
|
|
21
|
+
*/
|
|
22
|
+
static createMcpServerMcpServersPost(requestBody: CreateMCPServerRequest): CancelablePromise<MCPServer>;
|
|
13
23
|
/**
|
|
14
24
|
* Get Mcp Server
|
|
15
25
|
* Get a specific MCP server by ID.
|
|
@@ -18,4 +28,21 @@ export declare class McpServersService {
|
|
|
18
28
|
* @throws ApiError
|
|
19
29
|
*/
|
|
20
30
|
static getMcpServerMcpServersServerIdGet(serverId: string): CancelablePromise<MCPServer>;
|
|
31
|
+
/**
|
|
32
|
+
* Update Mcp Server
|
|
33
|
+
* Update an existing MCP server.
|
|
34
|
+
* @param serverId
|
|
35
|
+
* @param requestBody
|
|
36
|
+
* @returns MCPServer Successful Response
|
|
37
|
+
* @throws ApiError
|
|
38
|
+
*/
|
|
39
|
+
static updateMcpServerMcpServersServerIdPut(serverId: string, requestBody: UpdateMCPServerRequest): CancelablePromise<MCPServer>;
|
|
40
|
+
/**
|
|
41
|
+
* Delete Mcp Server
|
|
42
|
+
* Delete an MCP server.
|
|
43
|
+
* @param serverId
|
|
44
|
+
* @returns any Successful Response
|
|
45
|
+
* @throws ApiError
|
|
46
|
+
*/
|
|
47
|
+
static deleteMcpServerMcpServersServerIdDelete(serverId: string): CancelablePromise<any>;
|
|
21
48
|
}
|