@rightbrain/brain-api-client 0.0.1-dev.162.76deccd → 0.0.1-dev.164.aff08ee
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 +144 -31
- package/dist/api.d.ts +88 -24
- package/dist/api.js +140 -31
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -6779,6 +6779,25 @@ export interface PaginatedResultSetTaskAgentRead {
|
|
|
6779
6779
|
*/
|
|
6780
6780
|
'results': Array<TaskAgentRead>;
|
|
6781
6781
|
}
|
|
6782
|
+
/**
|
|
6783
|
+
*
|
|
6784
|
+
* @export
|
|
6785
|
+
* @interface PaginatedResultSetTaskAgentRunRead
|
|
6786
|
+
*/
|
|
6787
|
+
export interface PaginatedResultSetTaskAgentRunRead {
|
|
6788
|
+
/**
|
|
6789
|
+
*
|
|
6790
|
+
* @type {PaginationDetails}
|
|
6791
|
+
* @memberof PaginatedResultSetTaskAgentRunRead
|
|
6792
|
+
*/
|
|
6793
|
+
'pagination'?: PaginationDetails;
|
|
6794
|
+
/**
|
|
6795
|
+
* The list of items returned for the current page.
|
|
6796
|
+
* @type {Array<TaskAgentRunRead>}
|
|
6797
|
+
* @memberof PaginatedResultSetTaskAgentRunRead
|
|
6798
|
+
*/
|
|
6799
|
+
'results': Array<TaskAgentRunRead>;
|
|
6800
|
+
}
|
|
6782
6801
|
/**
|
|
6783
6802
|
*
|
|
6784
6803
|
* @export
|
|
@@ -41453,6 +41472,56 @@ export const TaskAgentsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
41453
41472
|
|
|
41454
41473
|
|
|
41455
41474
|
|
|
41475
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
41476
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
41477
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
41478
|
+
|
|
41479
|
+
return {
|
|
41480
|
+
url: toPathString(localVarUrlObj),
|
|
41481
|
+
options: localVarRequestOptions,
|
|
41482
|
+
};
|
|
41483
|
+
},
|
|
41484
|
+
/**
|
|
41485
|
+
* Get a single execution run for a Task Agent by run ID. Returns the same run metadata shape as the run listing endpoint, including status, token usage, files, tool invocation summaries, phase timings, fallback metadata, and model usage rows when available.
|
|
41486
|
+
* @summary Get Task Agent Run
|
|
41487
|
+
* @param {string} orgId The organization ID
|
|
41488
|
+
* @param {string} projectId The project ID
|
|
41489
|
+
* @param {string} taskAgentId The task agent ID
|
|
41490
|
+
* @param {string} runId The task agent run ID
|
|
41491
|
+
* @param {*} [options] Override http request option.
|
|
41492
|
+
* @throws {RequiredError}
|
|
41493
|
+
*/
|
|
41494
|
+
getTaskAgentRun: async (orgId: string, projectId: string, taskAgentId: string, runId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
41495
|
+
// verify required parameter 'orgId' is not null or undefined
|
|
41496
|
+
assertParamExists('getTaskAgentRun', 'orgId', orgId)
|
|
41497
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
41498
|
+
assertParamExists('getTaskAgentRun', 'projectId', projectId)
|
|
41499
|
+
// verify required parameter 'taskAgentId' is not null or undefined
|
|
41500
|
+
assertParamExists('getTaskAgentRun', 'taskAgentId', taskAgentId)
|
|
41501
|
+
// verify required parameter 'runId' is not null or undefined
|
|
41502
|
+
assertParamExists('getTaskAgentRun', 'runId', runId)
|
|
41503
|
+
const localVarPath = `/org/{org_id}/project/{project_id}/task-agent/{task_agent_id}/run/{run_id}`
|
|
41504
|
+
.replace(`{${"org_id"}}`, encodeURIComponent(String(orgId)))
|
|
41505
|
+
.replace(`{${"project_id"}}`, encodeURIComponent(String(projectId)))
|
|
41506
|
+
.replace(`{${"task_agent_id"}}`, encodeURIComponent(String(taskAgentId)))
|
|
41507
|
+
.replace(`{${"run_id"}}`, encodeURIComponent(String(runId)));
|
|
41508
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
41509
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
41510
|
+
let baseOptions;
|
|
41511
|
+
if (configuration) {
|
|
41512
|
+
baseOptions = configuration.baseOptions;
|
|
41513
|
+
}
|
|
41514
|
+
|
|
41515
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
41516
|
+
const localVarHeaderParameter = {} as any;
|
|
41517
|
+
const localVarQueryParameter = {} as any;
|
|
41518
|
+
|
|
41519
|
+
// authentication HTTPBearer required
|
|
41520
|
+
// http bearer authentication required
|
|
41521
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
41522
|
+
|
|
41523
|
+
|
|
41524
|
+
|
|
41456
41525
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
41457
41526
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
41458
41527
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -41794,9 +41863,9 @@ export const TaskAgentsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
41794
41863
|
/**
|
|
41795
41864
|
* 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, tool execution, and memory compaction when applicable
|
|
41796
41865
|
* @summary List Task Agent Runs
|
|
41797
|
-
* @param {string} orgId The
|
|
41798
|
-
* @param {string} projectId The
|
|
41799
|
-
* @param {string} taskAgentId The
|
|
41866
|
+
* @param {string} orgId The organization ID
|
|
41867
|
+
* @param {string} projectId The project ID
|
|
41868
|
+
* @param {string} taskAgentId The task agent ID
|
|
41800
41869
|
* @param {string | null} [sessionId] Filter by session ID
|
|
41801
41870
|
* @param {boolean | null} [isError] Filter by run-level error status.
|
|
41802
41871
|
* @param {boolean | null} [hadTaskToolFail] Filter by whether any invoked task tool failed.
|
|
@@ -41806,12 +41875,12 @@ export const TaskAgentsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
41806
41875
|
* @param {string | null} [createdBefore] Filter runs created at/before this timestamp.
|
|
41807
41876
|
* @param {number | null} [minDurationMs] Filter runs with duration greater than or equal to this value.
|
|
41808
41877
|
* @param {string | null} [taskAgentRevisionId] Filter by TaskAgent revision ID.
|
|
41809
|
-
* @param {number} [
|
|
41810
|
-
* @param {
|
|
41878
|
+
* @param {number} [pageLimit] The maximum number of items to return per page. Defaults to `100` if not specified.
|
|
41879
|
+
* @param {string | null} [cursor] A cursor for pagination. Use the `next_cursor` value from the previous response to get the next page of results.
|
|
41811
41880
|
* @param {*} [options] Override http request option.
|
|
41812
41881
|
* @throws {RequiredError}
|
|
41813
41882
|
*/
|
|
41814
|
-
listTaskAgentRuns: async (orgId: string, projectId: string, taskAgentId: string, sessionId?: string | null, isError?: boolean | null, hadTaskToolFail?: boolean | null, hadMcpToolFail?: boolean | null, status?: TaskAgentRunStatus, createdAfter?: string | null, createdBefore?: string | null, minDurationMs?: number | null, taskAgentRevisionId?: string | null,
|
|
41883
|
+
listTaskAgentRuns: async (orgId: string, projectId: string, taskAgentId: string, sessionId?: string | null, isError?: boolean | null, hadTaskToolFail?: boolean | null, hadMcpToolFail?: boolean | null, status?: TaskAgentRunStatus, createdAfter?: string | null, createdBefore?: string | null, minDurationMs?: number | null, taskAgentRevisionId?: string | null, pageLimit?: number, cursor?: string | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
41815
41884
|
// verify required parameter 'orgId' is not null or undefined
|
|
41816
41885
|
assertParamExists('listTaskAgentRuns', 'orgId', orgId)
|
|
41817
41886
|
// verify required parameter 'projectId' is not null or undefined
|
|
@@ -41877,12 +41946,12 @@ export const TaskAgentsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
41877
41946
|
localVarQueryParameter['task_agent_revision_id'] = taskAgentRevisionId;
|
|
41878
41947
|
}
|
|
41879
41948
|
|
|
41880
|
-
if (
|
|
41881
|
-
localVarQueryParameter['
|
|
41949
|
+
if (pageLimit !== undefined) {
|
|
41950
|
+
localVarQueryParameter['page_limit'] = pageLimit;
|
|
41882
41951
|
}
|
|
41883
41952
|
|
|
41884
|
-
if (
|
|
41885
|
-
localVarQueryParameter['
|
|
41953
|
+
if (cursor !== undefined) {
|
|
41954
|
+
localVarQueryParameter['cursor'] = cursor;
|
|
41886
41955
|
}
|
|
41887
41956
|
|
|
41888
41957
|
|
|
@@ -42445,6 +42514,22 @@ export const TaskAgentsApiFp = function(configuration?: Configuration) {
|
|
|
42445
42514
|
const localVarOperationServerBasePath = operationServerMap['TaskAgentsApi.getTaskAgentRevision']?.[localVarOperationServerIndex]?.url;
|
|
42446
42515
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
42447
42516
|
},
|
|
42517
|
+
/**
|
|
42518
|
+
* Get a single execution run for a Task Agent by run ID. Returns the same run metadata shape as the run listing endpoint, including status, token usage, files, tool invocation summaries, phase timings, fallback metadata, and model usage rows when available.
|
|
42519
|
+
* @summary Get Task Agent Run
|
|
42520
|
+
* @param {string} orgId The organization ID
|
|
42521
|
+
* @param {string} projectId The project ID
|
|
42522
|
+
* @param {string} taskAgentId The task agent ID
|
|
42523
|
+
* @param {string} runId The task agent run ID
|
|
42524
|
+
* @param {*} [options] Override http request option.
|
|
42525
|
+
* @throws {RequiredError}
|
|
42526
|
+
*/
|
|
42527
|
+
async getTaskAgentRun(orgId: string, projectId: string, taskAgentId: string, runId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TaskAgentRunRead>> {
|
|
42528
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getTaskAgentRun(orgId, projectId, taskAgentId, runId, options);
|
|
42529
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
42530
|
+
const localVarOperationServerBasePath = operationServerMap['TaskAgentsApi.getTaskAgentRun']?.[localVarOperationServerIndex]?.url;
|
|
42531
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
42532
|
+
},
|
|
42448
42533
|
/**
|
|
42449
42534
|
* 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 - Metadata-only memory compaction events, including token-threshold metadata when token-aware compaction was active - Error messages (if any) Events are returned in chronological order.
|
|
42450
42535
|
* @summary Get Run Events
|
|
@@ -42549,9 +42634,9 @@ export const TaskAgentsApiFp = function(configuration?: Configuration) {
|
|
|
42549
42634
|
/**
|
|
42550
42635
|
* 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, tool execution, and memory compaction when applicable
|
|
42551
42636
|
* @summary List Task Agent Runs
|
|
42552
|
-
* @param {string} orgId The
|
|
42553
|
-
* @param {string} projectId The
|
|
42554
|
-
* @param {string} taskAgentId The
|
|
42637
|
+
* @param {string} orgId The organization ID
|
|
42638
|
+
* @param {string} projectId The project ID
|
|
42639
|
+
* @param {string} taskAgentId The task agent ID
|
|
42555
42640
|
* @param {string | null} [sessionId] Filter by session ID
|
|
42556
42641
|
* @param {boolean | null} [isError] Filter by run-level error status.
|
|
42557
42642
|
* @param {boolean | null} [hadTaskToolFail] Filter by whether any invoked task tool failed.
|
|
@@ -42561,13 +42646,13 @@ export const TaskAgentsApiFp = function(configuration?: Configuration) {
|
|
|
42561
42646
|
* @param {string | null} [createdBefore] Filter runs created at/before this timestamp.
|
|
42562
42647
|
* @param {number | null} [minDurationMs] Filter runs with duration greater than or equal to this value.
|
|
42563
42648
|
* @param {string | null} [taskAgentRevisionId] Filter by TaskAgent revision ID.
|
|
42564
|
-
* @param {number} [
|
|
42565
|
-
* @param {
|
|
42649
|
+
* @param {number} [pageLimit] The maximum number of items to return per page. Defaults to `100` if not specified.
|
|
42650
|
+
* @param {string | null} [cursor] A cursor for pagination. Use the `next_cursor` value from the previous response to get the next page of results.
|
|
42566
42651
|
* @param {*} [options] Override http request option.
|
|
42567
42652
|
* @throws {RequiredError}
|
|
42568
42653
|
*/
|
|
42569
|
-
async listTaskAgentRuns(orgId: string, projectId: string, taskAgentId: string, sessionId?: string | null, isError?: boolean | null, hadTaskToolFail?: boolean | null, hadMcpToolFail?: boolean | null, status?: TaskAgentRunStatus, createdAfter?: string | null, createdBefore?: string | null, minDurationMs?: number | null, taskAgentRevisionId?: string | null,
|
|
42570
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listTaskAgentRuns(orgId, projectId, taskAgentId, sessionId, isError, hadTaskToolFail, hadMcpToolFail, status, createdAfter, createdBefore, minDurationMs, taskAgentRevisionId,
|
|
42654
|
+
async listTaskAgentRuns(orgId: string, projectId: string, taskAgentId: string, sessionId?: string | null, isError?: boolean | null, hadTaskToolFail?: boolean | null, hadMcpToolFail?: boolean | null, status?: TaskAgentRunStatus, createdAfter?: string | null, createdBefore?: string | null, minDurationMs?: number | null, taskAgentRevisionId?: string | null, pageLimit?: number, cursor?: string | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaginatedResultSetTaskAgentRunRead>> {
|
|
42655
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listTaskAgentRuns(orgId, projectId, taskAgentId, sessionId, isError, hadTaskToolFail, hadMcpToolFail, status, createdAfter, createdBefore, minDurationMs, taskAgentRevisionId, pageLimit, cursor, options);
|
|
42571
42656
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
42572
42657
|
const localVarOperationServerBasePath = operationServerMap['TaskAgentsApi.listTaskAgentRuns']?.[localVarOperationServerIndex]?.url;
|
|
42573
42658
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -42815,6 +42900,19 @@ export const TaskAgentsApiFactory = function (configuration?: Configuration, bas
|
|
|
42815
42900
|
getTaskAgentRevision(orgId: string, projectId: string, taskAgentId: string, revisionId: string, options?: any): AxiosPromise<TaskAgentRevisionRead> {
|
|
42816
42901
|
return localVarFp.getTaskAgentRevision(orgId, projectId, taskAgentId, revisionId, options).then((request) => request(axios, basePath));
|
|
42817
42902
|
},
|
|
42903
|
+
/**
|
|
42904
|
+
* Get a single execution run for a Task Agent by run ID. Returns the same run metadata shape as the run listing endpoint, including status, token usage, files, tool invocation summaries, phase timings, fallback metadata, and model usage rows when available.
|
|
42905
|
+
* @summary Get Task Agent Run
|
|
42906
|
+
* @param {string} orgId The organization ID
|
|
42907
|
+
* @param {string} projectId The project ID
|
|
42908
|
+
* @param {string} taskAgentId The task agent ID
|
|
42909
|
+
* @param {string} runId The task agent run ID
|
|
42910
|
+
* @param {*} [options] Override http request option.
|
|
42911
|
+
* @throws {RequiredError}
|
|
42912
|
+
*/
|
|
42913
|
+
getTaskAgentRun(orgId: string, projectId: string, taskAgentId: string, runId: string, options?: any): AxiosPromise<TaskAgentRunRead> {
|
|
42914
|
+
return localVarFp.getTaskAgentRun(orgId, projectId, taskAgentId, runId, options).then((request) => request(axios, basePath));
|
|
42915
|
+
},
|
|
42818
42916
|
/**
|
|
42819
42917
|
* 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 - Metadata-only memory compaction events, including token-threshold metadata when token-aware compaction was active - Error messages (if any) Events are returned in chronological order.
|
|
42820
42918
|
* @summary Get Run Events
|
|
@@ -42901,9 +42999,9 @@ export const TaskAgentsApiFactory = function (configuration?: Configuration, bas
|
|
|
42901
42999
|
/**
|
|
42902
43000
|
* 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, tool execution, and memory compaction when applicable
|
|
42903
43001
|
* @summary List Task Agent Runs
|
|
42904
|
-
* @param {string} orgId The
|
|
42905
|
-
* @param {string} projectId The
|
|
42906
|
-
* @param {string} taskAgentId The
|
|
43002
|
+
* @param {string} orgId The organization ID
|
|
43003
|
+
* @param {string} projectId The project ID
|
|
43004
|
+
* @param {string} taskAgentId The task agent ID
|
|
42907
43005
|
* @param {string | null} [sessionId] Filter by session ID
|
|
42908
43006
|
* @param {boolean | null} [isError] Filter by run-level error status.
|
|
42909
43007
|
* @param {boolean | null} [hadTaskToolFail] Filter by whether any invoked task tool failed.
|
|
@@ -42913,13 +43011,13 @@ export const TaskAgentsApiFactory = function (configuration?: Configuration, bas
|
|
|
42913
43011
|
* @param {string | null} [createdBefore] Filter runs created at/before this timestamp.
|
|
42914
43012
|
* @param {number | null} [minDurationMs] Filter runs with duration greater than or equal to this value.
|
|
42915
43013
|
* @param {string | null} [taskAgentRevisionId] Filter by TaskAgent revision ID.
|
|
42916
|
-
* @param {number} [
|
|
42917
|
-
* @param {
|
|
43014
|
+
* @param {number} [pageLimit] The maximum number of items to return per page. Defaults to `100` if not specified.
|
|
43015
|
+
* @param {string | null} [cursor] A cursor for pagination. Use the `next_cursor` value from the previous response to get the next page of results.
|
|
42918
43016
|
* @param {*} [options] Override http request option.
|
|
42919
43017
|
* @throws {RequiredError}
|
|
42920
43018
|
*/
|
|
42921
|
-
listTaskAgentRuns(orgId: string, projectId: string, taskAgentId: string, sessionId?: string | null, isError?: boolean | null, hadTaskToolFail?: boolean | null, hadMcpToolFail?: boolean | null, status?: TaskAgentRunStatus, createdAfter?: string | null, createdBefore?: string | null, minDurationMs?: number | null, taskAgentRevisionId?: string | null,
|
|
42922
|
-
return localVarFp.listTaskAgentRuns(orgId, projectId, taskAgentId, sessionId, isError, hadTaskToolFail, hadMcpToolFail, status, createdAfter, createdBefore, minDurationMs, taskAgentRevisionId,
|
|
43019
|
+
listTaskAgentRuns(orgId: string, projectId: string, taskAgentId: string, sessionId?: string | null, isError?: boolean | null, hadTaskToolFail?: boolean | null, hadMcpToolFail?: boolean | null, status?: TaskAgentRunStatus, createdAfter?: string | null, createdBefore?: string | null, minDurationMs?: number | null, taskAgentRevisionId?: string | null, pageLimit?: number, cursor?: string | null, options?: any): AxiosPromise<PaginatedResultSetTaskAgentRunRead> {
|
|
43020
|
+
return localVarFp.listTaskAgentRuns(orgId, projectId, taskAgentId, sessionId, isError, hadTaskToolFail, hadMcpToolFail, status, createdAfter, createdBefore, minDurationMs, taskAgentRevisionId, pageLimit, cursor, options).then((request) => request(axios, basePath));
|
|
42923
43021
|
},
|
|
42924
43022
|
/**
|
|
42925
43023
|
* List conversation sessions for a Task Agent. Sessions group related runs together for multi-turn conversations.
|
|
@@ -43156,6 +43254,21 @@ export class TaskAgentsApi extends BaseAPI {
|
|
|
43156
43254
|
return TaskAgentsApiFp(this.configuration).getTaskAgentRevision(orgId, projectId, taskAgentId, revisionId, options).then((request) => request(this.axios, this.basePath));
|
|
43157
43255
|
}
|
|
43158
43256
|
|
|
43257
|
+
/**
|
|
43258
|
+
* Get a single execution run for a Task Agent by run ID. Returns the same run metadata shape as the run listing endpoint, including status, token usage, files, tool invocation summaries, phase timings, fallback metadata, and model usage rows when available.
|
|
43259
|
+
* @summary Get Task Agent Run
|
|
43260
|
+
* @param {string} orgId The organization ID
|
|
43261
|
+
* @param {string} projectId The project ID
|
|
43262
|
+
* @param {string} taskAgentId The task agent ID
|
|
43263
|
+
* @param {string} runId The task agent run ID
|
|
43264
|
+
* @param {*} [options] Override http request option.
|
|
43265
|
+
* @throws {RequiredError}
|
|
43266
|
+
* @memberof TaskAgentsApi
|
|
43267
|
+
*/
|
|
43268
|
+
public getTaskAgentRun(orgId: string, projectId: string, taskAgentId: string, runId: string, options?: RawAxiosRequestConfig) {
|
|
43269
|
+
return TaskAgentsApiFp(this.configuration).getTaskAgentRun(orgId, projectId, taskAgentId, runId, options).then((request) => request(this.axios, this.basePath));
|
|
43270
|
+
}
|
|
43271
|
+
|
|
43159
43272
|
/**
|
|
43160
43273
|
* 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 - Metadata-only memory compaction events, including token-threshold metadata when token-aware compaction was active - Error messages (if any) Events are returned in chronological order.
|
|
43161
43274
|
* @summary Get Run Events
|
|
@@ -43254,9 +43367,9 @@ export class TaskAgentsApi extends BaseAPI {
|
|
|
43254
43367
|
/**
|
|
43255
43368
|
* 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, tool execution, and memory compaction when applicable
|
|
43256
43369
|
* @summary List Task Agent Runs
|
|
43257
|
-
* @param {string} orgId The
|
|
43258
|
-
* @param {string} projectId The
|
|
43259
|
-
* @param {string} taskAgentId The
|
|
43370
|
+
* @param {string} orgId The organization ID
|
|
43371
|
+
* @param {string} projectId The project ID
|
|
43372
|
+
* @param {string} taskAgentId The task agent ID
|
|
43260
43373
|
* @param {string | null} [sessionId] Filter by session ID
|
|
43261
43374
|
* @param {boolean | null} [isError] Filter by run-level error status.
|
|
43262
43375
|
* @param {boolean | null} [hadTaskToolFail] Filter by whether any invoked task tool failed.
|
|
@@ -43266,14 +43379,14 @@ export class TaskAgentsApi extends BaseAPI {
|
|
|
43266
43379
|
* @param {string | null} [createdBefore] Filter runs created at/before this timestamp.
|
|
43267
43380
|
* @param {number | null} [minDurationMs] Filter runs with duration greater than or equal to this value.
|
|
43268
43381
|
* @param {string | null} [taskAgentRevisionId] Filter by TaskAgent revision ID.
|
|
43269
|
-
* @param {number} [
|
|
43270
|
-
* @param {
|
|
43382
|
+
* @param {number} [pageLimit] The maximum number of items to return per page. Defaults to `100` if not specified.
|
|
43383
|
+
* @param {string | null} [cursor] A cursor for pagination. Use the `next_cursor` value from the previous response to get the next page of results.
|
|
43271
43384
|
* @param {*} [options] Override http request option.
|
|
43272
43385
|
* @throws {RequiredError}
|
|
43273
43386
|
* @memberof TaskAgentsApi
|
|
43274
43387
|
*/
|
|
43275
|
-
public listTaskAgentRuns(orgId: string, projectId: string, taskAgentId: string, sessionId?: string | null, isError?: boolean | null, hadTaskToolFail?: boolean | null, hadMcpToolFail?: boolean | null, status?: TaskAgentRunStatus, createdAfter?: string | null, createdBefore?: string | null, minDurationMs?: number | null, taskAgentRevisionId?: string | null,
|
|
43276
|
-
return TaskAgentsApiFp(this.configuration).listTaskAgentRuns(orgId, projectId, taskAgentId, sessionId, isError, hadTaskToolFail, hadMcpToolFail, status, createdAfter, createdBefore, minDurationMs, taskAgentRevisionId,
|
|
43388
|
+
public listTaskAgentRuns(orgId: string, projectId: string, taskAgentId: string, sessionId?: string | null, isError?: boolean | null, hadTaskToolFail?: boolean | null, hadMcpToolFail?: boolean | null, status?: TaskAgentRunStatus, createdAfter?: string | null, createdBefore?: string | null, minDurationMs?: number | null, taskAgentRevisionId?: string | null, pageLimit?: number, cursor?: string | null, options?: RawAxiosRequestConfig) {
|
|
43389
|
+
return TaskAgentsApiFp(this.configuration).listTaskAgentRuns(orgId, projectId, taskAgentId, sessionId, isError, hadTaskToolFail, hadMcpToolFail, status, createdAfter, createdBefore, minDurationMs, taskAgentRevisionId, pageLimit, cursor, options).then((request) => request(this.axios, this.basePath));
|
|
43277
43390
|
}
|
|
43278
43391
|
|
|
43279
43392
|
/**
|
package/dist/api.d.ts
CHANGED
|
@@ -6663,6 +6663,25 @@ export interface PaginatedResultSetTaskAgentRead {
|
|
|
6663
6663
|
*/
|
|
6664
6664
|
'results': Array<TaskAgentRead>;
|
|
6665
6665
|
}
|
|
6666
|
+
/**
|
|
6667
|
+
*
|
|
6668
|
+
* @export
|
|
6669
|
+
* @interface PaginatedResultSetTaskAgentRunRead
|
|
6670
|
+
*/
|
|
6671
|
+
export interface PaginatedResultSetTaskAgentRunRead {
|
|
6672
|
+
/**
|
|
6673
|
+
*
|
|
6674
|
+
* @type {PaginationDetails}
|
|
6675
|
+
* @memberof PaginatedResultSetTaskAgentRunRead
|
|
6676
|
+
*/
|
|
6677
|
+
'pagination'?: PaginationDetails;
|
|
6678
|
+
/**
|
|
6679
|
+
* The list of items returned for the current page.
|
|
6680
|
+
* @type {Array<TaskAgentRunRead>}
|
|
6681
|
+
* @memberof PaginatedResultSetTaskAgentRunRead
|
|
6682
|
+
*/
|
|
6683
|
+
'results': Array<TaskAgentRunRead>;
|
|
6684
|
+
}
|
|
6666
6685
|
/**
|
|
6667
6686
|
*
|
|
6668
6687
|
* @export
|
|
@@ -29622,6 +29641,17 @@ export declare const TaskAgentsApiAxiosParamCreator: (configuration?: Configurat
|
|
|
29622
29641
|
* @throws {RequiredError}
|
|
29623
29642
|
*/
|
|
29624
29643
|
getTaskAgentRevision: (orgId: string, projectId: string, taskAgentId: string, revisionId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
29644
|
+
/**
|
|
29645
|
+
* Get a single execution run for a Task Agent by run ID. Returns the same run metadata shape as the run listing endpoint, including status, token usage, files, tool invocation summaries, phase timings, fallback metadata, and model usage rows when available.
|
|
29646
|
+
* @summary Get Task Agent Run
|
|
29647
|
+
* @param {string} orgId The organization ID
|
|
29648
|
+
* @param {string} projectId The project ID
|
|
29649
|
+
* @param {string} taskAgentId The task agent ID
|
|
29650
|
+
* @param {string} runId The task agent run ID
|
|
29651
|
+
* @param {*} [options] Override http request option.
|
|
29652
|
+
* @throws {RequiredError}
|
|
29653
|
+
*/
|
|
29654
|
+
getTaskAgentRun: (orgId: string, projectId: string, taskAgentId: string, runId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
29625
29655
|
/**
|
|
29626
29656
|
* 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 - Metadata-only memory compaction events, including token-threshold metadata when token-aware compaction was active - Error messages (if any) Events are returned in chronological order.
|
|
29627
29657
|
* @summary Get Run Events
|
|
@@ -29696,9 +29726,9 @@ export declare const TaskAgentsApiAxiosParamCreator: (configuration?: Configurat
|
|
|
29696
29726
|
/**
|
|
29697
29727
|
* 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, tool execution, and memory compaction when applicable
|
|
29698
29728
|
* @summary List Task Agent Runs
|
|
29699
|
-
* @param {string} orgId The
|
|
29700
|
-
* @param {string} projectId The
|
|
29701
|
-
* @param {string} taskAgentId The
|
|
29729
|
+
* @param {string} orgId The organization ID
|
|
29730
|
+
* @param {string} projectId The project ID
|
|
29731
|
+
* @param {string} taskAgentId The task agent ID
|
|
29702
29732
|
* @param {string | null} [sessionId] Filter by session ID
|
|
29703
29733
|
* @param {boolean | null} [isError] Filter by run-level error status.
|
|
29704
29734
|
* @param {boolean | null} [hadTaskToolFail] Filter by whether any invoked task tool failed.
|
|
@@ -29708,12 +29738,12 @@ export declare const TaskAgentsApiAxiosParamCreator: (configuration?: Configurat
|
|
|
29708
29738
|
* @param {string | null} [createdBefore] Filter runs created at/before this timestamp.
|
|
29709
29739
|
* @param {number | null} [minDurationMs] Filter runs with duration greater than or equal to this value.
|
|
29710
29740
|
* @param {string | null} [taskAgentRevisionId] Filter by TaskAgent revision ID.
|
|
29711
|
-
* @param {number} [
|
|
29712
|
-
* @param {
|
|
29741
|
+
* @param {number} [pageLimit] The maximum number of items to return per page. Defaults to `100` if not specified.
|
|
29742
|
+
* @param {string | null} [cursor] A cursor for pagination. Use the `next_cursor` value from the previous response to get the next page of results.
|
|
29713
29743
|
* @param {*} [options] Override http request option.
|
|
29714
29744
|
* @throws {RequiredError}
|
|
29715
29745
|
*/
|
|
29716
|
-
listTaskAgentRuns: (orgId: string, projectId: string, taskAgentId: string, sessionId?: string | null, isError?: boolean | null, hadTaskToolFail?: boolean | null, hadMcpToolFail?: boolean | null, status?: TaskAgentRunStatus, createdAfter?: string | null, createdBefore?: string | null, minDurationMs?: number | null, taskAgentRevisionId?: string | null,
|
|
29746
|
+
listTaskAgentRuns: (orgId: string, projectId: string, taskAgentId: string, sessionId?: string | null, isError?: boolean | null, hadTaskToolFail?: boolean | null, hadMcpToolFail?: boolean | null, status?: TaskAgentRunStatus, createdAfter?: string | null, createdBefore?: string | null, minDurationMs?: number | null, taskAgentRevisionId?: string | null, pageLimit?: number, cursor?: string | null, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
29717
29747
|
/**
|
|
29718
29748
|
* List conversation sessions for a Task Agent. Sessions group related runs together for multi-turn conversations.
|
|
29719
29749
|
* @summary List Task Agent Sessions
|
|
@@ -29897,6 +29927,17 @@ export declare const TaskAgentsApiFp: (configuration?: Configuration) => {
|
|
|
29897
29927
|
* @throws {RequiredError}
|
|
29898
29928
|
*/
|
|
29899
29929
|
getTaskAgentRevision(orgId: string, projectId: string, taskAgentId: string, revisionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TaskAgentRevisionRead>>;
|
|
29930
|
+
/**
|
|
29931
|
+
* Get a single execution run for a Task Agent by run ID. Returns the same run metadata shape as the run listing endpoint, including status, token usage, files, tool invocation summaries, phase timings, fallback metadata, and model usage rows when available.
|
|
29932
|
+
* @summary Get Task Agent Run
|
|
29933
|
+
* @param {string} orgId The organization ID
|
|
29934
|
+
* @param {string} projectId The project ID
|
|
29935
|
+
* @param {string} taskAgentId The task agent ID
|
|
29936
|
+
* @param {string} runId The task agent run ID
|
|
29937
|
+
* @param {*} [options] Override http request option.
|
|
29938
|
+
* @throws {RequiredError}
|
|
29939
|
+
*/
|
|
29940
|
+
getTaskAgentRun(orgId: string, projectId: string, taskAgentId: string, runId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TaskAgentRunRead>>;
|
|
29900
29941
|
/**
|
|
29901
29942
|
* 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 - Metadata-only memory compaction events, including token-threshold metadata when token-aware compaction was active - Error messages (if any) Events are returned in chronological order.
|
|
29902
29943
|
* @summary Get Run Events
|
|
@@ -29971,9 +30012,9 @@ export declare const TaskAgentsApiFp: (configuration?: Configuration) => {
|
|
|
29971
30012
|
/**
|
|
29972
30013
|
* 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, tool execution, and memory compaction when applicable
|
|
29973
30014
|
* @summary List Task Agent Runs
|
|
29974
|
-
* @param {string} orgId The
|
|
29975
|
-
* @param {string} projectId The
|
|
29976
|
-
* @param {string} taskAgentId The
|
|
30015
|
+
* @param {string} orgId The organization ID
|
|
30016
|
+
* @param {string} projectId The project ID
|
|
30017
|
+
* @param {string} taskAgentId The task agent ID
|
|
29977
30018
|
* @param {string | null} [sessionId] Filter by session ID
|
|
29978
30019
|
* @param {boolean | null} [isError] Filter by run-level error status.
|
|
29979
30020
|
* @param {boolean | null} [hadTaskToolFail] Filter by whether any invoked task tool failed.
|
|
@@ -29983,12 +30024,12 @@ export declare const TaskAgentsApiFp: (configuration?: Configuration) => {
|
|
|
29983
30024
|
* @param {string | null} [createdBefore] Filter runs created at/before this timestamp.
|
|
29984
30025
|
* @param {number | null} [minDurationMs] Filter runs with duration greater than or equal to this value.
|
|
29985
30026
|
* @param {string | null} [taskAgentRevisionId] Filter by TaskAgent revision ID.
|
|
29986
|
-
* @param {number} [
|
|
29987
|
-
* @param {
|
|
30027
|
+
* @param {number} [pageLimit] The maximum number of items to return per page. Defaults to `100` if not specified.
|
|
30028
|
+
* @param {string | null} [cursor] A cursor for pagination. Use the `next_cursor` value from the previous response to get the next page of results.
|
|
29988
30029
|
* @param {*} [options] Override http request option.
|
|
29989
30030
|
* @throws {RequiredError}
|
|
29990
30031
|
*/
|
|
29991
|
-
listTaskAgentRuns(orgId: string, projectId: string, taskAgentId: string, sessionId?: string | null, isError?: boolean | null, hadTaskToolFail?: boolean | null, hadMcpToolFail?: boolean | null, status?: TaskAgentRunStatus, createdAfter?: string | null, createdBefore?: string | null, minDurationMs?: number | null, taskAgentRevisionId?: string | null,
|
|
30032
|
+
listTaskAgentRuns(orgId: string, projectId: string, taskAgentId: string, sessionId?: string | null, isError?: boolean | null, hadTaskToolFail?: boolean | null, hadMcpToolFail?: boolean | null, status?: TaskAgentRunStatus, createdAfter?: string | null, createdBefore?: string | null, minDurationMs?: number | null, taskAgentRevisionId?: string | null, pageLimit?: number, cursor?: string | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaginatedResultSetTaskAgentRunRead>>;
|
|
29992
30033
|
/**
|
|
29993
30034
|
* List conversation sessions for a Task Agent. Sessions group related runs together for multi-turn conversations.
|
|
29994
30035
|
* @summary List Task Agent Sessions
|
|
@@ -30172,6 +30213,17 @@ export declare const TaskAgentsApiFactory: (configuration?: Configuration, baseP
|
|
|
30172
30213
|
* @throws {RequiredError}
|
|
30173
30214
|
*/
|
|
30174
30215
|
getTaskAgentRevision(orgId: string, projectId: string, taskAgentId: string, revisionId: string, options?: any): AxiosPromise<TaskAgentRevisionRead>;
|
|
30216
|
+
/**
|
|
30217
|
+
* Get a single execution run for a Task Agent by run ID. Returns the same run metadata shape as the run listing endpoint, including status, token usage, files, tool invocation summaries, phase timings, fallback metadata, and model usage rows when available.
|
|
30218
|
+
* @summary Get Task Agent Run
|
|
30219
|
+
* @param {string} orgId The organization ID
|
|
30220
|
+
* @param {string} projectId The project ID
|
|
30221
|
+
* @param {string} taskAgentId The task agent ID
|
|
30222
|
+
* @param {string} runId The task agent run ID
|
|
30223
|
+
* @param {*} [options] Override http request option.
|
|
30224
|
+
* @throws {RequiredError}
|
|
30225
|
+
*/
|
|
30226
|
+
getTaskAgentRun(orgId: string, projectId: string, taskAgentId: string, runId: string, options?: any): AxiosPromise<TaskAgentRunRead>;
|
|
30175
30227
|
/**
|
|
30176
30228
|
* 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 - Metadata-only memory compaction events, including token-threshold metadata when token-aware compaction was active - Error messages (if any) Events are returned in chronological order.
|
|
30177
30229
|
* @summary Get Run Events
|
|
@@ -30246,9 +30298,9 @@ export declare const TaskAgentsApiFactory: (configuration?: Configuration, baseP
|
|
|
30246
30298
|
/**
|
|
30247
30299
|
* 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, tool execution, and memory compaction when applicable
|
|
30248
30300
|
* @summary List Task Agent Runs
|
|
30249
|
-
* @param {string} orgId The
|
|
30250
|
-
* @param {string} projectId The
|
|
30251
|
-
* @param {string} taskAgentId The
|
|
30301
|
+
* @param {string} orgId The organization ID
|
|
30302
|
+
* @param {string} projectId The project ID
|
|
30303
|
+
* @param {string} taskAgentId The task agent ID
|
|
30252
30304
|
* @param {string | null} [sessionId] Filter by session ID
|
|
30253
30305
|
* @param {boolean | null} [isError] Filter by run-level error status.
|
|
30254
30306
|
* @param {boolean | null} [hadTaskToolFail] Filter by whether any invoked task tool failed.
|
|
@@ -30258,12 +30310,12 @@ export declare const TaskAgentsApiFactory: (configuration?: Configuration, baseP
|
|
|
30258
30310
|
* @param {string | null} [createdBefore] Filter runs created at/before this timestamp.
|
|
30259
30311
|
* @param {number | null} [minDurationMs] Filter runs with duration greater than or equal to this value.
|
|
30260
30312
|
* @param {string | null} [taskAgentRevisionId] Filter by TaskAgent revision ID.
|
|
30261
|
-
* @param {number} [
|
|
30262
|
-
* @param {
|
|
30313
|
+
* @param {number} [pageLimit] The maximum number of items to return per page. Defaults to `100` if not specified.
|
|
30314
|
+
* @param {string | null} [cursor] A cursor for pagination. Use the `next_cursor` value from the previous response to get the next page of results.
|
|
30263
30315
|
* @param {*} [options] Override http request option.
|
|
30264
30316
|
* @throws {RequiredError}
|
|
30265
30317
|
*/
|
|
30266
|
-
listTaskAgentRuns(orgId: string, projectId: string, taskAgentId: string, sessionId?: string | null, isError?: boolean | null, hadTaskToolFail?: boolean | null, hadMcpToolFail?: boolean | null, status?: TaskAgentRunStatus, createdAfter?: string | null, createdBefore?: string | null, minDurationMs?: number | null, taskAgentRevisionId?: string | null,
|
|
30318
|
+
listTaskAgentRuns(orgId: string, projectId: string, taskAgentId: string, sessionId?: string | null, isError?: boolean | null, hadTaskToolFail?: boolean | null, hadMcpToolFail?: boolean | null, status?: TaskAgentRunStatus, createdAfter?: string | null, createdBefore?: string | null, minDurationMs?: number | null, taskAgentRevisionId?: string | null, pageLimit?: number, cursor?: string | null, options?: any): AxiosPromise<PaginatedResultSetTaskAgentRunRead>;
|
|
30267
30319
|
/**
|
|
30268
30320
|
* List conversation sessions for a Task Agent. Sessions group related runs together for multi-turn conversations.
|
|
30269
30321
|
* @summary List Task Agent Sessions
|
|
@@ -30457,6 +30509,18 @@ export declare class TaskAgentsApi extends BaseAPI {
|
|
|
30457
30509
|
* @memberof TaskAgentsApi
|
|
30458
30510
|
*/
|
|
30459
30511
|
getTaskAgentRevision(orgId: string, projectId: string, taskAgentId: string, revisionId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TaskAgentRevisionRead, any, {}>>;
|
|
30512
|
+
/**
|
|
30513
|
+
* Get a single execution run for a Task Agent by run ID. Returns the same run metadata shape as the run listing endpoint, including status, token usage, files, tool invocation summaries, phase timings, fallback metadata, and model usage rows when available.
|
|
30514
|
+
* @summary Get Task Agent Run
|
|
30515
|
+
* @param {string} orgId The organization ID
|
|
30516
|
+
* @param {string} projectId The project ID
|
|
30517
|
+
* @param {string} taskAgentId The task agent ID
|
|
30518
|
+
* @param {string} runId The task agent run ID
|
|
30519
|
+
* @param {*} [options] Override http request option.
|
|
30520
|
+
* @throws {RequiredError}
|
|
30521
|
+
* @memberof TaskAgentsApi
|
|
30522
|
+
*/
|
|
30523
|
+
getTaskAgentRun(orgId: string, projectId: string, taskAgentId: string, runId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TaskAgentRunRead, any, {}>>;
|
|
30460
30524
|
/**
|
|
30461
30525
|
* 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 - Metadata-only memory compaction events, including token-threshold metadata when token-aware compaction was active - Error messages (if any) Events are returned in chronological order.
|
|
30462
30526
|
* @summary Get Run Events
|
|
@@ -30537,9 +30601,9 @@ export declare class TaskAgentsApi extends BaseAPI {
|
|
|
30537
30601
|
/**
|
|
30538
30602
|
* 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, tool execution, and memory compaction when applicable
|
|
30539
30603
|
* @summary List Task Agent Runs
|
|
30540
|
-
* @param {string} orgId The
|
|
30541
|
-
* @param {string} projectId The
|
|
30542
|
-
* @param {string} taskAgentId The
|
|
30604
|
+
* @param {string} orgId The organization ID
|
|
30605
|
+
* @param {string} projectId The project ID
|
|
30606
|
+
* @param {string} taskAgentId The task agent ID
|
|
30543
30607
|
* @param {string | null} [sessionId] Filter by session ID
|
|
30544
30608
|
* @param {boolean | null} [isError] Filter by run-level error status.
|
|
30545
30609
|
* @param {boolean | null} [hadTaskToolFail] Filter by whether any invoked task tool failed.
|
|
@@ -30549,13 +30613,13 @@ export declare class TaskAgentsApi extends BaseAPI {
|
|
|
30549
30613
|
* @param {string | null} [createdBefore] Filter runs created at/before this timestamp.
|
|
30550
30614
|
* @param {number | null} [minDurationMs] Filter runs with duration greater than or equal to this value.
|
|
30551
30615
|
* @param {string | null} [taskAgentRevisionId] Filter by TaskAgent revision ID.
|
|
30552
|
-
* @param {number} [
|
|
30553
|
-
* @param {
|
|
30616
|
+
* @param {number} [pageLimit] The maximum number of items to return per page. Defaults to `100` if not specified.
|
|
30617
|
+
* @param {string | null} [cursor] A cursor for pagination. Use the `next_cursor` value from the previous response to get the next page of results.
|
|
30554
30618
|
* @param {*} [options] Override http request option.
|
|
30555
30619
|
* @throws {RequiredError}
|
|
30556
30620
|
* @memberof TaskAgentsApi
|
|
30557
30621
|
*/
|
|
30558
|
-
listTaskAgentRuns(orgId: string, projectId: string, taskAgentId: string, sessionId?: string | null, isError?: boolean | null, hadTaskToolFail?: boolean | null, hadMcpToolFail?: boolean | null, status?: TaskAgentRunStatus, createdAfter?: string | null, createdBefore?: string | null, minDurationMs?: number | null, taskAgentRevisionId?: string | null,
|
|
30622
|
+
listTaskAgentRuns(orgId: string, projectId: string, taskAgentId: string, sessionId?: string | null, isError?: boolean | null, hadTaskToolFail?: boolean | null, hadMcpToolFail?: boolean | null, status?: TaskAgentRunStatus, createdAfter?: string | null, createdBefore?: string | null, minDurationMs?: number | null, taskAgentRevisionId?: string | null, pageLimit?: number, cursor?: string | null, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PaginatedResultSetTaskAgentRunRead, any, {}>>;
|
|
30559
30623
|
/**
|
|
30560
30624
|
* List conversation sessions for a Task Agent. Sessions group related runs together for multi-turn conversations.
|
|
30561
30625
|
* @summary List Task Agent Sessions
|
package/dist/api.js
CHANGED
|
@@ -28326,6 +28326,61 @@ var TaskAgentsApiAxiosParamCreator = function (configuration) {
|
|
|
28326
28326
|
});
|
|
28327
28327
|
});
|
|
28328
28328
|
},
|
|
28329
|
+
/**
|
|
28330
|
+
* Get a single execution run for a Task Agent by run ID. Returns the same run metadata shape as the run listing endpoint, including status, token usage, files, tool invocation summaries, phase timings, fallback metadata, and model usage rows when available.
|
|
28331
|
+
* @summary Get Task Agent Run
|
|
28332
|
+
* @param {string} orgId The organization ID
|
|
28333
|
+
* @param {string} projectId The project ID
|
|
28334
|
+
* @param {string} taskAgentId The task agent ID
|
|
28335
|
+
* @param {string} runId The task agent run ID
|
|
28336
|
+
* @param {*} [options] Override http request option.
|
|
28337
|
+
* @throws {RequiredError}
|
|
28338
|
+
*/
|
|
28339
|
+
getTaskAgentRun: function (orgId, projectId, taskAgentId, runId, options) {
|
|
28340
|
+
if (options === void 0) { options = {}; }
|
|
28341
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
28342
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
28343
|
+
return __generator(this, function (_a) {
|
|
28344
|
+
switch (_a.label) {
|
|
28345
|
+
case 0:
|
|
28346
|
+
// verify required parameter 'orgId' is not null or undefined
|
|
28347
|
+
(0, common_1.assertParamExists)('getTaskAgentRun', 'orgId', orgId);
|
|
28348
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
28349
|
+
(0, common_1.assertParamExists)('getTaskAgentRun', 'projectId', projectId);
|
|
28350
|
+
// verify required parameter 'taskAgentId' is not null or undefined
|
|
28351
|
+
(0, common_1.assertParamExists)('getTaskAgentRun', 'taskAgentId', taskAgentId);
|
|
28352
|
+
// verify required parameter 'runId' is not null or undefined
|
|
28353
|
+
(0, common_1.assertParamExists)('getTaskAgentRun', 'runId', runId);
|
|
28354
|
+
localVarPath = "/org/{org_id}/project/{project_id}/task-agent/{task_agent_id}/run/{run_id}"
|
|
28355
|
+
.replace("{".concat("org_id", "}"), encodeURIComponent(String(orgId)))
|
|
28356
|
+
.replace("{".concat("project_id", "}"), encodeURIComponent(String(projectId)))
|
|
28357
|
+
.replace("{".concat("task_agent_id", "}"), encodeURIComponent(String(taskAgentId)))
|
|
28358
|
+
.replace("{".concat("run_id", "}"), encodeURIComponent(String(runId)));
|
|
28359
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
28360
|
+
if (configuration) {
|
|
28361
|
+
baseOptions = configuration.baseOptions;
|
|
28362
|
+
}
|
|
28363
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
28364
|
+
localVarHeaderParameter = {};
|
|
28365
|
+
localVarQueryParameter = {};
|
|
28366
|
+
// authentication HTTPBearer required
|
|
28367
|
+
// http bearer authentication required
|
|
28368
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
28369
|
+
case 1:
|
|
28370
|
+
// authentication HTTPBearer required
|
|
28371
|
+
// http bearer authentication required
|
|
28372
|
+
_a.sent();
|
|
28373
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
28374
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
28375
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
28376
|
+
return [2 /*return*/, {
|
|
28377
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
28378
|
+
options: localVarRequestOptions,
|
|
28379
|
+
}];
|
|
28380
|
+
}
|
|
28381
|
+
});
|
|
28382
|
+
});
|
|
28383
|
+
},
|
|
28329
28384
|
/**
|
|
28330
28385
|
* 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 - Metadata-only memory compaction events, including token-threshold metadata when token-aware compaction was active - Error messages (if any) Events are returned in chronological order.
|
|
28331
28386
|
* @summary Get Run Events
|
|
@@ -28679,9 +28734,9 @@ var TaskAgentsApiAxiosParamCreator = function (configuration) {
|
|
|
28679
28734
|
/**
|
|
28680
28735
|
* 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, tool execution, and memory compaction when applicable
|
|
28681
28736
|
* @summary List Task Agent Runs
|
|
28682
|
-
* @param {string} orgId The
|
|
28683
|
-
* @param {string} projectId The
|
|
28684
|
-
* @param {string} taskAgentId The
|
|
28737
|
+
* @param {string} orgId The organization ID
|
|
28738
|
+
* @param {string} projectId The project ID
|
|
28739
|
+
* @param {string} taskAgentId The task agent ID
|
|
28685
28740
|
* @param {string | null} [sessionId] Filter by session ID
|
|
28686
28741
|
* @param {boolean | null} [isError] Filter by run-level error status.
|
|
28687
28742
|
* @param {boolean | null} [hadTaskToolFail] Filter by whether any invoked task tool failed.
|
|
@@ -28691,12 +28746,12 @@ var TaskAgentsApiAxiosParamCreator = function (configuration) {
|
|
|
28691
28746
|
* @param {string | null} [createdBefore] Filter runs created at/before this timestamp.
|
|
28692
28747
|
* @param {number | null} [minDurationMs] Filter runs with duration greater than or equal to this value.
|
|
28693
28748
|
* @param {string | null} [taskAgentRevisionId] Filter by TaskAgent revision ID.
|
|
28694
|
-
* @param {number} [
|
|
28695
|
-
* @param {
|
|
28749
|
+
* @param {number} [pageLimit] The maximum number of items to return per page. Defaults to `100` if not specified.
|
|
28750
|
+
* @param {string | null} [cursor] A cursor for pagination. Use the `next_cursor` value from the previous response to get the next page of results.
|
|
28696
28751
|
* @param {*} [options] Override http request option.
|
|
28697
28752
|
* @throws {RequiredError}
|
|
28698
28753
|
*/
|
|
28699
|
-
listTaskAgentRuns: function (orgId, projectId, taskAgentId, sessionId, isError, hadTaskToolFail, hadMcpToolFail, status, createdAfter, createdBefore, minDurationMs, taskAgentRevisionId,
|
|
28754
|
+
listTaskAgentRuns: function (orgId, projectId, taskAgentId, sessionId, isError, hadTaskToolFail, hadMcpToolFail, status, createdAfter, createdBefore, minDurationMs, taskAgentRevisionId, pageLimit, cursor, options) {
|
|
28700
28755
|
if (options === void 0) { options = {}; }
|
|
28701
28756
|
return __awaiter(_this, void 0, void 0, function () {
|
|
28702
28757
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -28758,11 +28813,11 @@ var TaskAgentsApiAxiosParamCreator = function (configuration) {
|
|
|
28758
28813
|
if (taskAgentRevisionId !== undefined) {
|
|
28759
28814
|
localVarQueryParameter['task_agent_revision_id'] = taskAgentRevisionId;
|
|
28760
28815
|
}
|
|
28761
|
-
if (
|
|
28762
|
-
localVarQueryParameter['
|
|
28816
|
+
if (pageLimit !== undefined) {
|
|
28817
|
+
localVarQueryParameter['page_limit'] = pageLimit;
|
|
28763
28818
|
}
|
|
28764
|
-
if (
|
|
28765
|
-
localVarQueryParameter['
|
|
28819
|
+
if (cursor !== undefined) {
|
|
28820
|
+
localVarQueryParameter['cursor'] = cursor;
|
|
28766
28821
|
}
|
|
28767
28822
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
28768
28823
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -29437,6 +29492,32 @@ var TaskAgentsApiFp = function (configuration) {
|
|
|
29437
29492
|
});
|
|
29438
29493
|
});
|
|
29439
29494
|
},
|
|
29495
|
+
/**
|
|
29496
|
+
* Get a single execution run for a Task Agent by run ID. Returns the same run metadata shape as the run listing endpoint, including status, token usage, files, tool invocation summaries, phase timings, fallback metadata, and model usage rows when available.
|
|
29497
|
+
* @summary Get Task Agent Run
|
|
29498
|
+
* @param {string} orgId The organization ID
|
|
29499
|
+
* @param {string} projectId The project ID
|
|
29500
|
+
* @param {string} taskAgentId The task agent ID
|
|
29501
|
+
* @param {string} runId The task agent run ID
|
|
29502
|
+
* @param {*} [options] Override http request option.
|
|
29503
|
+
* @throws {RequiredError}
|
|
29504
|
+
*/
|
|
29505
|
+
getTaskAgentRun: function (orgId, projectId, taskAgentId, runId, options) {
|
|
29506
|
+
var _a, _b, _c;
|
|
29507
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
29508
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
29509
|
+
return __generator(this, function (_d) {
|
|
29510
|
+
switch (_d.label) {
|
|
29511
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getTaskAgentRun(orgId, projectId, taskAgentId, runId, options)];
|
|
29512
|
+
case 1:
|
|
29513
|
+
localVarAxiosArgs = _d.sent();
|
|
29514
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
29515
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TaskAgentsApi.getTaskAgentRun']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
29516
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
29517
|
+
}
|
|
29518
|
+
});
|
|
29519
|
+
});
|
|
29520
|
+
},
|
|
29440
29521
|
/**
|
|
29441
29522
|
* 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 - Metadata-only memory compaction events, including token-threshold metadata when token-aware compaction was active - Error messages (if any) Events are returned in chronological order.
|
|
29442
29523
|
* @summary Get Run Events
|
|
@@ -29601,9 +29682,9 @@ var TaskAgentsApiFp = function (configuration) {
|
|
|
29601
29682
|
/**
|
|
29602
29683
|
* 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, tool execution, and memory compaction when applicable
|
|
29603
29684
|
* @summary List Task Agent Runs
|
|
29604
|
-
* @param {string} orgId The
|
|
29605
|
-
* @param {string} projectId The
|
|
29606
|
-
* @param {string} taskAgentId The
|
|
29685
|
+
* @param {string} orgId The organization ID
|
|
29686
|
+
* @param {string} projectId The project ID
|
|
29687
|
+
* @param {string} taskAgentId The task agent ID
|
|
29607
29688
|
* @param {string | null} [sessionId] Filter by session ID
|
|
29608
29689
|
* @param {boolean | null} [isError] Filter by run-level error status.
|
|
29609
29690
|
* @param {boolean | null} [hadTaskToolFail] Filter by whether any invoked task tool failed.
|
|
@@ -29613,18 +29694,18 @@ var TaskAgentsApiFp = function (configuration) {
|
|
|
29613
29694
|
* @param {string | null} [createdBefore] Filter runs created at/before this timestamp.
|
|
29614
29695
|
* @param {number | null} [minDurationMs] Filter runs with duration greater than or equal to this value.
|
|
29615
29696
|
* @param {string | null} [taskAgentRevisionId] Filter by TaskAgent revision ID.
|
|
29616
|
-
* @param {number} [
|
|
29617
|
-
* @param {
|
|
29697
|
+
* @param {number} [pageLimit] The maximum number of items to return per page. Defaults to `100` if not specified.
|
|
29698
|
+
* @param {string | null} [cursor] A cursor for pagination. Use the `next_cursor` value from the previous response to get the next page of results.
|
|
29618
29699
|
* @param {*} [options] Override http request option.
|
|
29619
29700
|
* @throws {RequiredError}
|
|
29620
29701
|
*/
|
|
29621
|
-
listTaskAgentRuns: function (orgId, projectId, taskAgentId, sessionId, isError, hadTaskToolFail, hadMcpToolFail, status, createdAfter, createdBefore, minDurationMs, taskAgentRevisionId,
|
|
29702
|
+
listTaskAgentRuns: function (orgId, projectId, taskAgentId, sessionId, isError, hadTaskToolFail, hadMcpToolFail, status, createdAfter, createdBefore, minDurationMs, taskAgentRevisionId, pageLimit, cursor, options) {
|
|
29622
29703
|
var _a, _b, _c;
|
|
29623
29704
|
return __awaiter(this, void 0, void 0, function () {
|
|
29624
29705
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
29625
29706
|
return __generator(this, function (_d) {
|
|
29626
29707
|
switch (_d.label) {
|
|
29627
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listTaskAgentRuns(orgId, projectId, taskAgentId, sessionId, isError, hadTaskToolFail, hadMcpToolFail, status, createdAfter, createdBefore, minDurationMs, taskAgentRevisionId,
|
|
29708
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listTaskAgentRuns(orgId, projectId, taskAgentId, sessionId, isError, hadTaskToolFail, hadMcpToolFail, status, createdAfter, createdBefore, minDurationMs, taskAgentRevisionId, pageLimit, cursor, options)];
|
|
29628
29709
|
case 1:
|
|
29629
29710
|
localVarAxiosArgs = _d.sent();
|
|
29630
29711
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
@@ -29957,6 +30038,19 @@ var TaskAgentsApiFactory = function (configuration, basePath, axios) {
|
|
|
29957
30038
|
getTaskAgentRevision: function (orgId, projectId, taskAgentId, revisionId, options) {
|
|
29958
30039
|
return localVarFp.getTaskAgentRevision(orgId, projectId, taskAgentId, revisionId, options).then(function (request) { return request(axios, basePath); });
|
|
29959
30040
|
},
|
|
30041
|
+
/**
|
|
30042
|
+
* Get a single execution run for a Task Agent by run ID. Returns the same run metadata shape as the run listing endpoint, including status, token usage, files, tool invocation summaries, phase timings, fallback metadata, and model usage rows when available.
|
|
30043
|
+
* @summary Get Task Agent Run
|
|
30044
|
+
* @param {string} orgId The organization ID
|
|
30045
|
+
* @param {string} projectId The project ID
|
|
30046
|
+
* @param {string} taskAgentId The task agent ID
|
|
30047
|
+
* @param {string} runId The task agent run ID
|
|
30048
|
+
* @param {*} [options] Override http request option.
|
|
30049
|
+
* @throws {RequiredError}
|
|
30050
|
+
*/
|
|
30051
|
+
getTaskAgentRun: function (orgId, projectId, taskAgentId, runId, options) {
|
|
30052
|
+
return localVarFp.getTaskAgentRun(orgId, projectId, taskAgentId, runId, options).then(function (request) { return request(axios, basePath); });
|
|
30053
|
+
},
|
|
29960
30054
|
/**
|
|
29961
30055
|
* 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 - Metadata-only memory compaction events, including token-threshold metadata when token-aware compaction was active - Error messages (if any) Events are returned in chronological order.
|
|
29962
30056
|
* @summary Get Run Events
|
|
@@ -30043,9 +30137,9 @@ var TaskAgentsApiFactory = function (configuration, basePath, axios) {
|
|
|
30043
30137
|
/**
|
|
30044
30138
|
* 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, tool execution, and memory compaction when applicable
|
|
30045
30139
|
* @summary List Task Agent Runs
|
|
30046
|
-
* @param {string} orgId The
|
|
30047
|
-
* @param {string} projectId The
|
|
30048
|
-
* @param {string} taskAgentId The
|
|
30140
|
+
* @param {string} orgId The organization ID
|
|
30141
|
+
* @param {string} projectId The project ID
|
|
30142
|
+
* @param {string} taskAgentId The task agent ID
|
|
30049
30143
|
* @param {string | null} [sessionId] Filter by session ID
|
|
30050
30144
|
* @param {boolean | null} [isError] Filter by run-level error status.
|
|
30051
30145
|
* @param {boolean | null} [hadTaskToolFail] Filter by whether any invoked task tool failed.
|
|
@@ -30055,13 +30149,13 @@ var TaskAgentsApiFactory = function (configuration, basePath, axios) {
|
|
|
30055
30149
|
* @param {string | null} [createdBefore] Filter runs created at/before this timestamp.
|
|
30056
30150
|
* @param {number | null} [minDurationMs] Filter runs with duration greater than or equal to this value.
|
|
30057
30151
|
* @param {string | null} [taskAgentRevisionId] Filter by TaskAgent revision ID.
|
|
30058
|
-
* @param {number} [
|
|
30059
|
-
* @param {
|
|
30152
|
+
* @param {number} [pageLimit] The maximum number of items to return per page. Defaults to `100` if not specified.
|
|
30153
|
+
* @param {string | null} [cursor] A cursor for pagination. Use the `next_cursor` value from the previous response to get the next page of results.
|
|
30060
30154
|
* @param {*} [options] Override http request option.
|
|
30061
30155
|
* @throws {RequiredError}
|
|
30062
30156
|
*/
|
|
30063
|
-
listTaskAgentRuns: function (orgId, projectId, taskAgentId, sessionId, isError, hadTaskToolFail, hadMcpToolFail, status, createdAfter, createdBefore, minDurationMs, taskAgentRevisionId,
|
|
30064
|
-
return localVarFp.listTaskAgentRuns(orgId, projectId, taskAgentId, sessionId, isError, hadTaskToolFail, hadMcpToolFail, status, createdAfter, createdBefore, minDurationMs, taskAgentRevisionId,
|
|
30157
|
+
listTaskAgentRuns: function (orgId, projectId, taskAgentId, sessionId, isError, hadTaskToolFail, hadMcpToolFail, status, createdAfter, createdBefore, minDurationMs, taskAgentRevisionId, pageLimit, cursor, options) {
|
|
30158
|
+
return localVarFp.listTaskAgentRuns(orgId, projectId, taskAgentId, sessionId, isError, hadTaskToolFail, hadMcpToolFail, status, createdAfter, createdBefore, minDurationMs, taskAgentRevisionId, pageLimit, cursor, options).then(function (request) { return request(axios, basePath); });
|
|
30065
30159
|
},
|
|
30066
30160
|
/**
|
|
30067
30161
|
* List conversation sessions for a Task Agent. Sessions group related runs together for multi-turn conversations.
|
|
@@ -30302,6 +30396,21 @@ var TaskAgentsApi = /** @class */ (function (_super) {
|
|
|
30302
30396
|
var _this = this;
|
|
30303
30397
|
return (0, exports.TaskAgentsApiFp)(this.configuration).getTaskAgentRevision(orgId, projectId, taskAgentId, revisionId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
30304
30398
|
};
|
|
30399
|
+
/**
|
|
30400
|
+
* Get a single execution run for a Task Agent by run ID. Returns the same run metadata shape as the run listing endpoint, including status, token usage, files, tool invocation summaries, phase timings, fallback metadata, and model usage rows when available.
|
|
30401
|
+
* @summary Get Task Agent Run
|
|
30402
|
+
* @param {string} orgId The organization ID
|
|
30403
|
+
* @param {string} projectId The project ID
|
|
30404
|
+
* @param {string} taskAgentId The task agent ID
|
|
30405
|
+
* @param {string} runId The task agent run ID
|
|
30406
|
+
* @param {*} [options] Override http request option.
|
|
30407
|
+
* @throws {RequiredError}
|
|
30408
|
+
* @memberof TaskAgentsApi
|
|
30409
|
+
*/
|
|
30410
|
+
TaskAgentsApi.prototype.getTaskAgentRun = function (orgId, projectId, taskAgentId, runId, options) {
|
|
30411
|
+
var _this = this;
|
|
30412
|
+
return (0, exports.TaskAgentsApiFp)(this.configuration).getTaskAgentRun(orgId, projectId, taskAgentId, runId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
30413
|
+
};
|
|
30305
30414
|
/**
|
|
30306
30415
|
* 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 - Metadata-only memory compaction events, including token-threshold metadata when token-aware compaction was active - Error messages (if any) Events are returned in chronological order.
|
|
30307
30416
|
* @summary Get Run Events
|
|
@@ -30400,9 +30509,9 @@ var TaskAgentsApi = /** @class */ (function (_super) {
|
|
|
30400
30509
|
/**
|
|
30401
30510
|
* 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, tool execution, and memory compaction when applicable
|
|
30402
30511
|
* @summary List Task Agent Runs
|
|
30403
|
-
* @param {string} orgId The
|
|
30404
|
-
* @param {string} projectId The
|
|
30405
|
-
* @param {string} taskAgentId The
|
|
30512
|
+
* @param {string} orgId The organization ID
|
|
30513
|
+
* @param {string} projectId The project ID
|
|
30514
|
+
* @param {string} taskAgentId The task agent ID
|
|
30406
30515
|
* @param {string | null} [sessionId] Filter by session ID
|
|
30407
30516
|
* @param {boolean | null} [isError] Filter by run-level error status.
|
|
30408
30517
|
* @param {boolean | null} [hadTaskToolFail] Filter by whether any invoked task tool failed.
|
|
@@ -30412,15 +30521,15 @@ var TaskAgentsApi = /** @class */ (function (_super) {
|
|
|
30412
30521
|
* @param {string | null} [createdBefore] Filter runs created at/before this timestamp.
|
|
30413
30522
|
* @param {number | null} [minDurationMs] Filter runs with duration greater than or equal to this value.
|
|
30414
30523
|
* @param {string | null} [taskAgentRevisionId] Filter by TaskAgent revision ID.
|
|
30415
|
-
* @param {number} [
|
|
30416
|
-
* @param {
|
|
30524
|
+
* @param {number} [pageLimit] The maximum number of items to return per page. Defaults to `100` if not specified.
|
|
30525
|
+
* @param {string | null} [cursor] A cursor for pagination. Use the `next_cursor` value from the previous response to get the next page of results.
|
|
30417
30526
|
* @param {*} [options] Override http request option.
|
|
30418
30527
|
* @throws {RequiredError}
|
|
30419
30528
|
* @memberof TaskAgentsApi
|
|
30420
30529
|
*/
|
|
30421
|
-
TaskAgentsApi.prototype.listTaskAgentRuns = function (orgId, projectId, taskAgentId, sessionId, isError, hadTaskToolFail, hadMcpToolFail, status, createdAfter, createdBefore, minDurationMs, taskAgentRevisionId,
|
|
30530
|
+
TaskAgentsApi.prototype.listTaskAgentRuns = function (orgId, projectId, taskAgentId, sessionId, isError, hadTaskToolFail, hadMcpToolFail, status, createdAfter, createdBefore, minDurationMs, taskAgentRevisionId, pageLimit, cursor, options) {
|
|
30422
30531
|
var _this = this;
|
|
30423
|
-
return (0, exports.TaskAgentsApiFp)(this.configuration).listTaskAgentRuns(orgId, projectId, taskAgentId, sessionId, isError, hadTaskToolFail, hadMcpToolFail, status, createdAfter, createdBefore, minDurationMs, taskAgentRevisionId,
|
|
30532
|
+
return (0, exports.TaskAgentsApiFp)(this.configuration).listTaskAgentRuns(orgId, projectId, taskAgentId, sessionId, isError, hadTaskToolFail, hadMcpToolFail, status, createdAfter, createdBefore, minDurationMs, taskAgentRevisionId, pageLimit, cursor, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
30424
30533
|
};
|
|
30425
30534
|
/**
|
|
30426
30535
|
* List conversation sessions for a Task Agent. Sessions group related runs together for multi-turn conversations.
|