@rightbrain/brain-api-client 0.0.1-dev.161.7a799c0 → 0.0.1-dev.163.9b78732
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 +150 -31
- package/dist/api.d.ts +94 -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
|
|
@@ -12460,6 +12479,12 @@ export interface TaskAgentEvent {
|
|
|
12460
12479
|
* @memberof TaskAgentEvent
|
|
12461
12480
|
*/
|
|
12462
12481
|
'tool_results'?: Array<ToolResultInfo> | null;
|
|
12482
|
+
/**
|
|
12483
|
+
* Files uploaded with this user message. Populated only for user_message events.
|
|
12484
|
+
* @type {Array<TaskAgentFileMetadata>}
|
|
12485
|
+
* @memberof TaskAgentEvent
|
|
12486
|
+
*/
|
|
12487
|
+
'files'?: Array<TaskAgentFileMetadata>;
|
|
12463
12488
|
/**
|
|
12464
12489
|
* Error message if event_type is error.
|
|
12465
12490
|
* @type {string}
|
|
@@ -41447,6 +41472,56 @@ export const TaskAgentsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
41447
41472
|
|
|
41448
41473
|
|
|
41449
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
|
+
|
|
41450
41525
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
41451
41526
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
41452
41527
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -41788,9 +41863,9 @@ export const TaskAgentsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
41788
41863
|
/**
|
|
41789
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
|
|
41790
41865
|
* @summary List Task Agent Runs
|
|
41791
|
-
* @param {string} orgId The
|
|
41792
|
-
* @param {string} projectId The
|
|
41793
|
-
* @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
|
|
41794
41869
|
* @param {string | null} [sessionId] Filter by session ID
|
|
41795
41870
|
* @param {boolean | null} [isError] Filter by run-level error status.
|
|
41796
41871
|
* @param {boolean | null} [hadTaskToolFail] Filter by whether any invoked task tool failed.
|
|
@@ -41800,12 +41875,12 @@ export const TaskAgentsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
41800
41875
|
* @param {string | null} [createdBefore] Filter runs created at/before this timestamp.
|
|
41801
41876
|
* @param {number | null} [minDurationMs] Filter runs with duration greater than or equal to this value.
|
|
41802
41877
|
* @param {string | null} [taskAgentRevisionId] Filter by TaskAgent revision ID.
|
|
41803
|
-
* @param {number} [
|
|
41804
|
-
* @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.
|
|
41805
41880
|
* @param {*} [options] Override http request option.
|
|
41806
41881
|
* @throws {RequiredError}
|
|
41807
41882
|
*/
|
|
41808
|
-
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> => {
|
|
41809
41884
|
// verify required parameter 'orgId' is not null or undefined
|
|
41810
41885
|
assertParamExists('listTaskAgentRuns', 'orgId', orgId)
|
|
41811
41886
|
// verify required parameter 'projectId' is not null or undefined
|
|
@@ -41871,12 +41946,12 @@ export const TaskAgentsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
41871
41946
|
localVarQueryParameter['task_agent_revision_id'] = taskAgentRevisionId;
|
|
41872
41947
|
}
|
|
41873
41948
|
|
|
41874
|
-
if (
|
|
41875
|
-
localVarQueryParameter['
|
|
41949
|
+
if (pageLimit !== undefined) {
|
|
41950
|
+
localVarQueryParameter['page_limit'] = pageLimit;
|
|
41876
41951
|
}
|
|
41877
41952
|
|
|
41878
|
-
if (
|
|
41879
|
-
localVarQueryParameter['
|
|
41953
|
+
if (cursor !== undefined) {
|
|
41954
|
+
localVarQueryParameter['cursor'] = cursor;
|
|
41880
41955
|
}
|
|
41881
41956
|
|
|
41882
41957
|
|
|
@@ -42439,6 +42514,22 @@ export const TaskAgentsApiFp = function(configuration?: Configuration) {
|
|
|
42439
42514
|
const localVarOperationServerBasePath = operationServerMap['TaskAgentsApi.getTaskAgentRevision']?.[localVarOperationServerIndex]?.url;
|
|
42440
42515
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
42441
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
|
+
},
|
|
42442
42533
|
/**
|
|
42443
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.
|
|
42444
42535
|
* @summary Get Run Events
|
|
@@ -42543,9 +42634,9 @@ export const TaskAgentsApiFp = function(configuration?: Configuration) {
|
|
|
42543
42634
|
/**
|
|
42544
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
|
|
42545
42636
|
* @summary List Task Agent Runs
|
|
42546
|
-
* @param {string} orgId The
|
|
42547
|
-
* @param {string} projectId The
|
|
42548
|
-
* @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
|
|
42549
42640
|
* @param {string | null} [sessionId] Filter by session ID
|
|
42550
42641
|
* @param {boolean | null} [isError] Filter by run-level error status.
|
|
42551
42642
|
* @param {boolean | null} [hadTaskToolFail] Filter by whether any invoked task tool failed.
|
|
@@ -42555,13 +42646,13 @@ export const TaskAgentsApiFp = function(configuration?: Configuration) {
|
|
|
42555
42646
|
* @param {string | null} [createdBefore] Filter runs created at/before this timestamp.
|
|
42556
42647
|
* @param {number | null} [minDurationMs] Filter runs with duration greater than or equal to this value.
|
|
42557
42648
|
* @param {string | null} [taskAgentRevisionId] Filter by TaskAgent revision ID.
|
|
42558
|
-
* @param {number} [
|
|
42559
|
-
* @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.
|
|
42560
42651
|
* @param {*} [options] Override http request option.
|
|
42561
42652
|
* @throws {RequiredError}
|
|
42562
42653
|
*/
|
|
42563
|
-
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,
|
|
42564
|
-
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);
|
|
42565
42656
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
42566
42657
|
const localVarOperationServerBasePath = operationServerMap['TaskAgentsApi.listTaskAgentRuns']?.[localVarOperationServerIndex]?.url;
|
|
42567
42658
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -42809,6 +42900,19 @@ export const TaskAgentsApiFactory = function (configuration?: Configuration, bas
|
|
|
42809
42900
|
getTaskAgentRevision(orgId: string, projectId: string, taskAgentId: string, revisionId: string, options?: any): AxiosPromise<TaskAgentRevisionRead> {
|
|
42810
42901
|
return localVarFp.getTaskAgentRevision(orgId, projectId, taskAgentId, revisionId, options).then((request) => request(axios, basePath));
|
|
42811
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
|
+
},
|
|
42812
42916
|
/**
|
|
42813
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.
|
|
42814
42918
|
* @summary Get Run Events
|
|
@@ -42895,9 +42999,9 @@ export const TaskAgentsApiFactory = function (configuration?: Configuration, bas
|
|
|
42895
42999
|
/**
|
|
42896
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
|
|
42897
43001
|
* @summary List Task Agent Runs
|
|
42898
|
-
* @param {string} orgId The
|
|
42899
|
-
* @param {string} projectId The
|
|
42900
|
-
* @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
|
|
42901
43005
|
* @param {string | null} [sessionId] Filter by session ID
|
|
42902
43006
|
* @param {boolean | null} [isError] Filter by run-level error status.
|
|
42903
43007
|
* @param {boolean | null} [hadTaskToolFail] Filter by whether any invoked task tool failed.
|
|
@@ -42907,13 +43011,13 @@ export const TaskAgentsApiFactory = function (configuration?: Configuration, bas
|
|
|
42907
43011
|
* @param {string | null} [createdBefore] Filter runs created at/before this timestamp.
|
|
42908
43012
|
* @param {number | null} [minDurationMs] Filter runs with duration greater than or equal to this value.
|
|
42909
43013
|
* @param {string | null} [taskAgentRevisionId] Filter by TaskAgent revision ID.
|
|
42910
|
-
* @param {number} [
|
|
42911
|
-
* @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.
|
|
42912
43016
|
* @param {*} [options] Override http request option.
|
|
42913
43017
|
* @throws {RequiredError}
|
|
42914
43018
|
*/
|
|
42915
|
-
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,
|
|
42916
|
-
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));
|
|
42917
43021
|
},
|
|
42918
43022
|
/**
|
|
42919
43023
|
* List conversation sessions for a Task Agent. Sessions group related runs together for multi-turn conversations.
|
|
@@ -43150,6 +43254,21 @@ export class TaskAgentsApi extends BaseAPI {
|
|
|
43150
43254
|
return TaskAgentsApiFp(this.configuration).getTaskAgentRevision(orgId, projectId, taskAgentId, revisionId, options).then((request) => request(this.axios, this.basePath));
|
|
43151
43255
|
}
|
|
43152
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
|
+
|
|
43153
43272
|
/**
|
|
43154
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.
|
|
43155
43274
|
* @summary Get Run Events
|
|
@@ -43248,9 +43367,9 @@ export class TaskAgentsApi extends BaseAPI {
|
|
|
43248
43367
|
/**
|
|
43249
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
|
|
43250
43369
|
* @summary List Task Agent Runs
|
|
43251
|
-
* @param {string} orgId The
|
|
43252
|
-
* @param {string} projectId The
|
|
43253
|
-
* @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
|
|
43254
43373
|
* @param {string | null} [sessionId] Filter by session ID
|
|
43255
43374
|
* @param {boolean | null} [isError] Filter by run-level error status.
|
|
43256
43375
|
* @param {boolean | null} [hadTaskToolFail] Filter by whether any invoked task tool failed.
|
|
@@ -43260,14 +43379,14 @@ export class TaskAgentsApi extends BaseAPI {
|
|
|
43260
43379
|
* @param {string | null} [createdBefore] Filter runs created at/before this timestamp.
|
|
43261
43380
|
* @param {number | null} [minDurationMs] Filter runs with duration greater than or equal to this value.
|
|
43262
43381
|
* @param {string | null} [taskAgentRevisionId] Filter by TaskAgent revision ID.
|
|
43263
|
-
* @param {number} [
|
|
43264
|
-
* @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.
|
|
43265
43384
|
* @param {*} [options] Override http request option.
|
|
43266
43385
|
* @throws {RequiredError}
|
|
43267
43386
|
* @memberof TaskAgentsApi
|
|
43268
43387
|
*/
|
|
43269
|
-
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,
|
|
43270
|
-
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));
|
|
43271
43390
|
}
|
|
43272
43391
|
|
|
43273
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
|
|
@@ -12971,6 +12990,12 @@ export interface TaskAgentEvent {
|
|
|
12971
12990
|
* @memberof TaskAgentEvent
|
|
12972
12991
|
*/
|
|
12973
12992
|
'tool_results'?: Array<ToolResultInfo> | null;
|
|
12993
|
+
/**
|
|
12994
|
+
* Files uploaded with this user message. Populated only for user_message events.
|
|
12995
|
+
* @type {Array<TaskAgentFileMetadata>}
|
|
12996
|
+
* @memberof TaskAgentEvent
|
|
12997
|
+
*/
|
|
12998
|
+
'files'?: Array<TaskAgentFileMetadata>;
|
|
12974
12999
|
/**
|
|
12975
13000
|
* Error message if event_type is error.
|
|
12976
13001
|
* @type {string}
|
|
@@ -29616,6 +29641,17 @@ export declare const TaskAgentsApiAxiosParamCreator: (configuration?: Configurat
|
|
|
29616
29641
|
* @throws {RequiredError}
|
|
29617
29642
|
*/
|
|
29618
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>;
|
|
29619
29655
|
/**
|
|
29620
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.
|
|
29621
29657
|
* @summary Get Run Events
|
|
@@ -29690,9 +29726,9 @@ export declare const TaskAgentsApiAxiosParamCreator: (configuration?: Configurat
|
|
|
29690
29726
|
/**
|
|
29691
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
|
|
29692
29728
|
* @summary List Task Agent Runs
|
|
29693
|
-
* @param {string} orgId The
|
|
29694
|
-
* @param {string} projectId The
|
|
29695
|
-
* @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
|
|
29696
29732
|
* @param {string | null} [sessionId] Filter by session ID
|
|
29697
29733
|
* @param {boolean | null} [isError] Filter by run-level error status.
|
|
29698
29734
|
* @param {boolean | null} [hadTaskToolFail] Filter by whether any invoked task tool failed.
|
|
@@ -29702,12 +29738,12 @@ export declare const TaskAgentsApiAxiosParamCreator: (configuration?: Configurat
|
|
|
29702
29738
|
* @param {string | null} [createdBefore] Filter runs created at/before this timestamp.
|
|
29703
29739
|
* @param {number | null} [minDurationMs] Filter runs with duration greater than or equal to this value.
|
|
29704
29740
|
* @param {string | null} [taskAgentRevisionId] Filter by TaskAgent revision ID.
|
|
29705
|
-
* @param {number} [
|
|
29706
|
-
* @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.
|
|
29707
29743
|
* @param {*} [options] Override http request option.
|
|
29708
29744
|
* @throws {RequiredError}
|
|
29709
29745
|
*/
|
|
29710
|
-
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>;
|
|
29711
29747
|
/**
|
|
29712
29748
|
* List conversation sessions for a Task Agent. Sessions group related runs together for multi-turn conversations.
|
|
29713
29749
|
* @summary List Task Agent Sessions
|
|
@@ -29891,6 +29927,17 @@ export declare const TaskAgentsApiFp: (configuration?: Configuration) => {
|
|
|
29891
29927
|
* @throws {RequiredError}
|
|
29892
29928
|
*/
|
|
29893
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>>;
|
|
29894
29941
|
/**
|
|
29895
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.
|
|
29896
29943
|
* @summary Get Run Events
|
|
@@ -29965,9 +30012,9 @@ export declare const TaskAgentsApiFp: (configuration?: Configuration) => {
|
|
|
29965
30012
|
/**
|
|
29966
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
|
|
29967
30014
|
* @summary List Task Agent Runs
|
|
29968
|
-
* @param {string} orgId The
|
|
29969
|
-
* @param {string} projectId The
|
|
29970
|
-
* @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
|
|
29971
30018
|
* @param {string | null} [sessionId] Filter by session ID
|
|
29972
30019
|
* @param {boolean | null} [isError] Filter by run-level error status.
|
|
29973
30020
|
* @param {boolean | null} [hadTaskToolFail] Filter by whether any invoked task tool failed.
|
|
@@ -29977,12 +30024,12 @@ export declare const TaskAgentsApiFp: (configuration?: Configuration) => {
|
|
|
29977
30024
|
* @param {string | null} [createdBefore] Filter runs created at/before this timestamp.
|
|
29978
30025
|
* @param {number | null} [minDurationMs] Filter runs with duration greater than or equal to this value.
|
|
29979
30026
|
* @param {string | null} [taskAgentRevisionId] Filter by TaskAgent revision ID.
|
|
29980
|
-
* @param {number} [
|
|
29981
|
-
* @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.
|
|
29982
30029
|
* @param {*} [options] Override http request option.
|
|
29983
30030
|
* @throws {RequiredError}
|
|
29984
30031
|
*/
|
|
29985
|
-
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>>;
|
|
29986
30033
|
/**
|
|
29987
30034
|
* List conversation sessions for a Task Agent. Sessions group related runs together for multi-turn conversations.
|
|
29988
30035
|
* @summary List Task Agent Sessions
|
|
@@ -30166,6 +30213,17 @@ export declare const TaskAgentsApiFactory: (configuration?: Configuration, baseP
|
|
|
30166
30213
|
* @throws {RequiredError}
|
|
30167
30214
|
*/
|
|
30168
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>;
|
|
30169
30227
|
/**
|
|
30170
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.
|
|
30171
30229
|
* @summary Get Run Events
|
|
@@ -30240,9 +30298,9 @@ export declare const TaskAgentsApiFactory: (configuration?: Configuration, baseP
|
|
|
30240
30298
|
/**
|
|
30241
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
|
|
30242
30300
|
* @summary List Task Agent Runs
|
|
30243
|
-
* @param {string} orgId The
|
|
30244
|
-
* @param {string} projectId The
|
|
30245
|
-
* @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
|
|
30246
30304
|
* @param {string | null} [sessionId] Filter by session ID
|
|
30247
30305
|
* @param {boolean | null} [isError] Filter by run-level error status.
|
|
30248
30306
|
* @param {boolean | null} [hadTaskToolFail] Filter by whether any invoked task tool failed.
|
|
@@ -30252,12 +30310,12 @@ export declare const TaskAgentsApiFactory: (configuration?: Configuration, baseP
|
|
|
30252
30310
|
* @param {string | null} [createdBefore] Filter runs created at/before this timestamp.
|
|
30253
30311
|
* @param {number | null} [minDurationMs] Filter runs with duration greater than or equal to this value.
|
|
30254
30312
|
* @param {string | null} [taskAgentRevisionId] Filter by TaskAgent revision ID.
|
|
30255
|
-
* @param {number} [
|
|
30256
|
-
* @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.
|
|
30257
30315
|
* @param {*} [options] Override http request option.
|
|
30258
30316
|
* @throws {RequiredError}
|
|
30259
30317
|
*/
|
|
30260
|
-
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>;
|
|
30261
30319
|
/**
|
|
30262
30320
|
* List conversation sessions for a Task Agent. Sessions group related runs together for multi-turn conversations.
|
|
30263
30321
|
* @summary List Task Agent Sessions
|
|
@@ -30451,6 +30509,18 @@ export declare class TaskAgentsApi extends BaseAPI {
|
|
|
30451
30509
|
* @memberof TaskAgentsApi
|
|
30452
30510
|
*/
|
|
30453
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, {}>>;
|
|
30454
30524
|
/**
|
|
30455
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.
|
|
30456
30526
|
* @summary Get Run Events
|
|
@@ -30531,9 +30601,9 @@ export declare class TaskAgentsApi extends BaseAPI {
|
|
|
30531
30601
|
/**
|
|
30532
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
|
|
30533
30603
|
* @summary List Task Agent Runs
|
|
30534
|
-
* @param {string} orgId The
|
|
30535
|
-
* @param {string} projectId The
|
|
30536
|
-
* @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
|
|
30537
30607
|
* @param {string | null} [sessionId] Filter by session ID
|
|
30538
30608
|
* @param {boolean | null} [isError] Filter by run-level error status.
|
|
30539
30609
|
* @param {boolean | null} [hadTaskToolFail] Filter by whether any invoked task tool failed.
|
|
@@ -30543,13 +30613,13 @@ export declare class TaskAgentsApi extends BaseAPI {
|
|
|
30543
30613
|
* @param {string | null} [createdBefore] Filter runs created at/before this timestamp.
|
|
30544
30614
|
* @param {number | null} [minDurationMs] Filter runs with duration greater than or equal to this value.
|
|
30545
30615
|
* @param {string | null} [taskAgentRevisionId] Filter by TaskAgent revision ID.
|
|
30546
|
-
* @param {number} [
|
|
30547
|
-
* @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.
|
|
30548
30618
|
* @param {*} [options] Override http request option.
|
|
30549
30619
|
* @throws {RequiredError}
|
|
30550
30620
|
* @memberof TaskAgentsApi
|
|
30551
30621
|
*/
|
|
30552
|
-
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, {}>>;
|
|
30553
30623
|
/**
|
|
30554
30624
|
* List conversation sessions for a Task Agent. Sessions group related runs together for multi-turn conversations.
|
|
30555
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.
|