@ideascol/agents-generator-sdk 0.0.9 → 0.1.2
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/README.md +2 -2
- package/dist/bin/cli.js +90 -51
- package/dist/index.js +83 -44
- package/dist/lib/clients/agents-generator/index.d.ts +4 -2
- package/dist/lib/clients/agents-generator/models/AgentRequest.d.ts +1 -1
- package/dist/lib/clients/agents-generator/models/Body_upload_file.d.ts +3 -0
- package/dist/lib/clients/agents-generator/models/CreateMCPServerRequest.d.ts +6 -0
- package/dist/lib/clients/agents-generator/models/MCPServerReference.d.ts +6 -1
- package/dist/lib/clients/agents-generator/models/NodeData.d.ts +5 -1
- package/dist/lib/clients/agents-generator/models/UpdateMCPServerRequest.d.ts +6 -0
- package/dist/lib/clients/agents-generator/services/AgentService.d.ts +9 -9
- package/dist/lib/clients/agents-generator/services/ConversationsService.d.ts +6 -6
- package/dist/lib/clients/agents-generator/services/{DefaultService.d.ts → CredentialsService.d.ts} +7 -7
- package/dist/lib/clients/agents-generator/services/FileLibraryService.d.ts +13 -13
- package/dist/lib/clients/agents-generator/services/McpServersService.d.ts +27 -0
- package/dist/lib/clients/agents-generator/services/RootService.d.ts +2 -2
- package/dist/lib/index.d.ts +2 -1
- package/package.json +1 -1
- package/dist/lib/clients/agents-generator/models/Body_upload_file_file_library_folders__folder_id__files_post.d.ts +0 -3
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-dc044c7be61690adf5f2f6180d23dd69165b11ff",
|
|
170
170
|
WITH_CREDENTIALS: false,
|
|
171
171
|
CREDENTIALS: "include",
|
|
172
172
|
TOKEN: undefined,
|
|
@@ -403,7 +403,7 @@ var init_request = __esm(() => {
|
|
|
403
403
|
|
|
404
404
|
// src/lib/clients/agents-generator/services/AgentService.ts
|
|
405
405
|
class AgentService {
|
|
406
|
-
static
|
|
406
|
+
static createAgent(requestBody, userId) {
|
|
407
407
|
return request(OpenAPI, {
|
|
408
408
|
method: "POST",
|
|
409
409
|
url: "/agents",
|
|
@@ -417,7 +417,7 @@ class AgentService {
|
|
|
417
417
|
}
|
|
418
418
|
});
|
|
419
419
|
}
|
|
420
|
-
static
|
|
420
|
+
static getAgents(skip, limit = 100) {
|
|
421
421
|
return request(OpenAPI, {
|
|
422
422
|
method: "GET",
|
|
423
423
|
url: "/agents",
|
|
@@ -430,7 +430,7 @@ class AgentService {
|
|
|
430
430
|
}
|
|
431
431
|
});
|
|
432
432
|
}
|
|
433
|
-
static
|
|
433
|
+
static updateAgent(agentId, requestBody, userId) {
|
|
434
434
|
return request(OpenAPI, {
|
|
435
435
|
method: "PUT",
|
|
436
436
|
url: "/agents/{agent_id}",
|
|
@@ -447,7 +447,7 @@ class AgentService {
|
|
|
447
447
|
}
|
|
448
448
|
});
|
|
449
449
|
}
|
|
450
|
-
static
|
|
450
|
+
static getAgent(agentId, userId) {
|
|
451
451
|
return request(OpenAPI, {
|
|
452
452
|
method: "GET",
|
|
453
453
|
url: "/agents/{agent_id}",
|
|
@@ -462,7 +462,7 @@ class AgentService {
|
|
|
462
462
|
}
|
|
463
463
|
});
|
|
464
464
|
}
|
|
465
|
-
static
|
|
465
|
+
static deleteAgent(agentId, userId) {
|
|
466
466
|
return request(OpenAPI, {
|
|
467
467
|
method: "DELETE",
|
|
468
468
|
url: "/agents/{agent_id}",
|
|
@@ -477,7 +477,7 @@ class AgentService {
|
|
|
477
477
|
}
|
|
478
478
|
});
|
|
479
479
|
}
|
|
480
|
-
static
|
|
480
|
+
static initializeAgent(agentId) {
|
|
481
481
|
return request(OpenAPI, {
|
|
482
482
|
method: "POST",
|
|
483
483
|
url: "/agents/{agent_id}/initialize",
|
|
@@ -489,7 +489,7 @@ class AgentService {
|
|
|
489
489
|
}
|
|
490
490
|
});
|
|
491
491
|
}
|
|
492
|
-
static
|
|
492
|
+
static queryAgent(agentId, requestBody, userId, conversationId) {
|
|
493
493
|
return request(OpenAPI, {
|
|
494
494
|
method: "POST",
|
|
495
495
|
url: "/agents/{agent_id}/query",
|
|
@@ -507,7 +507,7 @@ class AgentService {
|
|
|
507
507
|
}
|
|
508
508
|
});
|
|
509
509
|
}
|
|
510
|
-
static
|
|
510
|
+
static getAgentStructure(agentId, userId) {
|
|
511
511
|
return request(OpenAPI, {
|
|
512
512
|
method: "GET",
|
|
513
513
|
url: "/agents/{agent_id}/structure",
|
|
@@ -522,7 +522,7 @@ class AgentService {
|
|
|
522
522
|
}
|
|
523
523
|
});
|
|
524
524
|
}
|
|
525
|
-
static
|
|
525
|
+
static visualizeAgent(agentId, userId, format = "png") {
|
|
526
526
|
return request(OpenAPI, {
|
|
527
527
|
method: "GET",
|
|
528
528
|
url: "/agents/{agent_id}/visualize",
|
|
@@ -546,7 +546,7 @@ var init_AgentService = __esm(() => {
|
|
|
546
546
|
|
|
547
547
|
// src/lib/clients/agents-generator/services/ConversationsService.ts
|
|
548
548
|
class ConversationsService {
|
|
549
|
-
static
|
|
549
|
+
static createConversation(requestBody) {
|
|
550
550
|
return request(OpenAPI, {
|
|
551
551
|
method: "POST",
|
|
552
552
|
url: "/conversations",
|
|
@@ -557,7 +557,7 @@ class ConversationsService {
|
|
|
557
557
|
}
|
|
558
558
|
});
|
|
559
559
|
}
|
|
560
|
-
static
|
|
560
|
+
static getConversation(conversationId) {
|
|
561
561
|
return request(OpenAPI, {
|
|
562
562
|
method: "GET",
|
|
563
563
|
url: "/conversations/{conversation_id}",
|
|
@@ -569,7 +569,7 @@ class ConversationsService {
|
|
|
569
569
|
}
|
|
570
570
|
});
|
|
571
571
|
}
|
|
572
|
-
static
|
|
572
|
+
static updateConversation(conversationId, requestBody) {
|
|
573
573
|
return request(OpenAPI, {
|
|
574
574
|
method: "PUT",
|
|
575
575
|
url: "/conversations/{conversation_id}",
|
|
@@ -583,7 +583,7 @@ class ConversationsService {
|
|
|
583
583
|
}
|
|
584
584
|
});
|
|
585
585
|
}
|
|
586
|
-
static
|
|
586
|
+
static deleteConversation(conversationId) {
|
|
587
587
|
return request(OpenAPI, {
|
|
588
588
|
method: "DELETE",
|
|
589
589
|
url: "/conversations/{conversation_id}",
|
|
@@ -595,7 +595,7 @@ class ConversationsService {
|
|
|
595
595
|
}
|
|
596
596
|
});
|
|
597
597
|
}
|
|
598
|
-
static
|
|
598
|
+
static getAgentConversations(agentId, skip, limit = 100) {
|
|
599
599
|
return request(OpenAPI, {
|
|
600
600
|
method: "GET",
|
|
601
601
|
url: "/conversations/agent/{agent_id}",
|
|
@@ -611,7 +611,7 @@ class ConversationsService {
|
|
|
611
611
|
}
|
|
612
612
|
});
|
|
613
613
|
}
|
|
614
|
-
static
|
|
614
|
+
static addMessage(conversationId, requestBody, accept) {
|
|
615
615
|
return request(OpenAPI, {
|
|
616
616
|
method: "POST",
|
|
617
617
|
url: "/conversations/{conversation_id}/messages",
|
|
@@ -636,18 +636,18 @@ var init_ConversationsService = __esm(() => {
|
|
|
636
636
|
init_request();
|
|
637
637
|
});
|
|
638
638
|
|
|
639
|
-
// src/lib/clients/agents-generator/services/
|
|
640
|
-
class
|
|
641
|
-
static
|
|
639
|
+
// src/lib/clients/agents-generator/services/CredentialsService.ts
|
|
640
|
+
class CredentialsService {
|
|
641
|
+
static getCredentials() {
|
|
642
642
|
return request(OpenAPI, {
|
|
643
643
|
method: "GET",
|
|
644
|
-
url: "/credentials"
|
|
644
|
+
url: "/credentials/"
|
|
645
645
|
});
|
|
646
646
|
}
|
|
647
|
-
static
|
|
647
|
+
static createCredential(requestBody) {
|
|
648
648
|
return request(OpenAPI, {
|
|
649
649
|
method: "POST",
|
|
650
|
-
url: "/credentials",
|
|
650
|
+
url: "/credentials/",
|
|
651
651
|
body: requestBody,
|
|
652
652
|
mediaType: "application/json",
|
|
653
653
|
errors: {
|
|
@@ -655,7 +655,7 @@ class DefaultService {
|
|
|
655
655
|
}
|
|
656
656
|
});
|
|
657
657
|
}
|
|
658
|
-
static
|
|
658
|
+
static getCredential(credentialId) {
|
|
659
659
|
return request(OpenAPI, {
|
|
660
660
|
method: "GET",
|
|
661
661
|
url: "/credentials/{credential_id}",
|
|
@@ -667,7 +667,7 @@ class DefaultService {
|
|
|
667
667
|
}
|
|
668
668
|
});
|
|
669
669
|
}
|
|
670
|
-
static
|
|
670
|
+
static updateCredential(credentialId, requestBody) {
|
|
671
671
|
return request(OpenAPI, {
|
|
672
672
|
method: "PUT",
|
|
673
673
|
url: "/credentials/{credential_id}",
|
|
@@ -681,7 +681,7 @@ class DefaultService {
|
|
|
681
681
|
}
|
|
682
682
|
});
|
|
683
683
|
}
|
|
684
|
-
static
|
|
684
|
+
static deleteCredential(credentialId) {
|
|
685
685
|
return request(OpenAPI, {
|
|
686
686
|
method: "DELETE",
|
|
687
687
|
url: "/credentials/{credential_id}",
|
|
@@ -693,7 +693,7 @@ class DefaultService {
|
|
|
693
693
|
}
|
|
694
694
|
});
|
|
695
695
|
}
|
|
696
|
-
static
|
|
696
|
+
static getCredentialDecrypted(credentialId) {
|
|
697
697
|
return request(OpenAPI, {
|
|
698
698
|
method: "GET",
|
|
699
699
|
url: "/credentials/{credential_id}/decrypt",
|
|
@@ -706,20 +706,20 @@ class DefaultService {
|
|
|
706
706
|
});
|
|
707
707
|
}
|
|
708
708
|
}
|
|
709
|
-
var
|
|
709
|
+
var init_CredentialsService = __esm(() => {
|
|
710
710
|
init_OpenAPI();
|
|
711
711
|
init_request();
|
|
712
712
|
});
|
|
713
713
|
|
|
714
714
|
// src/lib/clients/agents-generator/services/FileLibraryService.ts
|
|
715
715
|
class FileLibraryService {
|
|
716
|
-
static
|
|
716
|
+
static getBuckets() {
|
|
717
717
|
return request(OpenAPI, {
|
|
718
718
|
method: "GET",
|
|
719
719
|
url: "/file-library/buckets"
|
|
720
720
|
});
|
|
721
721
|
}
|
|
722
|
-
static
|
|
722
|
+
static createBucket(requestBody) {
|
|
723
723
|
return request(OpenAPI, {
|
|
724
724
|
method: "POST",
|
|
725
725
|
url: "/file-library/buckets",
|
|
@@ -730,7 +730,7 @@ class FileLibraryService {
|
|
|
730
730
|
}
|
|
731
731
|
});
|
|
732
732
|
}
|
|
733
|
-
static
|
|
733
|
+
static getBucket(bucketId) {
|
|
734
734
|
return request(OpenAPI, {
|
|
735
735
|
method: "GET",
|
|
736
736
|
url: "/file-library/buckets/{bucket_id}",
|
|
@@ -742,7 +742,7 @@ class FileLibraryService {
|
|
|
742
742
|
}
|
|
743
743
|
});
|
|
744
744
|
}
|
|
745
|
-
static
|
|
745
|
+
static deleteBucket(bucketId) {
|
|
746
746
|
return request(OpenAPI, {
|
|
747
747
|
method: "DELETE",
|
|
748
748
|
url: "/file-library/buckets/{bucket_id}",
|
|
@@ -754,7 +754,7 @@ class FileLibraryService {
|
|
|
754
754
|
}
|
|
755
755
|
});
|
|
756
756
|
}
|
|
757
|
-
static
|
|
757
|
+
static createFolder(requestBody) {
|
|
758
758
|
return request(OpenAPI, {
|
|
759
759
|
method: "POST",
|
|
760
760
|
url: "/file-library/folders",
|
|
@@ -765,7 +765,7 @@ class FileLibraryService {
|
|
|
765
765
|
}
|
|
766
766
|
});
|
|
767
767
|
}
|
|
768
|
-
static
|
|
768
|
+
static getFoldersByBucket(bucketId, parentFolderId) {
|
|
769
769
|
return request(OpenAPI, {
|
|
770
770
|
method: "GET",
|
|
771
771
|
url: "/file-library/buckets/{bucket_id}/folders",
|
|
@@ -780,7 +780,7 @@ class FileLibraryService {
|
|
|
780
780
|
}
|
|
781
781
|
});
|
|
782
782
|
}
|
|
783
|
-
static
|
|
783
|
+
static deleteFolder(folderId) {
|
|
784
784
|
return request(OpenAPI, {
|
|
785
785
|
method: "DELETE",
|
|
786
786
|
url: "/file-library/folders/{folder_id}",
|
|
@@ -792,7 +792,7 @@ class FileLibraryService {
|
|
|
792
792
|
}
|
|
793
793
|
});
|
|
794
794
|
}
|
|
795
|
-
static
|
|
795
|
+
static uploadFile(folderId, formData) {
|
|
796
796
|
return request(OpenAPI, {
|
|
797
797
|
method: "POST",
|
|
798
798
|
url: "/file-library/folders/{folder_id}/files",
|
|
@@ -806,7 +806,7 @@ class FileLibraryService {
|
|
|
806
806
|
}
|
|
807
807
|
});
|
|
808
808
|
}
|
|
809
|
-
static
|
|
809
|
+
static getFilesByFolder(folderId) {
|
|
810
810
|
return request(OpenAPI, {
|
|
811
811
|
method: "GET",
|
|
812
812
|
url: "/file-library/folders/{folder_id}/files",
|
|
@@ -818,7 +818,7 @@ class FileLibraryService {
|
|
|
818
818
|
}
|
|
819
819
|
});
|
|
820
820
|
}
|
|
821
|
-
static
|
|
821
|
+
static deleteFile(fileId) {
|
|
822
822
|
return request(OpenAPI, {
|
|
823
823
|
method: "DELETE",
|
|
824
824
|
url: "/file-library/files/{file_id}",
|
|
@@ -830,7 +830,7 @@ class FileLibraryService {
|
|
|
830
830
|
}
|
|
831
831
|
});
|
|
832
832
|
}
|
|
833
|
-
static
|
|
833
|
+
static uploadFolder(parentFolderId, requestBody) {
|
|
834
834
|
return request(OpenAPI, {
|
|
835
835
|
method: "POST",
|
|
836
836
|
url: "/file-library/folders/{parent_folder_id}/upload-folder",
|
|
@@ -844,7 +844,7 @@ class FileLibraryService {
|
|
|
844
844
|
}
|
|
845
845
|
});
|
|
846
846
|
}
|
|
847
|
-
static
|
|
847
|
+
static createFolderVectorStore(folderId) {
|
|
848
848
|
return request(OpenAPI, {
|
|
849
849
|
method: "POST",
|
|
850
850
|
url: "/file-library/folders/{folder_id}/create-vector-store",
|
|
@@ -870,6 +870,17 @@ class McpServersService {
|
|
|
870
870
|
url: "/mcp-servers"
|
|
871
871
|
});
|
|
872
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
|
+
}
|
|
873
884
|
static getMcpServerMcpServersServerIdGet(serverId) {
|
|
874
885
|
return request(OpenAPI, {
|
|
875
886
|
method: "GET",
|
|
@@ -882,6 +893,32 @@ class McpServersService {
|
|
|
882
893
|
}
|
|
883
894
|
});
|
|
884
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
|
+
}
|
|
885
922
|
}
|
|
886
923
|
var init_McpServersService = __esm(() => {
|
|
887
924
|
init_OpenAPI();
|
|
@@ -890,13 +927,13 @@ var init_McpServersService = __esm(() => {
|
|
|
890
927
|
|
|
891
928
|
// src/lib/clients/agents-generator/services/RootService.ts
|
|
892
929
|
class RootService {
|
|
893
|
-
static
|
|
930
|
+
static root() {
|
|
894
931
|
return request(OpenAPI, {
|
|
895
932
|
method: "GET",
|
|
896
933
|
url: "/"
|
|
897
934
|
});
|
|
898
935
|
}
|
|
899
|
-
static
|
|
936
|
+
static healthCheck() {
|
|
900
937
|
return request(OpenAPI, {
|
|
901
938
|
method: "GET",
|
|
902
939
|
url: "/health"
|
|
@@ -915,7 +952,7 @@ var init_agents_generator = __esm(() => {
|
|
|
915
952
|
init_OpenAPI();
|
|
916
953
|
init_AgentService();
|
|
917
954
|
init_ConversationsService();
|
|
918
|
-
|
|
955
|
+
init_CredentialsService();
|
|
919
956
|
init_FileLibraryService();
|
|
920
957
|
init_McpServersService();
|
|
921
958
|
init_RootService();
|
|
@@ -928,6 +965,7 @@ class AgentClient {
|
|
|
928
965
|
mcpServers;
|
|
929
966
|
root;
|
|
930
967
|
fileLibrary;
|
|
968
|
+
credentials;
|
|
931
969
|
ApiError;
|
|
932
970
|
CancelError;
|
|
933
971
|
CancelablePromise;
|
|
@@ -947,6 +985,7 @@ class AgentClient {
|
|
|
947
985
|
this.mcpServers = McpServersService;
|
|
948
986
|
this.root = RootService;
|
|
949
987
|
this.fileLibrary = FileLibraryService;
|
|
988
|
+
this.credentials = CredentialsService;
|
|
950
989
|
this.conversationsStream = ConversationsServiceStream;
|
|
951
990
|
this.ApiError = ApiError;
|
|
952
991
|
this.CancelError = CancelError;
|
|
@@ -957,7 +996,7 @@ class AgentClient {
|
|
|
957
996
|
return ConversationsServiceStream.addMessageConversationsConversationIdMessagesPostStream(conversationId, requestBody, callbacks);
|
|
958
997
|
}
|
|
959
998
|
sendMessage(conversationId, requestBody) {
|
|
960
|
-
return ConversationsServiceStream.
|
|
999
|
+
return ConversationsServiceStream.addMessage(conversationId, requestBody, "text/plain");
|
|
961
1000
|
}
|
|
962
1001
|
}
|
|
963
1002
|
var ConversationsServiceStream, lib_default;
|
|
@@ -1150,7 +1189,7 @@ __export(exports_src, {
|
|
|
1150
1189
|
OpenAPI: () => OpenAPI,
|
|
1151
1190
|
McpServersService: () => McpServersService,
|
|
1152
1191
|
FileLibraryService: () => FileLibraryService,
|
|
1153
|
-
|
|
1192
|
+
CredentialsService: () => CredentialsService,
|
|
1154
1193
|
ConversationsService: () => ConversationsService,
|
|
1155
1194
|
CancelablePromise: () => CancelablePromise,
|
|
1156
1195
|
CancelError: () => CancelError,
|
|
@@ -6,12 +6,13 @@ export type { AgentInitResponse } from './models/AgentInitResponse';
|
|
|
6
6
|
export type { AgentQueryRequest } from './models/AgentQueryRequest';
|
|
7
7
|
export type { AgentQueryResponse } from './models/AgentQueryResponse';
|
|
8
8
|
export type { AgentRequest } from './models/AgentRequest';
|
|
9
|
-
export type {
|
|
9
|
+
export type { Body_upload_file } from './models/Body_upload_file';
|
|
10
10
|
export type { BucketCreate } from './models/BucketCreate';
|
|
11
11
|
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,10 +35,11 @@ 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';
|
|
40
|
-
export {
|
|
42
|
+
export { CredentialsService } from './services/CredentialsService';
|
|
41
43
|
export { FileLibraryService } from './services/FileLibraryService';
|
|
42
44
|
export { McpServersService } from './services/McpServersService';
|
|
43
45
|
export { RootService } from './services/RootService';
|
|
@@ -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,7 +7,7 @@ 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
11
|
/**
|
|
12
12
|
* List of selected folders for file search tools
|
|
13
13
|
*/
|
|
@@ -16,4 +16,8 @@ export type NodeData = {
|
|
|
16
16
|
* Configuration for web search tool
|
|
17
17
|
*/
|
|
18
18
|
webSearchConfig?: (Record<string, any> | null);
|
|
19
|
+
/**
|
|
20
|
+
* Configuration for hosted MCP tool
|
|
21
|
+
*/
|
|
22
|
+
hostedMCPConfig?: (Record<string, any> | null);
|
|
19
23
|
};
|
|
@@ -11,7 +11,7 @@ export declare class AgentService {
|
|
|
11
11
|
* @returns any Successful Response
|
|
12
12
|
* @throws ApiError
|
|
13
13
|
*/
|
|
14
|
-
static
|
|
14
|
+
static createAgent(requestBody: AgentRequest, userId?: string): CancelablePromise<Record<string, any>>;
|
|
15
15
|
/**
|
|
16
16
|
* Get Agents
|
|
17
17
|
* @param skip
|
|
@@ -19,7 +19,7 @@ export declare class AgentService {
|
|
|
19
19
|
* @returns any Successful Response
|
|
20
20
|
* @throws ApiError
|
|
21
21
|
*/
|
|
22
|
-
static
|
|
22
|
+
static getAgents(skip?: number, limit?: number): CancelablePromise<Array<Record<string, any>>>;
|
|
23
23
|
/**
|
|
24
24
|
* Update Agent
|
|
25
25
|
* @param agentId
|
|
@@ -28,7 +28,7 @@ export declare class AgentService {
|
|
|
28
28
|
* @returns any Successful Response
|
|
29
29
|
* @throws ApiError
|
|
30
30
|
*/
|
|
31
|
-
static
|
|
31
|
+
static updateAgent(agentId: string, requestBody: AgentRequest, userId?: string): CancelablePromise<Record<string, any>>;
|
|
32
32
|
/**
|
|
33
33
|
* Get Agent
|
|
34
34
|
* @param agentId
|
|
@@ -36,7 +36,7 @@ export declare class AgentService {
|
|
|
36
36
|
* @returns any Successful Response
|
|
37
37
|
* @throws ApiError
|
|
38
38
|
*/
|
|
39
|
-
static
|
|
39
|
+
static getAgent(agentId: string, userId?: string): CancelablePromise<Record<string, any>>;
|
|
40
40
|
/**
|
|
41
41
|
* Delete Agent
|
|
42
42
|
* @param agentId
|
|
@@ -44,14 +44,14 @@ export declare class AgentService {
|
|
|
44
44
|
* @returns any Successful Response
|
|
45
45
|
* @throws ApiError
|
|
46
46
|
*/
|
|
47
|
-
static
|
|
47
|
+
static deleteAgent(agentId: string, userId?: string): CancelablePromise<Record<string, any>>;
|
|
48
48
|
/**
|
|
49
49
|
* Initialize Agent
|
|
50
50
|
* @param agentId
|
|
51
51
|
* @returns AgentInitResponse Successful Response
|
|
52
52
|
* @throws ApiError
|
|
53
53
|
*/
|
|
54
|
-
static
|
|
54
|
+
static initializeAgent(agentId: string): CancelablePromise<AgentInitResponse>;
|
|
55
55
|
/**
|
|
56
56
|
* Query Agent
|
|
57
57
|
* @param agentId
|
|
@@ -61,7 +61,7 @@ export declare class AgentService {
|
|
|
61
61
|
* @returns AgentQueryResponse Successful Response
|
|
62
62
|
* @throws ApiError
|
|
63
63
|
*/
|
|
64
|
-
static
|
|
64
|
+
static queryAgent(agentId: string, requestBody: AgentQueryRequest, userId?: string, conversationId?: (string | null)): CancelablePromise<AgentQueryResponse>;
|
|
65
65
|
/**
|
|
66
66
|
* Get Agent Structure
|
|
67
67
|
* Get detailed agent structure and tools information using openai-agents visualization.
|
|
@@ -71,7 +71,7 @@ export declare class AgentService {
|
|
|
71
71
|
* @returns any Successful Response
|
|
72
72
|
* @throws ApiError
|
|
73
73
|
*/
|
|
74
|
-
static
|
|
74
|
+
static getAgentStructure(agentId: string, userId?: string): CancelablePromise<Record<string, any>>;
|
|
75
75
|
/**
|
|
76
76
|
* Visualize Agent
|
|
77
77
|
* @param agentId
|
|
@@ -80,5 +80,5 @@ export declare class AgentService {
|
|
|
80
80
|
* @returns any Successful Response
|
|
81
81
|
* @throws ApiError
|
|
82
82
|
*/
|
|
83
|
-
static
|
|
83
|
+
static visualizeAgent(agentId: string, userId?: string, format?: string): CancelablePromise<any>;
|
|
84
84
|
}
|
|
@@ -10,14 +10,14 @@ export declare class ConversationsService {
|
|
|
10
10
|
* @returns ConversationResponse Successful Response
|
|
11
11
|
* @throws ApiError
|
|
12
12
|
*/
|
|
13
|
-
static
|
|
13
|
+
static createConversation(requestBody: ConversationCreate): CancelablePromise<ConversationResponse>;
|
|
14
14
|
/**
|
|
15
15
|
* Get Conversation
|
|
16
16
|
* @param conversationId
|
|
17
17
|
* @returns ConversationResponse Successful Response
|
|
18
18
|
* @throws ApiError
|
|
19
19
|
*/
|
|
20
|
-
static
|
|
20
|
+
static getConversation(conversationId: string): CancelablePromise<ConversationResponse>;
|
|
21
21
|
/**
|
|
22
22
|
* Update Conversation
|
|
23
23
|
* @param conversationId
|
|
@@ -25,14 +25,14 @@ export declare class ConversationsService {
|
|
|
25
25
|
* @returns ConversationResponse Successful Response
|
|
26
26
|
* @throws ApiError
|
|
27
27
|
*/
|
|
28
|
-
static
|
|
28
|
+
static updateConversation(conversationId: string, requestBody: ConversationUpdate): CancelablePromise<ConversationResponse>;
|
|
29
29
|
/**
|
|
30
30
|
* Delete Conversation
|
|
31
31
|
* @param conversationId
|
|
32
32
|
* @returns any Successful Response
|
|
33
33
|
* @throws ApiError
|
|
34
34
|
*/
|
|
35
|
-
static
|
|
35
|
+
static deleteConversation(conversationId: string): CancelablePromise<Record<string, any>>;
|
|
36
36
|
/**
|
|
37
37
|
* Get Agent Conversations
|
|
38
38
|
* @param agentId
|
|
@@ -41,7 +41,7 @@ export declare class ConversationsService {
|
|
|
41
41
|
* @returns ConversationResponse Successful Response
|
|
42
42
|
* @throws ApiError
|
|
43
43
|
*/
|
|
44
|
-
static
|
|
44
|
+
static getAgentConversations(agentId: string, skip?: number, limit?: number): CancelablePromise<Array<ConversationResponse>>;
|
|
45
45
|
/**
|
|
46
46
|
* Add Message
|
|
47
47
|
* @param conversationId
|
|
@@ -50,5 +50,5 @@ export declare class ConversationsService {
|
|
|
50
50
|
* @returns any Successful response
|
|
51
51
|
* @throws ApiError
|
|
52
52
|
*/
|
|
53
|
-
static
|
|
53
|
+
static addMessage(conversationId: string, requestBody: MessageCreate, accept?: (string | null)): CancelablePromise<any>;
|
|
54
54
|
}
|