@rightbrain/brain-api-client 0.0.1-dev.148.1322688 → 0.0.1-dev.150.56bd32f
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/api.ts +548 -172
- package/dist/api.d.ts +432 -161
- package/dist/api.js +321 -89
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -670,7 +670,8 @@ exports.TagEntityTypeEnum = {
|
|
|
670
670
|
Task: 'task',
|
|
671
671
|
TaskRevision: 'task_revision',
|
|
672
672
|
TaskShare: 'task_share',
|
|
673
|
-
Skill: 'skill'
|
|
673
|
+
Skill: 'skill',
|
|
674
|
+
TaskAgentRevision: 'task_agent_revision'
|
|
674
675
|
};
|
|
675
676
|
exports.TagOutputFormatInputTypeEnum = {
|
|
676
677
|
Str: 'str',
|
|
@@ -25063,11 +25064,11 @@ var TagsApiAxiosParamCreator = function (configuration) {
|
|
|
25063
25064
|
var _this = this;
|
|
25064
25065
|
return {
|
|
25065
25066
|
/**
|
|
25066
|
-
* Add a tag to multiple entities at once
|
|
25067
|
+
* Add a tag to multiple supported entities at once.
|
|
25067
25068
|
* @summary Add Tag to Entities
|
|
25068
25069
|
* @param {string} orgId The unique identifier of the organization.
|
|
25069
25070
|
* @param {string} projectId The unique identifier of the project.
|
|
25070
|
-
* @param {AddTagToEntitiesEntityTypeEnum} entityType The type of entity this tag applies to (`task`, `task_revision`, `task_share`, or `
|
|
25071
|
+
* @param {AddTagToEntitiesEntityTypeEnum} entityType The type of entity this tag applies to (`task`, `task_revision`, `task_share`, `skill`, or `task_agent_revision`).
|
|
25071
25072
|
* @param {string} tagId The unique identifier (UUID) of the tag to operate on.
|
|
25072
25073
|
* @param {TagEntityAdd} tagEntityAdd
|
|
25073
25074
|
* @param {*} [options] Override http request option.
|
|
@@ -25123,11 +25124,11 @@ var TagsApiAxiosParamCreator = function (configuration) {
|
|
|
25123
25124
|
});
|
|
25124
25125
|
},
|
|
25125
25126
|
/**
|
|
25126
|
-
* Create a new tag for organizing resources. Tags can be applied to: - Tasks
|
|
25127
|
+
* Create a new tag for organizing resources. Tags can be applied to supported entity types: - Tasks - Task revisions - Task shares - Skills - TaskAgent revisions Tags support hierarchical organization using prefixes.
|
|
25127
25128
|
* @summary Create Tag
|
|
25128
25129
|
* @param {string} orgId The unique identifier of the organization.
|
|
25129
25130
|
* @param {string} projectId The unique identifier of the project.
|
|
25130
|
-
* @param {CreateTagEntityTypeEnum} entityType The type of entity this tag applies to (`task`, `task_revision`, `task_share`, or `
|
|
25131
|
+
* @param {CreateTagEntityTypeEnum} entityType The type of entity this tag applies to (`task`, `task_revision`, `task_share`, `skill`, or `task_agent_revision`).
|
|
25131
25132
|
* @param {TagCreate} tagCreate
|
|
25132
25133
|
* @param {*} [options] Override http request option.
|
|
25133
25134
|
* @throws {RequiredError}
|
|
@@ -25230,11 +25231,11 @@ var TagsApiAxiosParamCreator = function (configuration) {
|
|
|
25230
25231
|
});
|
|
25231
25232
|
},
|
|
25232
25233
|
/**
|
|
25233
|
-
* Get tag details
|
|
25234
|
+
* Get tag details for the requested entity type.
|
|
25234
25235
|
* @summary Get Tag
|
|
25235
25236
|
* @param {string} orgId The unique identifier of the organization.
|
|
25236
25237
|
* @param {string} projectId The unique identifier of the project.
|
|
25237
|
-
* @param {GetTagEntityTypeEnum} entityType The type of entity this tag applies to (`task`, `task_revision`, `task_share`, or `
|
|
25238
|
+
* @param {GetTagEntityTypeEnum} entityType The type of entity this tag applies to (`task`, `task_revision`, `task_share`, `skill`, or `task_agent_revision`).
|
|
25238
25239
|
* @param {string} tagId The unique identifier (UUID) of the tag to operate on.
|
|
25239
25240
|
* @param {*} [options] Override http request option.
|
|
25240
25241
|
* @throws {RequiredError}
|
|
@@ -25285,11 +25286,11 @@ var TagsApiAxiosParamCreator = function (configuration) {
|
|
|
25285
25286
|
});
|
|
25286
25287
|
},
|
|
25287
25288
|
/**
|
|
25288
|
-
* List all tags in the project
|
|
25289
|
+
* List all tags in the project for the requested entity type.
|
|
25289
25290
|
* @summary List Tags
|
|
25290
25291
|
* @param {string} orgId The unique identifier of the organization.
|
|
25291
25292
|
* @param {string} projectId The unique identifier of the project.
|
|
25292
|
-
* @param {ListTagsEntityTypeEnum} entityType The type of entity this tag applies to (`task`, `task_revision`, `task_share`, or `
|
|
25293
|
+
* @param {ListTagsEntityTypeEnum} entityType The type of entity this tag applies to (`task`, `task_revision`, `task_share`, `skill`, or `task_agent_revision`).
|
|
25293
25294
|
* @param {number | null} [pageLimit] The maximum number of items to return per page. Defaults to `100` if not specified.
|
|
25294
25295
|
* @param {string | null} [cursor] A cursor for pagination. Use the `next_cursor` value from the previous response to get the next page of results.
|
|
25295
25296
|
* @param {*} [options] Override http request option.
|
|
@@ -25344,11 +25345,11 @@ var TagsApiAxiosParamCreator = function (configuration) {
|
|
|
25344
25345
|
});
|
|
25345
25346
|
},
|
|
25346
25347
|
/**
|
|
25347
|
-
* Remove a tag from multiple entities at once
|
|
25348
|
+
* Remove a tag from multiple supported entities at once.
|
|
25348
25349
|
* @summary Remove Tag from Entities
|
|
25349
25350
|
* @param {string} orgId The unique identifier of the organization.
|
|
25350
25351
|
* @param {string} projectId The unique identifier of the project.
|
|
25351
|
-
* @param {RemoveTagFromEntitiesEntityTypeEnum} entityType The type of entity this tag applies to (`task`, `task_revision`, `task_share`, or `
|
|
25352
|
+
* @param {RemoveTagFromEntitiesEntityTypeEnum} entityType The type of entity this tag applies to (`task`, `task_revision`, `task_share`, `skill`, or `task_agent_revision`).
|
|
25352
25353
|
* @param {string} tagId The unique identifier (UUID) of the tag to operate on.
|
|
25353
25354
|
* @param {TagEntityRemove} tagEntityRemove
|
|
25354
25355
|
* @param {*} [options] Override http request option.
|
|
@@ -25408,7 +25409,7 @@ var TagsApiAxiosParamCreator = function (configuration) {
|
|
|
25408
25409
|
* @summary Update Tag
|
|
25409
25410
|
* @param {string} orgId The unique identifier of the organization.
|
|
25410
25411
|
* @param {string} projectId The unique identifier of the project.
|
|
25411
|
-
* @param {UpdateTagEntityTypeEnum} entityType The type of entity this tag applies to (`task`, `task_revision`, `task_share`, or `
|
|
25412
|
+
* @param {UpdateTagEntityTypeEnum} entityType The type of entity this tag applies to (`task`, `task_revision`, `task_share`, `skill`, or `task_agent_revision`).
|
|
25412
25413
|
* @param {string} tagId The unique identifier (UUID) of the tag to operate on.
|
|
25413
25414
|
* @param {TagUpdate} tagUpdate
|
|
25414
25415
|
* @param {*} [options] Override http request option.
|
|
@@ -25474,11 +25475,11 @@ var TagsApiFp = function (configuration) {
|
|
|
25474
25475
|
var localVarAxiosParamCreator = (0, exports.TagsApiAxiosParamCreator)(configuration);
|
|
25475
25476
|
return {
|
|
25476
25477
|
/**
|
|
25477
|
-
* Add a tag to multiple entities at once
|
|
25478
|
+
* Add a tag to multiple supported entities at once.
|
|
25478
25479
|
* @summary Add Tag to Entities
|
|
25479
25480
|
* @param {string} orgId The unique identifier of the organization.
|
|
25480
25481
|
* @param {string} projectId The unique identifier of the project.
|
|
25481
|
-
* @param {AddTagToEntitiesEntityTypeEnum} entityType The type of entity this tag applies to (`task`, `task_revision`, `task_share`, or `
|
|
25482
|
+
* @param {AddTagToEntitiesEntityTypeEnum} entityType The type of entity this tag applies to (`task`, `task_revision`, `task_share`, `skill`, or `task_agent_revision`).
|
|
25482
25483
|
* @param {string} tagId The unique identifier (UUID) of the tag to operate on.
|
|
25483
25484
|
* @param {TagEntityAdd} tagEntityAdd
|
|
25484
25485
|
* @param {*} [options] Override http request option.
|
|
@@ -25501,11 +25502,11 @@ var TagsApiFp = function (configuration) {
|
|
|
25501
25502
|
});
|
|
25502
25503
|
},
|
|
25503
25504
|
/**
|
|
25504
|
-
* Create a new tag for organizing resources. Tags can be applied to: - Tasks
|
|
25505
|
+
* Create a new tag for organizing resources. Tags can be applied to supported entity types: - Tasks - Task revisions - Task shares - Skills - TaskAgent revisions Tags support hierarchical organization using prefixes.
|
|
25505
25506
|
* @summary Create Tag
|
|
25506
25507
|
* @param {string} orgId The unique identifier of the organization.
|
|
25507
25508
|
* @param {string} projectId The unique identifier of the project.
|
|
25508
|
-
* @param {CreateTagEntityTypeEnum} entityType The type of entity this tag applies to (`task`, `task_revision`, `task_share`, or `
|
|
25509
|
+
* @param {CreateTagEntityTypeEnum} entityType The type of entity this tag applies to (`task`, `task_revision`, `task_share`, `skill`, or `task_agent_revision`).
|
|
25509
25510
|
* @param {TagCreate} tagCreate
|
|
25510
25511
|
* @param {*} [options] Override http request option.
|
|
25511
25512
|
* @throws {RequiredError}
|
|
@@ -25552,11 +25553,11 @@ var TagsApiFp = function (configuration) {
|
|
|
25552
25553
|
});
|
|
25553
25554
|
},
|
|
25554
25555
|
/**
|
|
25555
|
-
* Get tag details
|
|
25556
|
+
* Get tag details for the requested entity type.
|
|
25556
25557
|
* @summary Get Tag
|
|
25557
25558
|
* @param {string} orgId The unique identifier of the organization.
|
|
25558
25559
|
* @param {string} projectId The unique identifier of the project.
|
|
25559
|
-
* @param {GetTagEntityTypeEnum} entityType The type of entity this tag applies to (`task`, `task_revision`, `task_share`, or `
|
|
25560
|
+
* @param {GetTagEntityTypeEnum} entityType The type of entity this tag applies to (`task`, `task_revision`, `task_share`, `skill`, or `task_agent_revision`).
|
|
25560
25561
|
* @param {string} tagId The unique identifier (UUID) of the tag to operate on.
|
|
25561
25562
|
* @param {*} [options] Override http request option.
|
|
25562
25563
|
* @throws {RequiredError}
|
|
@@ -25578,11 +25579,11 @@ var TagsApiFp = function (configuration) {
|
|
|
25578
25579
|
});
|
|
25579
25580
|
},
|
|
25580
25581
|
/**
|
|
25581
|
-
* List all tags in the project
|
|
25582
|
+
* List all tags in the project for the requested entity type.
|
|
25582
25583
|
* @summary List Tags
|
|
25583
25584
|
* @param {string} orgId The unique identifier of the organization.
|
|
25584
25585
|
* @param {string} projectId The unique identifier of the project.
|
|
25585
|
-
* @param {ListTagsEntityTypeEnum} entityType The type of entity this tag applies to (`task`, `task_revision`, `task_share`, or `
|
|
25586
|
+
* @param {ListTagsEntityTypeEnum} entityType The type of entity this tag applies to (`task`, `task_revision`, `task_share`, `skill`, or `task_agent_revision`).
|
|
25586
25587
|
* @param {number | null} [pageLimit] The maximum number of items to return per page. Defaults to `100` if not specified.
|
|
25587
25588
|
* @param {string | null} [cursor] A cursor for pagination. Use the `next_cursor` value from the previous response to get the next page of results.
|
|
25588
25589
|
* @param {*} [options] Override http request option.
|
|
@@ -25605,11 +25606,11 @@ var TagsApiFp = function (configuration) {
|
|
|
25605
25606
|
});
|
|
25606
25607
|
},
|
|
25607
25608
|
/**
|
|
25608
|
-
* Remove a tag from multiple entities at once
|
|
25609
|
+
* Remove a tag from multiple supported entities at once.
|
|
25609
25610
|
* @summary Remove Tag from Entities
|
|
25610
25611
|
* @param {string} orgId The unique identifier of the organization.
|
|
25611
25612
|
* @param {string} projectId The unique identifier of the project.
|
|
25612
|
-
* @param {RemoveTagFromEntitiesEntityTypeEnum} entityType The type of entity this tag applies to (`task`, `task_revision`, `task_share`, or `
|
|
25613
|
+
* @param {RemoveTagFromEntitiesEntityTypeEnum} entityType The type of entity this tag applies to (`task`, `task_revision`, `task_share`, `skill`, or `task_agent_revision`).
|
|
25613
25614
|
* @param {string} tagId The unique identifier (UUID) of the tag to operate on.
|
|
25614
25615
|
* @param {TagEntityRemove} tagEntityRemove
|
|
25615
25616
|
* @param {*} [options] Override http request option.
|
|
@@ -25636,7 +25637,7 @@ var TagsApiFp = function (configuration) {
|
|
|
25636
25637
|
* @summary Update Tag
|
|
25637
25638
|
* @param {string} orgId The unique identifier of the organization.
|
|
25638
25639
|
* @param {string} projectId The unique identifier of the project.
|
|
25639
|
-
* @param {UpdateTagEntityTypeEnum} entityType The type of entity this tag applies to (`task`, `task_revision`, `task_share`, or `
|
|
25640
|
+
* @param {UpdateTagEntityTypeEnum} entityType The type of entity this tag applies to (`task`, `task_revision`, `task_share`, `skill`, or `task_agent_revision`).
|
|
25640
25641
|
* @param {string} tagId The unique identifier (UUID) of the tag to operate on.
|
|
25641
25642
|
* @param {TagUpdate} tagUpdate
|
|
25642
25643
|
* @param {*} [options] Override http request option.
|
|
@@ -25669,11 +25670,11 @@ var TagsApiFactory = function (configuration, basePath, axios) {
|
|
|
25669
25670
|
var localVarFp = (0, exports.TagsApiFp)(configuration);
|
|
25670
25671
|
return {
|
|
25671
25672
|
/**
|
|
25672
|
-
* Add a tag to multiple entities at once
|
|
25673
|
+
* Add a tag to multiple supported entities at once.
|
|
25673
25674
|
* @summary Add Tag to Entities
|
|
25674
25675
|
* @param {string} orgId The unique identifier of the organization.
|
|
25675
25676
|
* @param {string} projectId The unique identifier of the project.
|
|
25676
|
-
* @param {AddTagToEntitiesEntityTypeEnum} entityType The type of entity this tag applies to (`task`, `task_revision`, `task_share`, or `
|
|
25677
|
+
* @param {AddTagToEntitiesEntityTypeEnum} entityType The type of entity this tag applies to (`task`, `task_revision`, `task_share`, `skill`, or `task_agent_revision`).
|
|
25677
25678
|
* @param {string} tagId The unique identifier (UUID) of the tag to operate on.
|
|
25678
25679
|
* @param {TagEntityAdd} tagEntityAdd
|
|
25679
25680
|
* @param {*} [options] Override http request option.
|
|
@@ -25683,11 +25684,11 @@ var TagsApiFactory = function (configuration, basePath, axios) {
|
|
|
25683
25684
|
return localVarFp.addTagToEntities(orgId, projectId, entityType, tagId, tagEntityAdd, options).then(function (request) { return request(axios, basePath); });
|
|
25684
25685
|
},
|
|
25685
25686
|
/**
|
|
25686
|
-
* Create a new tag for organizing resources. Tags can be applied to: - Tasks
|
|
25687
|
+
* Create a new tag for organizing resources. Tags can be applied to supported entity types: - Tasks - Task revisions - Task shares - Skills - TaskAgent revisions Tags support hierarchical organization using prefixes.
|
|
25687
25688
|
* @summary Create Tag
|
|
25688
25689
|
* @param {string} orgId The unique identifier of the organization.
|
|
25689
25690
|
* @param {string} projectId The unique identifier of the project.
|
|
25690
|
-
* @param {CreateTagEntityTypeEnum} entityType The type of entity this tag applies to (`task`, `task_revision`, `task_share`, or `
|
|
25691
|
+
* @param {CreateTagEntityTypeEnum} entityType The type of entity this tag applies to (`task`, `task_revision`, `task_share`, `skill`, or `task_agent_revision`).
|
|
25691
25692
|
* @param {TagCreate} tagCreate
|
|
25692
25693
|
* @param {*} [options] Override http request option.
|
|
25693
25694
|
* @throws {RequiredError}
|
|
@@ -25708,11 +25709,11 @@ var TagsApiFactory = function (configuration, basePath, axios) {
|
|
|
25708
25709
|
return localVarFp.deleteTag(orgId, projectId, tagId, options).then(function (request) { return request(axios, basePath); });
|
|
25709
25710
|
},
|
|
25710
25711
|
/**
|
|
25711
|
-
* Get tag details
|
|
25712
|
+
* Get tag details for the requested entity type.
|
|
25712
25713
|
* @summary Get Tag
|
|
25713
25714
|
* @param {string} orgId The unique identifier of the organization.
|
|
25714
25715
|
* @param {string} projectId The unique identifier of the project.
|
|
25715
|
-
* @param {GetTagEntityTypeEnum} entityType The type of entity this tag applies to (`task`, `task_revision`, `task_share`, or `
|
|
25716
|
+
* @param {GetTagEntityTypeEnum} entityType The type of entity this tag applies to (`task`, `task_revision`, `task_share`, `skill`, or `task_agent_revision`).
|
|
25716
25717
|
* @param {string} tagId The unique identifier (UUID) of the tag to operate on.
|
|
25717
25718
|
* @param {*} [options] Override http request option.
|
|
25718
25719
|
* @throws {RequiredError}
|
|
@@ -25721,11 +25722,11 @@ var TagsApiFactory = function (configuration, basePath, axios) {
|
|
|
25721
25722
|
return localVarFp.getTag(orgId, projectId, entityType, tagId, options).then(function (request) { return request(axios, basePath); });
|
|
25722
25723
|
},
|
|
25723
25724
|
/**
|
|
25724
|
-
* List all tags in the project
|
|
25725
|
+
* List all tags in the project for the requested entity type.
|
|
25725
25726
|
* @summary List Tags
|
|
25726
25727
|
* @param {string} orgId The unique identifier of the organization.
|
|
25727
25728
|
* @param {string} projectId The unique identifier of the project.
|
|
25728
|
-
* @param {ListTagsEntityTypeEnum} entityType The type of entity this tag applies to (`task`, `task_revision`, `task_share`, or `
|
|
25729
|
+
* @param {ListTagsEntityTypeEnum} entityType The type of entity this tag applies to (`task`, `task_revision`, `task_share`, `skill`, or `task_agent_revision`).
|
|
25729
25730
|
* @param {number | null} [pageLimit] The maximum number of items to return per page. Defaults to `100` if not specified.
|
|
25730
25731
|
* @param {string | null} [cursor] A cursor for pagination. Use the `next_cursor` value from the previous response to get the next page of results.
|
|
25731
25732
|
* @param {*} [options] Override http request option.
|
|
@@ -25735,11 +25736,11 @@ var TagsApiFactory = function (configuration, basePath, axios) {
|
|
|
25735
25736
|
return localVarFp.listTags(orgId, projectId, entityType, pageLimit, cursor, options).then(function (request) { return request(axios, basePath); });
|
|
25736
25737
|
},
|
|
25737
25738
|
/**
|
|
25738
|
-
* Remove a tag from multiple entities at once
|
|
25739
|
+
* Remove a tag from multiple supported entities at once.
|
|
25739
25740
|
* @summary Remove Tag from Entities
|
|
25740
25741
|
* @param {string} orgId The unique identifier of the organization.
|
|
25741
25742
|
* @param {string} projectId The unique identifier of the project.
|
|
25742
|
-
* @param {RemoveTagFromEntitiesEntityTypeEnum} entityType The type of entity this tag applies to (`task`, `task_revision`, `task_share`, or `
|
|
25743
|
+
* @param {RemoveTagFromEntitiesEntityTypeEnum} entityType The type of entity this tag applies to (`task`, `task_revision`, `task_share`, `skill`, or `task_agent_revision`).
|
|
25743
25744
|
* @param {string} tagId The unique identifier (UUID) of the tag to operate on.
|
|
25744
25745
|
* @param {TagEntityRemove} tagEntityRemove
|
|
25745
25746
|
* @param {*} [options] Override http request option.
|
|
@@ -25753,7 +25754,7 @@ var TagsApiFactory = function (configuration, basePath, axios) {
|
|
|
25753
25754
|
* @summary Update Tag
|
|
25754
25755
|
* @param {string} orgId The unique identifier of the organization.
|
|
25755
25756
|
* @param {string} projectId The unique identifier of the project.
|
|
25756
|
-
* @param {UpdateTagEntityTypeEnum} entityType The type of entity this tag applies to (`task`, `task_revision`, `task_share`, or `
|
|
25757
|
+
* @param {UpdateTagEntityTypeEnum} entityType The type of entity this tag applies to (`task`, `task_revision`, `task_share`, `skill`, or `task_agent_revision`).
|
|
25757
25758
|
* @param {string} tagId The unique identifier (UUID) of the tag to operate on.
|
|
25758
25759
|
* @param {TagUpdate} tagUpdate
|
|
25759
25760
|
* @param {*} [options] Override http request option.
|
|
@@ -25777,11 +25778,11 @@ var TagsApi = /** @class */ (function (_super) {
|
|
|
25777
25778
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
25778
25779
|
}
|
|
25779
25780
|
/**
|
|
25780
|
-
* Add a tag to multiple entities at once
|
|
25781
|
+
* Add a tag to multiple supported entities at once.
|
|
25781
25782
|
* @summary Add Tag to Entities
|
|
25782
25783
|
* @param {string} orgId The unique identifier of the organization.
|
|
25783
25784
|
* @param {string} projectId The unique identifier of the project.
|
|
25784
|
-
* @param {AddTagToEntitiesEntityTypeEnum} entityType The type of entity this tag applies to (`task`, `task_revision`, `task_share`, or `
|
|
25785
|
+
* @param {AddTagToEntitiesEntityTypeEnum} entityType The type of entity this tag applies to (`task`, `task_revision`, `task_share`, `skill`, or `task_agent_revision`).
|
|
25785
25786
|
* @param {string} tagId The unique identifier (UUID) of the tag to operate on.
|
|
25786
25787
|
* @param {TagEntityAdd} tagEntityAdd
|
|
25787
25788
|
* @param {*} [options] Override http request option.
|
|
@@ -25793,11 +25794,11 @@ var TagsApi = /** @class */ (function (_super) {
|
|
|
25793
25794
|
return (0, exports.TagsApiFp)(this.configuration).addTagToEntities(orgId, projectId, entityType, tagId, tagEntityAdd, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
25794
25795
|
};
|
|
25795
25796
|
/**
|
|
25796
|
-
* Create a new tag for organizing resources. Tags can be applied to: - Tasks
|
|
25797
|
+
* Create a new tag for organizing resources. Tags can be applied to supported entity types: - Tasks - Task revisions - Task shares - Skills - TaskAgent revisions Tags support hierarchical organization using prefixes.
|
|
25797
25798
|
* @summary Create Tag
|
|
25798
25799
|
* @param {string} orgId The unique identifier of the organization.
|
|
25799
25800
|
* @param {string} projectId The unique identifier of the project.
|
|
25800
|
-
* @param {CreateTagEntityTypeEnum} entityType The type of entity this tag applies to (`task`, `task_revision`, `task_share`, or `
|
|
25801
|
+
* @param {CreateTagEntityTypeEnum} entityType The type of entity this tag applies to (`task`, `task_revision`, `task_share`, `skill`, or `task_agent_revision`).
|
|
25801
25802
|
* @param {TagCreate} tagCreate
|
|
25802
25803
|
* @param {*} [options] Override http request option.
|
|
25803
25804
|
* @throws {RequiredError}
|
|
@@ -25822,11 +25823,11 @@ var TagsApi = /** @class */ (function (_super) {
|
|
|
25822
25823
|
return (0, exports.TagsApiFp)(this.configuration).deleteTag(orgId, projectId, tagId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
25823
25824
|
};
|
|
25824
25825
|
/**
|
|
25825
|
-
* Get tag details
|
|
25826
|
+
* Get tag details for the requested entity type.
|
|
25826
25827
|
* @summary Get Tag
|
|
25827
25828
|
* @param {string} orgId The unique identifier of the organization.
|
|
25828
25829
|
* @param {string} projectId The unique identifier of the project.
|
|
25829
|
-
* @param {GetTagEntityTypeEnum} entityType The type of entity this tag applies to (`task`, `task_revision`, `task_share`, or `
|
|
25830
|
+
* @param {GetTagEntityTypeEnum} entityType The type of entity this tag applies to (`task`, `task_revision`, `task_share`, `skill`, or `task_agent_revision`).
|
|
25830
25831
|
* @param {string} tagId The unique identifier (UUID) of the tag to operate on.
|
|
25831
25832
|
* @param {*} [options] Override http request option.
|
|
25832
25833
|
* @throws {RequiredError}
|
|
@@ -25837,11 +25838,11 @@ var TagsApi = /** @class */ (function (_super) {
|
|
|
25837
25838
|
return (0, exports.TagsApiFp)(this.configuration).getTag(orgId, projectId, entityType, tagId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
25838
25839
|
};
|
|
25839
25840
|
/**
|
|
25840
|
-
* List all tags in the project
|
|
25841
|
+
* List all tags in the project for the requested entity type.
|
|
25841
25842
|
* @summary List Tags
|
|
25842
25843
|
* @param {string} orgId The unique identifier of the organization.
|
|
25843
25844
|
* @param {string} projectId The unique identifier of the project.
|
|
25844
|
-
* @param {ListTagsEntityTypeEnum} entityType The type of entity this tag applies to (`task`, `task_revision`, `task_share`, or `
|
|
25845
|
+
* @param {ListTagsEntityTypeEnum} entityType The type of entity this tag applies to (`task`, `task_revision`, `task_share`, `skill`, or `task_agent_revision`).
|
|
25845
25846
|
* @param {number | null} [pageLimit] The maximum number of items to return per page. Defaults to `100` if not specified.
|
|
25846
25847
|
* @param {string | null} [cursor] A cursor for pagination. Use the `next_cursor` value from the previous response to get the next page of results.
|
|
25847
25848
|
* @param {*} [options] Override http request option.
|
|
@@ -25853,11 +25854,11 @@ var TagsApi = /** @class */ (function (_super) {
|
|
|
25853
25854
|
return (0, exports.TagsApiFp)(this.configuration).listTags(orgId, projectId, entityType, pageLimit, cursor, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
25854
25855
|
};
|
|
25855
25856
|
/**
|
|
25856
|
-
* Remove a tag from multiple entities at once
|
|
25857
|
+
* Remove a tag from multiple supported entities at once.
|
|
25857
25858
|
* @summary Remove Tag from Entities
|
|
25858
25859
|
* @param {string} orgId The unique identifier of the organization.
|
|
25859
25860
|
* @param {string} projectId The unique identifier of the project.
|
|
25860
|
-
* @param {RemoveTagFromEntitiesEntityTypeEnum} entityType The type of entity this tag applies to (`task`, `task_revision`, `task_share`, or `
|
|
25861
|
+
* @param {RemoveTagFromEntitiesEntityTypeEnum} entityType The type of entity this tag applies to (`task`, `task_revision`, `task_share`, `skill`, or `task_agent_revision`).
|
|
25861
25862
|
* @param {string} tagId The unique identifier (UUID) of the tag to operate on.
|
|
25862
25863
|
* @param {TagEntityRemove} tagEntityRemove
|
|
25863
25864
|
* @param {*} [options] Override http request option.
|
|
@@ -25873,7 +25874,7 @@ var TagsApi = /** @class */ (function (_super) {
|
|
|
25873
25874
|
* @summary Update Tag
|
|
25874
25875
|
* @param {string} orgId The unique identifier of the organization.
|
|
25875
25876
|
* @param {string} projectId The unique identifier of the project.
|
|
25876
|
-
* @param {UpdateTagEntityTypeEnum} entityType The type of entity this tag applies to (`task`, `task_revision`, `task_share`, or `
|
|
25877
|
+
* @param {UpdateTagEntityTypeEnum} entityType The type of entity this tag applies to (`task`, `task_revision`, `task_share`, `skill`, or `task_agent_revision`).
|
|
25877
25878
|
* @param {string} tagId The unique identifier (UUID) of the tag to operate on.
|
|
25878
25879
|
* @param {TagUpdate} tagUpdate
|
|
25879
25880
|
* @param {*} [options] Override http request option.
|
|
@@ -25894,7 +25895,8 @@ exports.AddTagToEntitiesEntityTypeEnum = {
|
|
|
25894
25895
|
Task: 'task',
|
|
25895
25896
|
TaskRevision: 'task_revision',
|
|
25896
25897
|
TaskShare: 'task_share',
|
|
25897
|
-
Skill: 'skill'
|
|
25898
|
+
Skill: 'skill',
|
|
25899
|
+
TaskAgentRevision: 'task_agent_revision'
|
|
25898
25900
|
};
|
|
25899
25901
|
/**
|
|
25900
25902
|
* @export
|
|
@@ -25903,7 +25905,8 @@ exports.CreateTagEntityTypeEnum = {
|
|
|
25903
25905
|
Task: 'task',
|
|
25904
25906
|
TaskRevision: 'task_revision',
|
|
25905
25907
|
TaskShare: 'task_share',
|
|
25906
|
-
Skill: 'skill'
|
|
25908
|
+
Skill: 'skill',
|
|
25909
|
+
TaskAgentRevision: 'task_agent_revision'
|
|
25907
25910
|
};
|
|
25908
25911
|
/**
|
|
25909
25912
|
* @export
|
|
@@ -25912,7 +25915,8 @@ exports.GetTagEntityTypeEnum = {
|
|
|
25912
25915
|
Task: 'task',
|
|
25913
25916
|
TaskRevision: 'task_revision',
|
|
25914
25917
|
TaskShare: 'task_share',
|
|
25915
|
-
Skill: 'skill'
|
|
25918
|
+
Skill: 'skill',
|
|
25919
|
+
TaskAgentRevision: 'task_agent_revision'
|
|
25916
25920
|
};
|
|
25917
25921
|
/**
|
|
25918
25922
|
* @export
|
|
@@ -25921,7 +25925,8 @@ exports.ListTagsEntityTypeEnum = {
|
|
|
25921
25925
|
Task: 'task',
|
|
25922
25926
|
TaskRevision: 'task_revision',
|
|
25923
25927
|
TaskShare: 'task_share',
|
|
25924
|
-
Skill: 'skill'
|
|
25928
|
+
Skill: 'skill',
|
|
25929
|
+
TaskAgentRevision: 'task_agent_revision'
|
|
25925
25930
|
};
|
|
25926
25931
|
/**
|
|
25927
25932
|
* @export
|
|
@@ -25930,7 +25935,8 @@ exports.RemoveTagFromEntitiesEntityTypeEnum = {
|
|
|
25930
25935
|
Task: 'task',
|
|
25931
25936
|
TaskRevision: 'task_revision',
|
|
25932
25937
|
TaskShare: 'task_share',
|
|
25933
|
-
Skill: 'skill'
|
|
25938
|
+
Skill: 'skill',
|
|
25939
|
+
TaskAgentRevision: 'task_agent_revision'
|
|
25934
25940
|
};
|
|
25935
25941
|
/**
|
|
25936
25942
|
* @export
|
|
@@ -25939,7 +25945,8 @@ exports.UpdateTagEntityTypeEnum = {
|
|
|
25939
25945
|
Task: 'task',
|
|
25940
25946
|
TaskRevision: 'task_revision',
|
|
25941
25947
|
TaskShare: 'task_share',
|
|
25942
|
-
Skill: 'skill'
|
|
25948
|
+
Skill: 'skill',
|
|
25949
|
+
TaskAgentRevision: 'task_agent_revision'
|
|
25943
25950
|
};
|
|
25944
25951
|
/**
|
|
25945
25952
|
* TaskAgentsApi - axios parameter creator
|
|
@@ -25949,7 +25956,7 @@ var TaskAgentsApiAxiosParamCreator = function (configuration) {
|
|
|
25949
25956
|
var _this = this;
|
|
25950
25957
|
return {
|
|
25951
25958
|
/**
|
|
25952
|
-
* Create a new Task Agent for the project. Task Agents orchestrate multiple Tasks as task tools using LLM-powered reasoning.
|
|
25959
|
+
* Create a new Task Agent for the project. Task Agents orchestrate multiple Tasks as task tools using LLM-powered reasoning. The request creates the root Task Agent and its initial active revision. Runtime configuration such as instructions, models, and tools is stored on revisions.
|
|
25953
25960
|
* @summary Create Task Agent
|
|
25954
25961
|
* @param {string} orgId The organization ID
|
|
25955
25962
|
* @param {string} projectId The project ID
|
|
@@ -26001,7 +26008,7 @@ var TaskAgentsApiAxiosParamCreator = function (configuration) {
|
|
|
26001
26008
|
});
|
|
26002
26009
|
},
|
|
26003
26010
|
/**
|
|
26004
|
-
* Remove a Task Agent from the project. This will: - Remove agent
|
|
26011
|
+
* Remove a Task Agent from the project. This will: - Remove the agent and its revision configuration - Preserve run history for auditing This action cannot be undone.
|
|
26005
26012
|
* @summary Delete Task Agent
|
|
26006
26013
|
* @param {string} orgId The unique identifier of the organization.
|
|
26007
26014
|
* @param {string} projectId The unique identifier of the project.
|
|
@@ -26233,7 +26240,7 @@ var TaskAgentsApiAxiosParamCreator = function (configuration) {
|
|
|
26233
26240
|
});
|
|
26234
26241
|
},
|
|
26235
26242
|
/**
|
|
26236
|
-
* Retrieve detailed information about a specific Task Agent. Returns
|
|
26243
|
+
* Retrieve detailed information about a specific Task Agent. Returns root Task Agent metadata with embedded immutable revisions. Runtime configuration such as instructions, models, and tools is stored on each revision.
|
|
26237
26244
|
* @summary Get Task Agent
|
|
26238
26245
|
* @param {string} orgId The unique identifier of the organization.
|
|
26239
26246
|
* @param {string} projectId The unique identifier of the project.
|
|
@@ -26342,6 +26349,61 @@ var TaskAgentsApiAxiosParamCreator = function (configuration) {
|
|
|
26342
26349
|
});
|
|
26343
26350
|
});
|
|
26344
26351
|
},
|
|
26352
|
+
/**
|
|
26353
|
+
* Retrieve an immutable executable revision for a Task Agent. The response includes the runtime configuration and concrete pinned attachments stored on that revision.
|
|
26354
|
+
* @summary Get Task Agent Revision
|
|
26355
|
+
* @param {string} orgId The organization ID
|
|
26356
|
+
* @param {string} projectId The project ID
|
|
26357
|
+
* @param {string} taskAgentId The task agent ID
|
|
26358
|
+
* @param {string} revisionId
|
|
26359
|
+
* @param {*} [options] Override http request option.
|
|
26360
|
+
* @throws {RequiredError}
|
|
26361
|
+
*/
|
|
26362
|
+
getTaskAgentRevision: function (orgId, projectId, taskAgentId, revisionId, options) {
|
|
26363
|
+
if (options === void 0) { options = {}; }
|
|
26364
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
26365
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
26366
|
+
return __generator(this, function (_a) {
|
|
26367
|
+
switch (_a.label) {
|
|
26368
|
+
case 0:
|
|
26369
|
+
// verify required parameter 'orgId' is not null or undefined
|
|
26370
|
+
(0, common_1.assertParamExists)('getTaskAgentRevision', 'orgId', orgId);
|
|
26371
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
26372
|
+
(0, common_1.assertParamExists)('getTaskAgentRevision', 'projectId', projectId);
|
|
26373
|
+
// verify required parameter 'taskAgentId' is not null or undefined
|
|
26374
|
+
(0, common_1.assertParamExists)('getTaskAgentRevision', 'taskAgentId', taskAgentId);
|
|
26375
|
+
// verify required parameter 'revisionId' is not null or undefined
|
|
26376
|
+
(0, common_1.assertParamExists)('getTaskAgentRevision', 'revisionId', revisionId);
|
|
26377
|
+
localVarPath = "/org/{org_id}/project/{project_id}/task-agent/{task_agent_id}/revision/{revision_id}"
|
|
26378
|
+
.replace("{".concat("org_id", "}"), encodeURIComponent(String(orgId)))
|
|
26379
|
+
.replace("{".concat("project_id", "}"), encodeURIComponent(String(projectId)))
|
|
26380
|
+
.replace("{".concat("task_agent_id", "}"), encodeURIComponent(String(taskAgentId)))
|
|
26381
|
+
.replace("{".concat("revision_id", "}"), encodeURIComponent(String(revisionId)));
|
|
26382
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
26383
|
+
if (configuration) {
|
|
26384
|
+
baseOptions = configuration.baseOptions;
|
|
26385
|
+
}
|
|
26386
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
26387
|
+
localVarHeaderParameter = {};
|
|
26388
|
+
localVarQueryParameter = {};
|
|
26389
|
+
// authentication HTTPBearer required
|
|
26390
|
+
// http bearer authentication required
|
|
26391
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
26392
|
+
case 1:
|
|
26393
|
+
// authentication HTTPBearer required
|
|
26394
|
+
// http bearer authentication required
|
|
26395
|
+
_a.sent();
|
|
26396
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
26397
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26398
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
26399
|
+
return [2 /*return*/, {
|
|
26400
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
26401
|
+
options: localVarRequestOptions,
|
|
26402
|
+
}];
|
|
26403
|
+
}
|
|
26404
|
+
});
|
|
26405
|
+
});
|
|
26406
|
+
},
|
|
26345
26407
|
/**
|
|
26346
26408
|
* Get conversation events for a specific TaskAgentRun. Returns the full conversation history from the ADK session including: - User messages - Agent responses - Tool calls and results - Error messages (if any) Events are returned in chronological order.
|
|
26347
26409
|
* @summary Get Run Events
|
|
@@ -26641,6 +26703,57 @@ var TaskAgentsApiAxiosParamCreator = function (configuration) {
|
|
|
26641
26703
|
});
|
|
26642
26704
|
});
|
|
26643
26705
|
},
|
|
26706
|
+
/**
|
|
26707
|
+
* List immutable executable revisions for a Task Agent. Each revision contains the runtime configuration and pinned attachments that can be executed by new runs, long-lived sessions, or pinned triggers. The active revision is marked with `active`.
|
|
26708
|
+
* @summary List Task Agent Revisions
|
|
26709
|
+
* @param {string} orgId The organization ID
|
|
26710
|
+
* @param {string} projectId The project ID
|
|
26711
|
+
* @param {string} taskAgentId The task agent ID
|
|
26712
|
+
* @param {*} [options] Override http request option.
|
|
26713
|
+
* @throws {RequiredError}
|
|
26714
|
+
*/
|
|
26715
|
+
listTaskAgentRevisions: function (orgId, projectId, taskAgentId, options) {
|
|
26716
|
+
if (options === void 0) { options = {}; }
|
|
26717
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
26718
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
26719
|
+
return __generator(this, function (_a) {
|
|
26720
|
+
switch (_a.label) {
|
|
26721
|
+
case 0:
|
|
26722
|
+
// verify required parameter 'orgId' is not null or undefined
|
|
26723
|
+
(0, common_1.assertParamExists)('listTaskAgentRevisions', 'orgId', orgId);
|
|
26724
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
26725
|
+
(0, common_1.assertParamExists)('listTaskAgentRevisions', 'projectId', projectId);
|
|
26726
|
+
// verify required parameter 'taskAgentId' is not null or undefined
|
|
26727
|
+
(0, common_1.assertParamExists)('listTaskAgentRevisions', 'taskAgentId', taskAgentId);
|
|
26728
|
+
localVarPath = "/org/{org_id}/project/{project_id}/task-agent/{task_agent_id}/revision"
|
|
26729
|
+
.replace("{".concat("org_id", "}"), encodeURIComponent(String(orgId)))
|
|
26730
|
+
.replace("{".concat("project_id", "}"), encodeURIComponent(String(projectId)))
|
|
26731
|
+
.replace("{".concat("task_agent_id", "}"), encodeURIComponent(String(taskAgentId)));
|
|
26732
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
26733
|
+
if (configuration) {
|
|
26734
|
+
baseOptions = configuration.baseOptions;
|
|
26735
|
+
}
|
|
26736
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
26737
|
+
localVarHeaderParameter = {};
|
|
26738
|
+
localVarQueryParameter = {};
|
|
26739
|
+
// authentication HTTPBearer required
|
|
26740
|
+
// http bearer authentication required
|
|
26741
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
26742
|
+
case 1:
|
|
26743
|
+
// authentication HTTPBearer required
|
|
26744
|
+
// http bearer authentication required
|
|
26745
|
+
_a.sent();
|
|
26746
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
26747
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26748
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
26749
|
+
return [2 /*return*/, {
|
|
26750
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
26751
|
+
options: localVarRequestOptions,
|
|
26752
|
+
}];
|
|
26753
|
+
}
|
|
26754
|
+
});
|
|
26755
|
+
});
|
|
26756
|
+
},
|
|
26644
26757
|
/**
|
|
26645
26758
|
* List execution runs for a Task Agent. Returns run history with: - Input message - Token usage - Status and duration - Task tools invoked - MCP tools invoked - Phase timings for LLM and tool execution
|
|
26646
26759
|
* @summary List Task Agent Runs
|
|
@@ -26655,12 +26768,13 @@ var TaskAgentsApiAxiosParamCreator = function (configuration) {
|
|
|
26655
26768
|
* @param {string | null} [createdAfter] Filter runs created at/after this timestamp.
|
|
26656
26769
|
* @param {string | null} [createdBefore] Filter runs created at/before this timestamp.
|
|
26657
26770
|
* @param {number | null} [minDurationMs] Filter runs with duration greater than or equal to this value.
|
|
26771
|
+
* @param {string | null} [taskAgentRevisionId] Filter by TaskAgent revision ID.
|
|
26658
26772
|
* @param {number} [skip]
|
|
26659
26773
|
* @param {number} [limit]
|
|
26660
26774
|
* @param {*} [options] Override http request option.
|
|
26661
26775
|
* @throws {RequiredError}
|
|
26662
26776
|
*/
|
|
26663
|
-
listTaskAgentRuns: function (orgId, projectId, taskAgentId, sessionId, isError, hadTaskToolFail, hadMcpToolFail, status, createdAfter, createdBefore, minDurationMs, skip, limit, options) {
|
|
26777
|
+
listTaskAgentRuns: function (orgId, projectId, taskAgentId, sessionId, isError, hadTaskToolFail, hadMcpToolFail, status, createdAfter, createdBefore, minDurationMs, taskAgentRevisionId, skip, limit, options) {
|
|
26664
26778
|
if (options === void 0) { options = {}; }
|
|
26665
26779
|
return __awaiter(_this, void 0, void 0, function () {
|
|
26666
26780
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -26719,6 +26833,9 @@ var TaskAgentsApiAxiosParamCreator = function (configuration) {
|
|
|
26719
26833
|
if (minDurationMs !== undefined) {
|
|
26720
26834
|
localVarQueryParameter['min_duration_ms'] = minDurationMs;
|
|
26721
26835
|
}
|
|
26836
|
+
if (taskAgentRevisionId !== undefined) {
|
|
26837
|
+
localVarQueryParameter['task_agent_revision_id'] = taskAgentRevisionId;
|
|
26838
|
+
}
|
|
26722
26839
|
if (skip !== undefined) {
|
|
26723
26840
|
localVarQueryParameter['skip'] = skip;
|
|
26724
26841
|
}
|
|
@@ -26788,7 +26905,7 @@ var TaskAgentsApiAxiosParamCreator = function (configuration) {
|
|
|
26788
26905
|
});
|
|
26789
26906
|
},
|
|
26790
26907
|
/**
|
|
26791
|
-
* List all Task Agents configured for the project. Returns a paginated list of Task Agents with their
|
|
26908
|
+
* List all Task Agents configured for the project. Returns a paginated list of Task Agents with their root metadata and embedded revision history. Runtime configuration such as instructions, models, and tools is stored on each revision.
|
|
26792
26909
|
* @summary List Task Agents
|
|
26793
26910
|
* @param {string} orgId The unique identifier of the organization.
|
|
26794
26911
|
* @param {string} projectId The unique identifier of the project.
|
|
@@ -26843,15 +26960,16 @@ var TaskAgentsApiAxiosParamCreator = function (configuration) {
|
|
|
26843
26960
|
});
|
|
26844
26961
|
},
|
|
26845
26962
|
/**
|
|
26846
|
-
* Execute the Task Agent with a user message. The agent will: 1. Process the message using the configured LLM 2. Reason about which task tools to invoke 3. Execute relevant Tasks as needed 4. Return a streaming response Responses are streamed using Server-Sent Events (SSE). The first SSE event emitted after successful stream setup is: - `event_type: \"session_id\"` with the resolved `session_id` in `metadata` Subsequent events include tool calls/results, text responses, and the terminal `done` or `error` event.
|
|
26963
|
+
* Execute the Task Agent with a user message. The agent will: 1. Process the message using the configured LLM 2. Reason about which task tools to invoke 3. Execute relevant Tasks as needed 4. Return a streaming response Responses are streamed using Server-Sent Events (SSE). The first SSE event emitted after successful stream setup is: - `event_type: \"session_id\"` with the resolved `session_id` in `metadata` Use `revision_id` to execute a specific TaskAgent revision. New sessions can run any revision belonging to the TaskAgent. Existing sessions remain pinned to their original revision; passing a conflicting `revision_id` is rejected. Subsequent events include tool calls/results, text responses, and the terminal `done` or `error` event.
|
|
26847
26964
|
* @summary Run Task Agent
|
|
26848
26965
|
* @param {string} orgId The unique identifier of the organization.
|
|
26849
26966
|
* @param {string} projectId The unique identifier of the project.
|
|
26850
26967
|
* @param {string} taskAgentId The specific Task Agent to reference.
|
|
26968
|
+
* @param {string | null} [revisionId] Optional TaskAgent revision ID to use for execution. If omitted, new sessions use the active revision and continuations use the session\'s pinned revision.
|
|
26851
26969
|
* @param {*} [options] Override http request option.
|
|
26852
26970
|
* @throws {RequiredError}
|
|
26853
26971
|
*/
|
|
26854
|
-
runTaskAgent: function (orgId, projectId, taskAgentId, options) {
|
|
26972
|
+
runTaskAgent: function (orgId, projectId, taskAgentId, revisionId, options) {
|
|
26855
26973
|
if (options === void 0) { options = {}; }
|
|
26856
26974
|
return __awaiter(_this, void 0, void 0, function () {
|
|
26857
26975
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -26882,6 +27000,9 @@ var TaskAgentsApiAxiosParamCreator = function (configuration) {
|
|
|
26882
27000
|
// authentication HTTPBearer required
|
|
26883
27001
|
// http bearer authentication required
|
|
26884
27002
|
_a.sent();
|
|
27003
|
+
if (revisionId !== undefined) {
|
|
27004
|
+
localVarQueryParameter['revision_id'] = revisionId;
|
|
27005
|
+
}
|
|
26885
27006
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
26886
27007
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26887
27008
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -27120,7 +27241,7 @@ var TaskAgentsApiAxiosParamCreator = function (configuration) {
|
|
|
27120
27241
|
});
|
|
27121
27242
|
},
|
|
27122
27243
|
/**
|
|
27123
|
-
* Update Task Agent
|
|
27244
|
+
* Update Task Agent metadata, create a new revision, or activate an existing revision. Modifiable fields: - Root metadata: name and run visibility - Revision configuration: description, instruction, LLM models, execution mode, memory settings, task tools, MCP servers, integrations, and skills - Activation: `active_revision_id` Updating revision configuration creates a new inactive revision. Activate it with a separate request that only includes `active_revision_id`. To update task tools, pass a `task_tools` array. This performs a full replacement: - Omit the field to leave task tools unchanged - Pass an empty array to remove all task tools - Pass a new array to replace all task tools (array order = execution order)
|
|
27124
27245
|
* @summary Update Task Agent
|
|
27125
27246
|
* @param {string} orgId The organization ID
|
|
27126
27247
|
* @param {string} projectId The project ID
|
|
@@ -27186,7 +27307,7 @@ var TaskAgentsApiFp = function (configuration) {
|
|
|
27186
27307
|
var localVarAxiosParamCreator = (0, exports.TaskAgentsApiAxiosParamCreator)(configuration);
|
|
27187
27308
|
return {
|
|
27188
27309
|
/**
|
|
27189
|
-
* Create a new Task Agent for the project. Task Agents orchestrate multiple Tasks as task tools using LLM-powered reasoning.
|
|
27310
|
+
* Create a new Task Agent for the project. Task Agents orchestrate multiple Tasks as task tools using LLM-powered reasoning. The request creates the root Task Agent and its initial active revision. Runtime configuration such as instructions, models, and tools is stored on revisions.
|
|
27190
27311
|
* @summary Create Task Agent
|
|
27191
27312
|
* @param {string} orgId The organization ID
|
|
27192
27313
|
* @param {string} projectId The project ID
|
|
@@ -27211,7 +27332,7 @@ var TaskAgentsApiFp = function (configuration) {
|
|
|
27211
27332
|
});
|
|
27212
27333
|
},
|
|
27213
27334
|
/**
|
|
27214
|
-
* Remove a Task Agent from the project. This will: - Remove agent
|
|
27335
|
+
* Remove a Task Agent from the project. This will: - Remove the agent and its revision configuration - Preserve run history for auditing This action cannot be undone.
|
|
27215
27336
|
* @summary Delete Task Agent
|
|
27216
27337
|
* @param {string} orgId The unique identifier of the organization.
|
|
27217
27338
|
* @param {string} projectId The unique identifier of the project.
|
|
@@ -27317,7 +27438,7 @@ var TaskAgentsApiFp = function (configuration) {
|
|
|
27317
27438
|
});
|
|
27318
27439
|
},
|
|
27319
27440
|
/**
|
|
27320
|
-
* Retrieve detailed information about a specific Task Agent. Returns
|
|
27441
|
+
* Retrieve detailed information about a specific Task Agent. Returns root Task Agent metadata with embedded immutable revisions. Runtime configuration such as instructions, models, and tools is stored on each revision.
|
|
27321
27442
|
* @summary Get Task Agent
|
|
27322
27443
|
* @param {string} orgId The unique identifier of the organization.
|
|
27323
27444
|
* @param {string} projectId The unique identifier of the project.
|
|
@@ -27368,6 +27489,32 @@ var TaskAgentsApiFp = function (configuration) {
|
|
|
27368
27489
|
});
|
|
27369
27490
|
});
|
|
27370
27491
|
},
|
|
27492
|
+
/**
|
|
27493
|
+
* Retrieve an immutable executable revision for a Task Agent. The response includes the runtime configuration and concrete pinned attachments stored on that revision.
|
|
27494
|
+
* @summary Get Task Agent Revision
|
|
27495
|
+
* @param {string} orgId The organization ID
|
|
27496
|
+
* @param {string} projectId The project ID
|
|
27497
|
+
* @param {string} taskAgentId The task agent ID
|
|
27498
|
+
* @param {string} revisionId
|
|
27499
|
+
* @param {*} [options] Override http request option.
|
|
27500
|
+
* @throws {RequiredError}
|
|
27501
|
+
*/
|
|
27502
|
+
getTaskAgentRevision: function (orgId, projectId, taskAgentId, revisionId, options) {
|
|
27503
|
+
var _a, _b, _c;
|
|
27504
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
27505
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
27506
|
+
return __generator(this, function (_d) {
|
|
27507
|
+
switch (_d.label) {
|
|
27508
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getTaskAgentRevision(orgId, projectId, taskAgentId, revisionId, options)];
|
|
27509
|
+
case 1:
|
|
27510
|
+
localVarAxiosArgs = _d.sent();
|
|
27511
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
27512
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TaskAgentsApi.getTaskAgentRevision']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
27513
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
27514
|
+
}
|
|
27515
|
+
});
|
|
27516
|
+
});
|
|
27517
|
+
},
|
|
27371
27518
|
/**
|
|
27372
27519
|
* Get conversation events for a specific TaskAgentRun. Returns the full conversation history from the ADK session including: - User messages - Agent responses - Tool calls and results - Error messages (if any) Events are returned in chronological order.
|
|
27373
27520
|
* @summary Get Run Events
|
|
@@ -27504,6 +27651,31 @@ var TaskAgentsApiFp = function (configuration) {
|
|
|
27504
27651
|
});
|
|
27505
27652
|
});
|
|
27506
27653
|
},
|
|
27654
|
+
/**
|
|
27655
|
+
* List immutable executable revisions for a Task Agent. Each revision contains the runtime configuration and pinned attachments that can be executed by new runs, long-lived sessions, or pinned triggers. The active revision is marked with `active`.
|
|
27656
|
+
* @summary List Task Agent Revisions
|
|
27657
|
+
* @param {string} orgId The organization ID
|
|
27658
|
+
* @param {string} projectId The project ID
|
|
27659
|
+
* @param {string} taskAgentId The task agent ID
|
|
27660
|
+
* @param {*} [options] Override http request option.
|
|
27661
|
+
* @throws {RequiredError}
|
|
27662
|
+
*/
|
|
27663
|
+
listTaskAgentRevisions: function (orgId, projectId, taskAgentId, options) {
|
|
27664
|
+
var _a, _b, _c;
|
|
27665
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
27666
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
27667
|
+
return __generator(this, function (_d) {
|
|
27668
|
+
switch (_d.label) {
|
|
27669
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listTaskAgentRevisions(orgId, projectId, taskAgentId, options)];
|
|
27670
|
+
case 1:
|
|
27671
|
+
localVarAxiosArgs = _d.sent();
|
|
27672
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
27673
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TaskAgentsApi.listTaskAgentRevisions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
27674
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
27675
|
+
}
|
|
27676
|
+
});
|
|
27677
|
+
});
|
|
27678
|
+
},
|
|
27507
27679
|
/**
|
|
27508
27680
|
* List execution runs for a Task Agent. Returns run history with: - Input message - Token usage - Status and duration - Task tools invoked - MCP tools invoked - Phase timings for LLM and tool execution
|
|
27509
27681
|
* @summary List Task Agent Runs
|
|
@@ -27518,18 +27690,19 @@ var TaskAgentsApiFp = function (configuration) {
|
|
|
27518
27690
|
* @param {string | null} [createdAfter] Filter runs created at/after this timestamp.
|
|
27519
27691
|
* @param {string | null} [createdBefore] Filter runs created at/before this timestamp.
|
|
27520
27692
|
* @param {number | null} [minDurationMs] Filter runs with duration greater than or equal to this value.
|
|
27693
|
+
* @param {string | null} [taskAgentRevisionId] Filter by TaskAgent revision ID.
|
|
27521
27694
|
* @param {number} [skip]
|
|
27522
27695
|
* @param {number} [limit]
|
|
27523
27696
|
* @param {*} [options] Override http request option.
|
|
27524
27697
|
* @throws {RequiredError}
|
|
27525
27698
|
*/
|
|
27526
|
-
listTaskAgentRuns: function (orgId, projectId, taskAgentId, sessionId, isError, hadTaskToolFail, hadMcpToolFail, status, createdAfter, createdBefore, minDurationMs, skip, limit, options) {
|
|
27699
|
+
listTaskAgentRuns: function (orgId, projectId, taskAgentId, sessionId, isError, hadTaskToolFail, hadMcpToolFail, status, createdAfter, createdBefore, minDurationMs, taskAgentRevisionId, skip, limit, options) {
|
|
27527
27700
|
var _a, _b, _c;
|
|
27528
27701
|
return __awaiter(this, void 0, void 0, function () {
|
|
27529
27702
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
27530
27703
|
return __generator(this, function (_d) {
|
|
27531
27704
|
switch (_d.label) {
|
|
27532
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listTaskAgentRuns(orgId, projectId, taskAgentId, sessionId, isError, hadTaskToolFail, hadMcpToolFail, status, createdAfter, createdBefore, minDurationMs, skip, limit, options)];
|
|
27705
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listTaskAgentRuns(orgId, projectId, taskAgentId, sessionId, isError, hadTaskToolFail, hadMcpToolFail, status, createdAfter, createdBefore, minDurationMs, taskAgentRevisionId, skip, limit, options)];
|
|
27533
27706
|
case 1:
|
|
27534
27707
|
localVarAxiosArgs = _d.sent();
|
|
27535
27708
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
@@ -27565,7 +27738,7 @@ var TaskAgentsApiFp = function (configuration) {
|
|
|
27565
27738
|
});
|
|
27566
27739
|
},
|
|
27567
27740
|
/**
|
|
27568
|
-
* List all Task Agents configured for the project. Returns a paginated list of Task Agents with their
|
|
27741
|
+
* List all Task Agents configured for the project. Returns a paginated list of Task Agents with their root metadata and embedded revision history. Runtime configuration such as instructions, models, and tools is stored on each revision.
|
|
27569
27742
|
* @summary List Task Agents
|
|
27570
27743
|
* @param {string} orgId The unique identifier of the organization.
|
|
27571
27744
|
* @param {string} projectId The unique identifier of the project.
|
|
@@ -27591,21 +27764,22 @@ var TaskAgentsApiFp = function (configuration) {
|
|
|
27591
27764
|
});
|
|
27592
27765
|
},
|
|
27593
27766
|
/**
|
|
27594
|
-
* Execute the Task Agent with a user message. The agent will: 1. Process the message using the configured LLM 2. Reason about which task tools to invoke 3. Execute relevant Tasks as needed 4. Return a streaming response Responses are streamed using Server-Sent Events (SSE). The first SSE event emitted after successful stream setup is: - `event_type: \"session_id\"` with the resolved `session_id` in `metadata` Subsequent events include tool calls/results, text responses, and the terminal `done` or `error` event.
|
|
27767
|
+
* Execute the Task Agent with a user message. The agent will: 1. Process the message using the configured LLM 2. Reason about which task tools to invoke 3. Execute relevant Tasks as needed 4. Return a streaming response Responses are streamed using Server-Sent Events (SSE). The first SSE event emitted after successful stream setup is: - `event_type: \"session_id\"` with the resolved `session_id` in `metadata` Use `revision_id` to execute a specific TaskAgent revision. New sessions can run any revision belonging to the TaskAgent. Existing sessions remain pinned to their original revision; passing a conflicting `revision_id` is rejected. Subsequent events include tool calls/results, text responses, and the terminal `done` or `error` event.
|
|
27595
27768
|
* @summary Run Task Agent
|
|
27596
27769
|
* @param {string} orgId The unique identifier of the organization.
|
|
27597
27770
|
* @param {string} projectId The unique identifier of the project.
|
|
27598
27771
|
* @param {string} taskAgentId The specific Task Agent to reference.
|
|
27772
|
+
* @param {string | null} [revisionId] Optional TaskAgent revision ID to use for execution. If omitted, new sessions use the active revision and continuations use the session\'s pinned revision.
|
|
27599
27773
|
* @param {*} [options] Override http request option.
|
|
27600
27774
|
* @throws {RequiredError}
|
|
27601
27775
|
*/
|
|
27602
|
-
runTaskAgent: function (orgId, projectId, taskAgentId, options) {
|
|
27776
|
+
runTaskAgent: function (orgId, projectId, taskAgentId, revisionId, options) {
|
|
27603
27777
|
var _a, _b, _c;
|
|
27604
27778
|
return __awaiter(this, void 0, void 0, function () {
|
|
27605
27779
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
27606
27780
|
return __generator(this, function (_d) {
|
|
27607
27781
|
switch (_d.label) {
|
|
27608
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.runTaskAgent(orgId, projectId, taskAgentId, options)];
|
|
27782
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.runTaskAgent(orgId, projectId, taskAgentId, revisionId, options)];
|
|
27609
27783
|
case 1:
|
|
27610
27784
|
localVarAxiosArgs = _d.sent();
|
|
27611
27785
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
@@ -27721,7 +27895,7 @@ var TaskAgentsApiFp = function (configuration) {
|
|
|
27721
27895
|
});
|
|
27722
27896
|
},
|
|
27723
27897
|
/**
|
|
27724
|
-
* Update Task Agent
|
|
27898
|
+
* Update Task Agent metadata, create a new revision, or activate an existing revision. Modifiable fields: - Root metadata: name and run visibility - Revision configuration: description, instruction, LLM models, execution mode, memory settings, task tools, MCP servers, integrations, and skills - Activation: `active_revision_id` Updating revision configuration creates a new inactive revision. Activate it with a separate request that only includes `active_revision_id`. To update task tools, pass a `task_tools` array. This performs a full replacement: - Omit the field to leave task tools unchanged - Pass an empty array to remove all task tools - Pass a new array to replace all task tools (array order = execution order)
|
|
27725
27899
|
* @summary Update Task Agent
|
|
27726
27900
|
* @param {string} orgId The organization ID
|
|
27727
27901
|
* @param {string} projectId The project ID
|
|
@@ -27757,7 +27931,7 @@ var TaskAgentsApiFactory = function (configuration, basePath, axios) {
|
|
|
27757
27931
|
var localVarFp = (0, exports.TaskAgentsApiFp)(configuration);
|
|
27758
27932
|
return {
|
|
27759
27933
|
/**
|
|
27760
|
-
* Create a new Task Agent for the project. Task Agents orchestrate multiple Tasks as task tools using LLM-powered reasoning.
|
|
27934
|
+
* Create a new Task Agent for the project. Task Agents orchestrate multiple Tasks as task tools using LLM-powered reasoning. The request creates the root Task Agent and its initial active revision. Runtime configuration such as instructions, models, and tools is stored on revisions.
|
|
27761
27935
|
* @summary Create Task Agent
|
|
27762
27936
|
* @param {string} orgId The organization ID
|
|
27763
27937
|
* @param {string} projectId The project ID
|
|
@@ -27769,7 +27943,7 @@ var TaskAgentsApiFactory = function (configuration, basePath, axios) {
|
|
|
27769
27943
|
return localVarFp.createTaskAgent(orgId, projectId, taskAgentCreate, options).then(function (request) { return request(axios, basePath); });
|
|
27770
27944
|
},
|
|
27771
27945
|
/**
|
|
27772
|
-
* Remove a Task Agent from the project. This will: - Remove agent
|
|
27946
|
+
* Remove a Task Agent from the project. This will: - Remove the agent and its revision configuration - Preserve run history for auditing This action cannot be undone.
|
|
27773
27947
|
* @summary Delete Task Agent
|
|
27774
27948
|
* @param {string} orgId The unique identifier of the organization.
|
|
27775
27949
|
* @param {string} projectId The unique identifier of the project.
|
|
@@ -27823,7 +27997,7 @@ var TaskAgentsApiFactory = function (configuration, basePath, axios) {
|
|
|
27823
27997
|
return localVarFp.getProjectTaskAgentUsageReport(orgId, projectId, taskAgentId, aggregation, status, options).then(function (request) { return request(axios, basePath); });
|
|
27824
27998
|
},
|
|
27825
27999
|
/**
|
|
27826
|
-
* Retrieve detailed information about a specific Task Agent. Returns
|
|
28000
|
+
* Retrieve detailed information about a specific Task Agent. Returns root Task Agent metadata with embedded immutable revisions. Runtime configuration such as instructions, models, and tools is stored on each revision.
|
|
27827
28001
|
* @summary Get Task Agent
|
|
27828
28002
|
* @param {string} orgId The unique identifier of the organization.
|
|
27829
28003
|
* @param {string} projectId The unique identifier of the project.
|
|
@@ -27848,6 +28022,19 @@ var TaskAgentsApiFactory = function (configuration, basePath, axios) {
|
|
|
27848
28022
|
getTaskAgentCreditReport: function (orgId, projectId, taskAgentId, startDate, endDate, options) {
|
|
27849
28023
|
return localVarFp.getTaskAgentCreditReport(orgId, projectId, taskAgentId, startDate, endDate, options).then(function (request) { return request(axios, basePath); });
|
|
27850
28024
|
},
|
|
28025
|
+
/**
|
|
28026
|
+
* Retrieve an immutable executable revision for a Task Agent. The response includes the runtime configuration and concrete pinned attachments stored on that revision.
|
|
28027
|
+
* @summary Get Task Agent Revision
|
|
28028
|
+
* @param {string} orgId The organization ID
|
|
28029
|
+
* @param {string} projectId The project ID
|
|
28030
|
+
* @param {string} taskAgentId The task agent ID
|
|
28031
|
+
* @param {string} revisionId
|
|
28032
|
+
* @param {*} [options] Override http request option.
|
|
28033
|
+
* @throws {RequiredError}
|
|
28034
|
+
*/
|
|
28035
|
+
getTaskAgentRevision: function (orgId, projectId, taskAgentId, revisionId, options) {
|
|
28036
|
+
return localVarFp.getTaskAgentRevision(orgId, projectId, taskAgentId, revisionId, options).then(function (request) { return request(axios, basePath); });
|
|
28037
|
+
},
|
|
27851
28038
|
/**
|
|
27852
28039
|
* Get conversation events for a specific TaskAgentRun. Returns the full conversation history from the ADK session including: - User messages - Agent responses - Tool calls and results - Error messages (if any) Events are returned in chronological order.
|
|
27853
28040
|
* @summary Get Run Events
|
|
@@ -27919,6 +28106,18 @@ var TaskAgentsApiFactory = function (configuration, basePath, axios) {
|
|
|
27919
28106
|
getTaskAgentUsageReport: function (orgId, projectId, taskAgentId, aggregation, status, errorsOnly, options) {
|
|
27920
28107
|
return localVarFp.getTaskAgentUsageReport(orgId, projectId, taskAgentId, aggregation, status, errorsOnly, options).then(function (request) { return request(axios, basePath); });
|
|
27921
28108
|
},
|
|
28109
|
+
/**
|
|
28110
|
+
* List immutable executable revisions for a Task Agent. Each revision contains the runtime configuration and pinned attachments that can be executed by new runs, long-lived sessions, or pinned triggers. The active revision is marked with `active`.
|
|
28111
|
+
* @summary List Task Agent Revisions
|
|
28112
|
+
* @param {string} orgId The organization ID
|
|
28113
|
+
* @param {string} projectId The project ID
|
|
28114
|
+
* @param {string} taskAgentId The task agent ID
|
|
28115
|
+
* @param {*} [options] Override http request option.
|
|
28116
|
+
* @throws {RequiredError}
|
|
28117
|
+
*/
|
|
28118
|
+
listTaskAgentRevisions: function (orgId, projectId, taskAgentId, options) {
|
|
28119
|
+
return localVarFp.listTaskAgentRevisions(orgId, projectId, taskAgentId, options).then(function (request) { return request(axios, basePath); });
|
|
28120
|
+
},
|
|
27922
28121
|
/**
|
|
27923
28122
|
* List execution runs for a Task Agent. Returns run history with: - Input message - Token usage - Status and duration - Task tools invoked - MCP tools invoked - Phase timings for LLM and tool execution
|
|
27924
28123
|
* @summary List Task Agent Runs
|
|
@@ -27933,13 +28132,14 @@ var TaskAgentsApiFactory = function (configuration, basePath, axios) {
|
|
|
27933
28132
|
* @param {string | null} [createdAfter] Filter runs created at/after this timestamp.
|
|
27934
28133
|
* @param {string | null} [createdBefore] Filter runs created at/before this timestamp.
|
|
27935
28134
|
* @param {number | null} [minDurationMs] Filter runs with duration greater than or equal to this value.
|
|
28135
|
+
* @param {string | null} [taskAgentRevisionId] Filter by TaskAgent revision ID.
|
|
27936
28136
|
* @param {number} [skip]
|
|
27937
28137
|
* @param {number} [limit]
|
|
27938
28138
|
* @param {*} [options] Override http request option.
|
|
27939
28139
|
* @throws {RequiredError}
|
|
27940
28140
|
*/
|
|
27941
|
-
listTaskAgentRuns: function (orgId, projectId, taskAgentId, sessionId, isError, hadTaskToolFail, hadMcpToolFail, status, createdAfter, createdBefore, minDurationMs, skip, limit, options) {
|
|
27942
|
-
return localVarFp.listTaskAgentRuns(orgId, projectId, taskAgentId, sessionId, isError, hadTaskToolFail, hadMcpToolFail, status, createdAfter, createdBefore, minDurationMs, skip, limit, options).then(function (request) { return request(axios, basePath); });
|
|
28141
|
+
listTaskAgentRuns: function (orgId, projectId, taskAgentId, sessionId, isError, hadTaskToolFail, hadMcpToolFail, status, createdAfter, createdBefore, minDurationMs, taskAgentRevisionId, skip, limit, options) {
|
|
28142
|
+
return localVarFp.listTaskAgentRuns(orgId, projectId, taskAgentId, sessionId, isError, hadTaskToolFail, hadMcpToolFail, status, createdAfter, createdBefore, minDurationMs, taskAgentRevisionId, skip, limit, options).then(function (request) { return request(axios, basePath); });
|
|
27943
28143
|
},
|
|
27944
28144
|
/**
|
|
27945
28145
|
* List conversation sessions for a Task Agent. Sessions group related runs together for multi-turn conversations.
|
|
@@ -27954,7 +28154,7 @@ var TaskAgentsApiFactory = function (configuration, basePath, axios) {
|
|
|
27954
28154
|
return localVarFp.listTaskAgentSessions(orgId, projectId, taskAgentId, options).then(function (request) { return request(axios, basePath); });
|
|
27955
28155
|
},
|
|
27956
28156
|
/**
|
|
27957
|
-
* List all Task Agents configured for the project. Returns a paginated list of Task Agents with their
|
|
28157
|
+
* List all Task Agents configured for the project. Returns a paginated list of Task Agents with their root metadata and embedded revision history. Runtime configuration such as instructions, models, and tools is stored on each revision.
|
|
27958
28158
|
* @summary List Task Agents
|
|
27959
28159
|
* @param {string} orgId The unique identifier of the organization.
|
|
27960
28160
|
* @param {string} projectId The unique identifier of the project.
|
|
@@ -27967,16 +28167,17 @@ var TaskAgentsApiFactory = function (configuration, basePath, axios) {
|
|
|
27967
28167
|
return localVarFp.listTaskAgents(orgId, projectId, cursor, pageLimit, options).then(function (request) { return request(axios, basePath); });
|
|
27968
28168
|
},
|
|
27969
28169
|
/**
|
|
27970
|
-
* Execute the Task Agent with a user message. The agent will: 1. Process the message using the configured LLM 2. Reason about which task tools to invoke 3. Execute relevant Tasks as needed 4. Return a streaming response Responses are streamed using Server-Sent Events (SSE). The first SSE event emitted after successful stream setup is: - `event_type: \"session_id\"` with the resolved `session_id` in `metadata` Subsequent events include tool calls/results, text responses, and the terminal `done` or `error` event.
|
|
28170
|
+
* Execute the Task Agent with a user message. The agent will: 1. Process the message using the configured LLM 2. Reason about which task tools to invoke 3. Execute relevant Tasks as needed 4. Return a streaming response Responses are streamed using Server-Sent Events (SSE). The first SSE event emitted after successful stream setup is: - `event_type: \"session_id\"` with the resolved `session_id` in `metadata` Use `revision_id` to execute a specific TaskAgent revision. New sessions can run any revision belonging to the TaskAgent. Existing sessions remain pinned to their original revision; passing a conflicting `revision_id` is rejected. Subsequent events include tool calls/results, text responses, and the terminal `done` or `error` event.
|
|
27971
28171
|
* @summary Run Task Agent
|
|
27972
28172
|
* @param {string} orgId The unique identifier of the organization.
|
|
27973
28173
|
* @param {string} projectId The unique identifier of the project.
|
|
27974
28174
|
* @param {string} taskAgentId The specific Task Agent to reference.
|
|
28175
|
+
* @param {string | null} [revisionId] Optional TaskAgent revision ID to use for execution. If omitted, new sessions use the active revision and continuations use the session\'s pinned revision.
|
|
27975
28176
|
* @param {*} [options] Override http request option.
|
|
27976
28177
|
* @throws {RequiredError}
|
|
27977
28178
|
*/
|
|
27978
|
-
runTaskAgent: function (orgId, projectId, taskAgentId, options) {
|
|
27979
|
-
return localVarFp.runTaskAgent(orgId, projectId, taskAgentId, options).then(function (request) { return request(axios, basePath); });
|
|
28179
|
+
runTaskAgent: function (orgId, projectId, taskAgentId, revisionId, options) {
|
|
28180
|
+
return localVarFp.runTaskAgent(orgId, projectId, taskAgentId, revisionId, options).then(function (request) { return request(axios, basePath); });
|
|
27980
28181
|
},
|
|
27981
28182
|
/**
|
|
27982
28183
|
* Retrieve a specific member that has been granted direct access to the task_agent.
|
|
@@ -28032,7 +28233,7 @@ var TaskAgentsApiFactory = function (configuration, basePath, axios) {
|
|
|
28032
28233
|
return localVarFp.taskAgentIamOrgOrgIdProjectProjectIdTaskAgentTaskAgentIdIamUpdateMemberRoles(taskAgentId, member, orgId, projectId, taskAgentIAMMemberRoleUpdate, options).then(function (request) { return request(axios, basePath); });
|
|
28033
28234
|
},
|
|
28034
28235
|
/**
|
|
28035
|
-
* Update Task Agent
|
|
28236
|
+
* Update Task Agent metadata, create a new revision, or activate an existing revision. Modifiable fields: - Root metadata: name and run visibility - Revision configuration: description, instruction, LLM models, execution mode, memory settings, task tools, MCP servers, integrations, and skills - Activation: `active_revision_id` Updating revision configuration creates a new inactive revision. Activate it with a separate request that only includes `active_revision_id`. To update task tools, pass a `task_tools` array. This performs a full replacement: - Omit the field to leave task tools unchanged - Pass an empty array to remove all task tools - Pass a new array to replace all task tools (array order = execution order)
|
|
28036
28237
|
* @summary Update Task Agent
|
|
28037
28238
|
* @param {string} orgId The organization ID
|
|
28038
28239
|
* @param {string} projectId The project ID
|
|
@@ -28059,7 +28260,7 @@ var TaskAgentsApi = /** @class */ (function (_super) {
|
|
|
28059
28260
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
28060
28261
|
}
|
|
28061
28262
|
/**
|
|
28062
|
-
* Create a new Task Agent for the project. Task Agents orchestrate multiple Tasks as task tools using LLM-powered reasoning.
|
|
28263
|
+
* Create a new Task Agent for the project. Task Agents orchestrate multiple Tasks as task tools using LLM-powered reasoning. The request creates the root Task Agent and its initial active revision. Runtime configuration such as instructions, models, and tools is stored on revisions.
|
|
28063
28264
|
* @summary Create Task Agent
|
|
28064
28265
|
* @param {string} orgId The organization ID
|
|
28065
28266
|
* @param {string} projectId The project ID
|
|
@@ -28073,7 +28274,7 @@ var TaskAgentsApi = /** @class */ (function (_super) {
|
|
|
28073
28274
|
return (0, exports.TaskAgentsApiFp)(this.configuration).createTaskAgent(orgId, projectId, taskAgentCreate, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
28074
28275
|
};
|
|
28075
28276
|
/**
|
|
28076
|
-
* Remove a Task Agent from the project. This will: - Remove agent
|
|
28277
|
+
* Remove a Task Agent from the project. This will: - Remove the agent and its revision configuration - Preserve run history for auditing This action cannot be undone.
|
|
28077
28278
|
* @summary Delete Task Agent
|
|
28078
28279
|
* @param {string} orgId The unique identifier of the organization.
|
|
28079
28280
|
* @param {string} projectId The unique identifier of the project.
|
|
@@ -28135,7 +28336,7 @@ var TaskAgentsApi = /** @class */ (function (_super) {
|
|
|
28135
28336
|
return (0, exports.TaskAgentsApiFp)(this.configuration).getProjectTaskAgentUsageReport(orgId, projectId, taskAgentId, aggregation, status, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
28136
28337
|
};
|
|
28137
28338
|
/**
|
|
28138
|
-
* Retrieve detailed information about a specific Task Agent. Returns
|
|
28339
|
+
* Retrieve detailed information about a specific Task Agent. Returns root Task Agent metadata with embedded immutable revisions. Runtime configuration such as instructions, models, and tools is stored on each revision.
|
|
28139
28340
|
* @summary Get Task Agent
|
|
28140
28341
|
* @param {string} orgId The unique identifier of the organization.
|
|
28141
28342
|
* @param {string} projectId The unique identifier of the project.
|
|
@@ -28164,6 +28365,21 @@ var TaskAgentsApi = /** @class */ (function (_super) {
|
|
|
28164
28365
|
var _this = this;
|
|
28165
28366
|
return (0, exports.TaskAgentsApiFp)(this.configuration).getTaskAgentCreditReport(orgId, projectId, taskAgentId, startDate, endDate, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
28166
28367
|
};
|
|
28368
|
+
/**
|
|
28369
|
+
* Retrieve an immutable executable revision for a Task Agent. The response includes the runtime configuration and concrete pinned attachments stored on that revision.
|
|
28370
|
+
* @summary Get Task Agent Revision
|
|
28371
|
+
* @param {string} orgId The organization ID
|
|
28372
|
+
* @param {string} projectId The project ID
|
|
28373
|
+
* @param {string} taskAgentId The task agent ID
|
|
28374
|
+
* @param {string} revisionId
|
|
28375
|
+
* @param {*} [options] Override http request option.
|
|
28376
|
+
* @throws {RequiredError}
|
|
28377
|
+
* @memberof TaskAgentsApi
|
|
28378
|
+
*/
|
|
28379
|
+
TaskAgentsApi.prototype.getTaskAgentRevision = function (orgId, projectId, taskAgentId, revisionId, options) {
|
|
28380
|
+
var _this = this;
|
|
28381
|
+
return (0, exports.TaskAgentsApiFp)(this.configuration).getTaskAgentRevision(orgId, projectId, taskAgentId, revisionId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
28382
|
+
};
|
|
28167
28383
|
/**
|
|
28168
28384
|
* Get conversation events for a specific TaskAgentRun. Returns the full conversation history from the ADK session including: - User messages - Agent responses - Tool calls and results - Error messages (if any) Events are returned in chronological order.
|
|
28169
28385
|
* @summary Get Run Events
|
|
@@ -28245,6 +28461,20 @@ var TaskAgentsApi = /** @class */ (function (_super) {
|
|
|
28245
28461
|
var _this = this;
|
|
28246
28462
|
return (0, exports.TaskAgentsApiFp)(this.configuration).getTaskAgentUsageReport(orgId, projectId, taskAgentId, aggregation, status, errorsOnly, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
28247
28463
|
};
|
|
28464
|
+
/**
|
|
28465
|
+
* List immutable executable revisions for a Task Agent. Each revision contains the runtime configuration and pinned attachments that can be executed by new runs, long-lived sessions, or pinned triggers. The active revision is marked with `active`.
|
|
28466
|
+
* @summary List Task Agent Revisions
|
|
28467
|
+
* @param {string} orgId The organization ID
|
|
28468
|
+
* @param {string} projectId The project ID
|
|
28469
|
+
* @param {string} taskAgentId The task agent ID
|
|
28470
|
+
* @param {*} [options] Override http request option.
|
|
28471
|
+
* @throws {RequiredError}
|
|
28472
|
+
* @memberof TaskAgentsApi
|
|
28473
|
+
*/
|
|
28474
|
+
TaskAgentsApi.prototype.listTaskAgentRevisions = function (orgId, projectId, taskAgentId, options) {
|
|
28475
|
+
var _this = this;
|
|
28476
|
+
return (0, exports.TaskAgentsApiFp)(this.configuration).listTaskAgentRevisions(orgId, projectId, taskAgentId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
28477
|
+
};
|
|
28248
28478
|
/**
|
|
28249
28479
|
* List execution runs for a Task Agent. Returns run history with: - Input message - Token usage - Status and duration - Task tools invoked - MCP tools invoked - Phase timings for LLM and tool execution
|
|
28250
28480
|
* @summary List Task Agent Runs
|
|
@@ -28259,15 +28489,16 @@ var TaskAgentsApi = /** @class */ (function (_super) {
|
|
|
28259
28489
|
* @param {string | null} [createdAfter] Filter runs created at/after this timestamp.
|
|
28260
28490
|
* @param {string | null} [createdBefore] Filter runs created at/before this timestamp.
|
|
28261
28491
|
* @param {number | null} [minDurationMs] Filter runs with duration greater than or equal to this value.
|
|
28492
|
+
* @param {string | null} [taskAgentRevisionId] Filter by TaskAgent revision ID.
|
|
28262
28493
|
* @param {number} [skip]
|
|
28263
28494
|
* @param {number} [limit]
|
|
28264
28495
|
* @param {*} [options] Override http request option.
|
|
28265
28496
|
* @throws {RequiredError}
|
|
28266
28497
|
* @memberof TaskAgentsApi
|
|
28267
28498
|
*/
|
|
28268
|
-
TaskAgentsApi.prototype.listTaskAgentRuns = function (orgId, projectId, taskAgentId, sessionId, isError, hadTaskToolFail, hadMcpToolFail, status, createdAfter, createdBefore, minDurationMs, skip, limit, options) {
|
|
28499
|
+
TaskAgentsApi.prototype.listTaskAgentRuns = function (orgId, projectId, taskAgentId, sessionId, isError, hadTaskToolFail, hadMcpToolFail, status, createdAfter, createdBefore, minDurationMs, taskAgentRevisionId, skip, limit, options) {
|
|
28269
28500
|
var _this = this;
|
|
28270
|
-
return (0, exports.TaskAgentsApiFp)(this.configuration).listTaskAgentRuns(orgId, projectId, taskAgentId, sessionId, isError, hadTaskToolFail, hadMcpToolFail, status, createdAfter, createdBefore, minDurationMs, skip, limit, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
28501
|
+
return (0, exports.TaskAgentsApiFp)(this.configuration).listTaskAgentRuns(orgId, projectId, taskAgentId, sessionId, isError, hadTaskToolFail, hadMcpToolFail, status, createdAfter, createdBefore, minDurationMs, taskAgentRevisionId, skip, limit, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
28271
28502
|
};
|
|
28272
28503
|
/**
|
|
28273
28504
|
* List conversation sessions for a Task Agent. Sessions group related runs together for multi-turn conversations.
|
|
@@ -28284,7 +28515,7 @@ var TaskAgentsApi = /** @class */ (function (_super) {
|
|
|
28284
28515
|
return (0, exports.TaskAgentsApiFp)(this.configuration).listTaskAgentSessions(orgId, projectId, taskAgentId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
28285
28516
|
};
|
|
28286
28517
|
/**
|
|
28287
|
-
* List all Task Agents configured for the project. Returns a paginated list of Task Agents with their
|
|
28518
|
+
* List all Task Agents configured for the project. Returns a paginated list of Task Agents with their root metadata and embedded revision history. Runtime configuration such as instructions, models, and tools is stored on each revision.
|
|
28288
28519
|
* @summary List Task Agents
|
|
28289
28520
|
* @param {string} orgId The unique identifier of the organization.
|
|
28290
28521
|
* @param {string} projectId The unique identifier of the project.
|
|
@@ -28299,18 +28530,19 @@ var TaskAgentsApi = /** @class */ (function (_super) {
|
|
|
28299
28530
|
return (0, exports.TaskAgentsApiFp)(this.configuration).listTaskAgents(orgId, projectId, cursor, pageLimit, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
28300
28531
|
};
|
|
28301
28532
|
/**
|
|
28302
|
-
* Execute the Task Agent with a user message. The agent will: 1. Process the message using the configured LLM 2. Reason about which task tools to invoke 3. Execute relevant Tasks as needed 4. Return a streaming response Responses are streamed using Server-Sent Events (SSE). The first SSE event emitted after successful stream setup is: - `event_type: \"session_id\"` with the resolved `session_id` in `metadata` Subsequent events include tool calls/results, text responses, and the terminal `done` or `error` event.
|
|
28533
|
+
* Execute the Task Agent with a user message. The agent will: 1. Process the message using the configured LLM 2. Reason about which task tools to invoke 3. Execute relevant Tasks as needed 4. Return a streaming response Responses are streamed using Server-Sent Events (SSE). The first SSE event emitted after successful stream setup is: - `event_type: \"session_id\"` with the resolved `session_id` in `metadata` Use `revision_id` to execute a specific TaskAgent revision. New sessions can run any revision belonging to the TaskAgent. Existing sessions remain pinned to their original revision; passing a conflicting `revision_id` is rejected. Subsequent events include tool calls/results, text responses, and the terminal `done` or `error` event.
|
|
28303
28534
|
* @summary Run Task Agent
|
|
28304
28535
|
* @param {string} orgId The unique identifier of the organization.
|
|
28305
28536
|
* @param {string} projectId The unique identifier of the project.
|
|
28306
28537
|
* @param {string} taskAgentId The specific Task Agent to reference.
|
|
28538
|
+
* @param {string | null} [revisionId] Optional TaskAgent revision ID to use for execution. If omitted, new sessions use the active revision and continuations use the session\'s pinned revision.
|
|
28307
28539
|
* @param {*} [options] Override http request option.
|
|
28308
28540
|
* @throws {RequiredError}
|
|
28309
28541
|
* @memberof TaskAgentsApi
|
|
28310
28542
|
*/
|
|
28311
|
-
TaskAgentsApi.prototype.runTaskAgent = function (orgId, projectId, taskAgentId, options) {
|
|
28543
|
+
TaskAgentsApi.prototype.runTaskAgent = function (orgId, projectId, taskAgentId, revisionId, options) {
|
|
28312
28544
|
var _this = this;
|
|
28313
|
-
return (0, exports.TaskAgentsApiFp)(this.configuration).runTaskAgent(orgId, projectId, taskAgentId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
28545
|
+
return (0, exports.TaskAgentsApiFp)(this.configuration).runTaskAgent(orgId, projectId, taskAgentId, revisionId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
28314
28546
|
};
|
|
28315
28547
|
/**
|
|
28316
28548
|
* Retrieve a specific member that has been granted direct access to the task_agent.
|
|
@@ -28374,7 +28606,7 @@ var TaskAgentsApi = /** @class */ (function (_super) {
|
|
|
28374
28606
|
return (0, exports.TaskAgentsApiFp)(this.configuration).taskAgentIamOrgOrgIdProjectProjectIdTaskAgentTaskAgentIdIamUpdateMemberRoles(taskAgentId, member, orgId, projectId, taskAgentIAMMemberRoleUpdate, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
28375
28607
|
};
|
|
28376
28608
|
/**
|
|
28377
|
-
* Update Task Agent
|
|
28609
|
+
* Update Task Agent metadata, create a new revision, or activate an existing revision. Modifiable fields: - Root metadata: name and run visibility - Revision configuration: description, instruction, LLM models, execution mode, memory settings, task tools, MCP servers, integrations, and skills - Activation: `active_revision_id` Updating revision configuration creates a new inactive revision. Activate it with a separate request that only includes `active_revision_id`. To update task tools, pass a `task_tools` array. This performs a full replacement: - Omit the field to leave task tools unchanged - Pass an empty array to remove all task tools - Pass a new array to replace all task tools (array order = execution order)
|
|
28378
28610
|
* @summary Update Task Agent
|
|
28379
28611
|
* @param {string} orgId The organization ID
|
|
28380
28612
|
* @param {string} projectId The project ID
|