@rightbrain/brain-api-client 0.0.1-dev.153.dd63698 → 0.0.1-dev.155.d611c62
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 +80 -13
- package/dist/api.d.ts +80 -12
- package/dist/api.js +24 -19
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -7079,6 +7079,48 @@ export interface PhaseTimingEntry {
|
|
|
7079
7079
|
* @memberof PhaseTimingEntry
|
|
7080
7080
|
*/
|
|
7081
7081
|
'integration_name'?: string | null;
|
|
7082
|
+
/**
|
|
7083
|
+
* Trigger for memory compaction phases.
|
|
7084
|
+
* @type {string}
|
|
7085
|
+
* @memberof PhaseTimingEntry
|
|
7086
|
+
*/
|
|
7087
|
+
'trigger'?: string | null;
|
|
7088
|
+
/**
|
|
7089
|
+
* ADK compaction event ID for memory compaction phases.
|
|
7090
|
+
* @type {string}
|
|
7091
|
+
* @memberof PhaseTimingEntry
|
|
7092
|
+
*/
|
|
7093
|
+
'compaction_event_id'?: string | null;
|
|
7094
|
+
/**
|
|
7095
|
+
* Input tokens used by the memory compaction summarizer.
|
|
7096
|
+
* @type {number}
|
|
7097
|
+
* @memberof PhaseTimingEntry
|
|
7098
|
+
*/
|
|
7099
|
+
'input_tokens'?: number | null;
|
|
7100
|
+
/**
|
|
7101
|
+
* Output tokens produced by the memory compaction summarizer.
|
|
7102
|
+
* @type {number}
|
|
7103
|
+
* @memberof PhaseTimingEntry
|
|
7104
|
+
*/
|
|
7105
|
+
'output_tokens'?: number | null;
|
|
7106
|
+
/**
|
|
7107
|
+
* Total tokens used by the memory compaction summarizer.
|
|
7108
|
+
* @type {number}
|
|
7109
|
+
* @memberof PhaseTimingEntry
|
|
7110
|
+
*/
|
|
7111
|
+
'total_tokens'?: number | null;
|
|
7112
|
+
/**
|
|
7113
|
+
* Configured token threshold for memory compaction phases.
|
|
7114
|
+
* @type {number}
|
|
7115
|
+
* @memberof PhaseTimingEntry
|
|
7116
|
+
*/
|
|
7117
|
+
'token_threshold'?: number | null;
|
|
7118
|
+
/**
|
|
7119
|
+
* Configured ADK event retention size for token compaction.
|
|
7120
|
+
* @type {number}
|
|
7121
|
+
* @memberof PhaseTimingEntry
|
|
7122
|
+
*/
|
|
7123
|
+
'event_retention_size'?: number | null;
|
|
7082
7124
|
}
|
|
7083
7125
|
|
|
7084
7126
|
export const PhaseTimingEntryPhaseEnum = {
|
|
@@ -7086,7 +7128,8 @@ export const PhaseTimingEntryPhaseEnum = {
|
|
|
7086
7128
|
TaskToolExecution: 'task_tool_execution',
|
|
7087
7129
|
McpToolExecution: 'mcp_tool_execution',
|
|
7088
7130
|
IntegrationToolExecution: 'integration_tool_execution',
|
|
7089
|
-
SkillActivation: 'skill_activation'
|
|
7131
|
+
SkillActivation: 'skill_activation',
|
|
7132
|
+
MemoryCompaction: 'memory_compaction'
|
|
7090
7133
|
} as const;
|
|
7091
7134
|
|
|
7092
7135
|
export type PhaseTimingEntryPhaseEnum = typeof PhaseTimingEntryPhaseEnum[keyof typeof PhaseTimingEntryPhaseEnum];
|
|
@@ -12220,6 +12263,12 @@ export interface TaskAgentEvent {
|
|
|
12220
12263
|
* @memberof TaskAgentEvent
|
|
12221
12264
|
*/
|
|
12222
12265
|
'error_message'?: string | null;
|
|
12266
|
+
/**
|
|
12267
|
+
* Event-specific metadata for system events such as memory compaction.
|
|
12268
|
+
* @type {{ [key: string]: any; }}
|
|
12269
|
+
* @memberof TaskAgentEvent
|
|
12270
|
+
*/
|
|
12271
|
+
'metadata'?: { [key: string]: any; } | null;
|
|
12223
12272
|
}
|
|
12224
12273
|
/**
|
|
12225
12274
|
* Extended file metadata for TaskAgent runs with provenance tracking. Inherits from TaskRunFileMetadata and adds fields to track whether a file was uploaded with the request or generated by a task tool.
|
|
@@ -12955,6 +13004,12 @@ export interface TaskAgentRunModelUsageRead {
|
|
|
12955
13004
|
* @memberof TaskAgentRunModelUsageRead
|
|
12956
13005
|
*/
|
|
12957
13006
|
'llm_model_id': string | null;
|
|
13007
|
+
/**
|
|
13008
|
+
*
|
|
13009
|
+
* @type {string}
|
|
13010
|
+
* @memberof TaskAgentRunModelUsageRead
|
|
13011
|
+
*/
|
|
13012
|
+
'usage_scope': TaskAgentRunModelUsageReadUsageScopeEnum;
|
|
12958
13013
|
/**
|
|
12959
13014
|
*
|
|
12960
13015
|
* @type {string}
|
|
@@ -13005,6 +13060,12 @@ export interface TaskAgentRunModelUsageRead {
|
|
|
13005
13060
|
'modified': string | null;
|
|
13006
13061
|
}
|
|
13007
13062
|
|
|
13063
|
+
export const TaskAgentRunModelUsageReadUsageScopeEnum = {
|
|
13064
|
+
Reasoning: 'reasoning',
|
|
13065
|
+
MemoryCompaction: 'memory_compaction'
|
|
13066
|
+
} as const;
|
|
13067
|
+
|
|
13068
|
+
export type TaskAgentRunModelUsageReadUsageScopeEnum = typeof TaskAgentRunModelUsageReadUsageScopeEnum[keyof typeof TaskAgentRunModelUsageReadUsageScopeEnum];
|
|
13008
13069
|
export const TaskAgentRunModelUsageReadUsageTypeEnum = {
|
|
13009
13070
|
Primary: 'primary',
|
|
13010
13071
|
Fallback: 'fallback'
|
|
@@ -17212,6 +17273,12 @@ export interface WebhookTriggerUpdate {
|
|
|
17212
17273
|
* @memberof WebhookTriggerUpdate
|
|
17213
17274
|
*/
|
|
17214
17275
|
'auth_config'?: { [key: string]: any; } | null;
|
|
17276
|
+
/**
|
|
17277
|
+
* Secret key for authentication (only shown on creation).
|
|
17278
|
+
* @type {string}
|
|
17279
|
+
* @memberof WebhookTriggerUpdate
|
|
17280
|
+
*/
|
|
17281
|
+
'auth_secret'?: string | null;
|
|
17215
17282
|
/**
|
|
17216
17283
|
* JSONPath mappings from webhook payload to Task inputs.
|
|
17217
17284
|
* @type {{ [key: string]: any; }}
|
|
@@ -41119,7 +41186,7 @@ export const TaskAgentsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
41119
41186
|
};
|
|
41120
41187
|
},
|
|
41121
41188
|
/**
|
|
41122
|
-
* Get conversation events for a specific TaskAgentRun. Returns the full conversation history from the ADK session including: - User messages - Agent responses - Tool calls and results - Error messages (if any) Events are returned in chronological order.
|
|
41189
|
+
* 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.
|
|
41123
41190
|
* @summary Get Run Events
|
|
41124
41191
|
* @param {string} orgId The unique identifier of the organization.
|
|
41125
41192
|
* @param {string} projectId The unique identifier of the project.
|
|
@@ -41448,7 +41515,7 @@ export const TaskAgentsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
41448
41515
|
};
|
|
41449
41516
|
},
|
|
41450
41517
|
/**
|
|
41451
|
-
* List execution runs for a Task Agent. Returns run history with: - Input message - Token usage - Status and duration - Task tools invoked - MCP tools invoked - Phase timings for LLM and
|
|
41518
|
+
* 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
|
|
41452
41519
|
* @summary List Task Agent Runs
|
|
41453
41520
|
* @param {string} orgId The unique identifier of the organization.
|
|
41454
41521
|
* @param {string} projectId The unique identifier of the project.
|
|
@@ -41651,7 +41718,7 @@ export const TaskAgentsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
41651
41718
|
};
|
|
41652
41719
|
},
|
|
41653
41720
|
/**
|
|
41654
|
-
* Execute the Task Agent with a user message. The agent will: 1. Process the message using the configured LLM 2. Reason about which task tools to invoke 3. Execute relevant Tasks as needed 4. Return a streaming response Responses are streamed using Server-Sent Events (SSE). The first SSE event emitted after successful stream setup is: - `event_type: \"session_id\"` with the resolved `session_id` in `metadata` Use `revision_id` to execute a specific TaskAgent revision. New sessions can run any revision belonging to the TaskAgent. Existing sessions remain pinned to their original revision; passing a conflicting `revision_id` is rejected. Subsequent events include tool calls/results, text responses, and the terminal `done` or `error` event.
|
|
41721
|
+
* Execute the Task Agent with a user message. The agent will: 1. Process the message using the configured LLM 2. Reason about which task tools to invoke 3. Execute relevant Tasks as needed 4. Return a streaming response Responses are streamed using Server-Sent Events (SSE). The first SSE event emitted after successful stream setup is: - `event_type: \"session_id\"` with the resolved `session_id` in `metadata` Use `revision_id` to execute a specific TaskAgent revision. New sessions can run any revision belonging to the TaskAgent. Existing sessions remain pinned to their original revision; passing a conflicting `revision_id` is rejected. Subsequent events include tool calls/results, text responses, metadata-only `memory_compaction` events when compaction memory runs, and the terminal `done` or `error` event. Compaction metadata may include token-threshold configuration such as `trigger: \"auto\"`, `token_threshold`, and `event_retention_size` when token-aware compaction is active.
|
|
41655
41722
|
* @summary Run Task Agent
|
|
41656
41723
|
* @param {string} orgId The unique identifier of the organization.
|
|
41657
41724
|
* @param {string} projectId The unique identifier of the project.
|
|
@@ -42102,7 +42169,7 @@ export const TaskAgentsApiFp = function(configuration?: Configuration) {
|
|
|
42102
42169
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
42103
42170
|
},
|
|
42104
42171
|
/**
|
|
42105
|
-
* Get conversation events for a specific TaskAgentRun. Returns the full conversation history from the ADK session including: - User messages - Agent responses - Tool calls and results - Error messages (if any) Events are returned in chronological order.
|
|
42172
|
+
* 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.
|
|
42106
42173
|
* @summary Get Run Events
|
|
42107
42174
|
* @param {string} orgId The unique identifier of the organization.
|
|
42108
42175
|
* @param {string} projectId The unique identifier of the project.
|
|
@@ -42203,7 +42270,7 @@ export const TaskAgentsApiFp = function(configuration?: Configuration) {
|
|
|
42203
42270
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
42204
42271
|
},
|
|
42205
42272
|
/**
|
|
42206
|
-
* List execution runs for a Task Agent. Returns run history with: - Input message - Token usage - Status and duration - Task tools invoked - MCP tools invoked - Phase timings for LLM and
|
|
42273
|
+
* 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
|
|
42207
42274
|
* @summary List Task Agent Runs
|
|
42208
42275
|
* @param {string} orgId The unique identifier of the organization.
|
|
42209
42276
|
* @param {string} projectId The unique identifier of the project.
|
|
@@ -42260,7 +42327,7 @@ export const TaskAgentsApiFp = function(configuration?: Configuration) {
|
|
|
42260
42327
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
42261
42328
|
},
|
|
42262
42329
|
/**
|
|
42263
|
-
* Execute the Task Agent with a user message. The agent will: 1. Process the message using the configured LLM 2. Reason about which task tools to invoke 3. Execute relevant Tasks as needed 4. Return a streaming response Responses are streamed using Server-Sent Events (SSE). The first SSE event emitted after successful stream setup is: - `event_type: \"session_id\"` with the resolved `session_id` in `metadata` Use `revision_id` to execute a specific TaskAgent revision. New sessions can run any revision belonging to the TaskAgent. Existing sessions remain pinned to their original revision; passing a conflicting `revision_id` is rejected. Subsequent events include tool calls/results, text responses, and the terminal `done` or `error` event.
|
|
42330
|
+
* Execute the Task Agent with a user message. The agent will: 1. Process the message using the configured LLM 2. Reason about which task tools to invoke 3. Execute relevant Tasks as needed 4. Return a streaming response Responses are streamed using Server-Sent Events (SSE). The first SSE event emitted after successful stream setup is: - `event_type: \"session_id\"` with the resolved `session_id` in `metadata` Use `revision_id` to execute a specific TaskAgent revision. New sessions can run any revision belonging to the TaskAgent. Existing sessions remain pinned to their original revision; passing a conflicting `revision_id` is rejected. Subsequent events include tool calls/results, text responses, metadata-only `memory_compaction` events when compaction memory runs, and the terminal `done` or `error` event. Compaction metadata may include token-threshold configuration such as `trigger: \"auto\"`, `token_threshold`, and `event_retention_size` when token-aware compaction is active.
|
|
42264
42331
|
* @summary Run Task Agent
|
|
42265
42332
|
* @param {string} orgId The unique identifier of the organization.
|
|
42266
42333
|
* @param {string} projectId The unique identifier of the project.
|
|
@@ -42472,7 +42539,7 @@ export const TaskAgentsApiFactory = function (configuration?: Configuration, bas
|
|
|
42472
42539
|
return localVarFp.getTaskAgentRevision(orgId, projectId, taskAgentId, revisionId, options).then((request) => request(axios, basePath));
|
|
42473
42540
|
},
|
|
42474
42541
|
/**
|
|
42475
|
-
* Get conversation events for a specific TaskAgentRun. Returns the full conversation history from the ADK session including: - User messages - Agent responses - Tool calls and results - Error messages (if any) Events are returned in chronological order.
|
|
42542
|
+
* 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.
|
|
42476
42543
|
* @summary Get Run Events
|
|
42477
42544
|
* @param {string} orgId The unique identifier of the organization.
|
|
42478
42545
|
* @param {string} projectId The unique identifier of the project.
|
|
@@ -42555,7 +42622,7 @@ export const TaskAgentsApiFactory = function (configuration?: Configuration, bas
|
|
|
42555
42622
|
return localVarFp.listTaskAgentRevisions(orgId, projectId, taskAgentId, options).then((request) => request(axios, basePath));
|
|
42556
42623
|
},
|
|
42557
42624
|
/**
|
|
42558
|
-
* List execution runs for a Task Agent. Returns run history with: - Input message - Token usage - Status and duration - Task tools invoked - MCP tools invoked - Phase timings for LLM and
|
|
42625
|
+
* 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
|
|
42559
42626
|
* @summary List Task Agent Runs
|
|
42560
42627
|
* @param {string} orgId The unique identifier of the organization.
|
|
42561
42628
|
* @param {string} projectId The unique identifier of the project.
|
|
@@ -42603,7 +42670,7 @@ export const TaskAgentsApiFactory = function (configuration?: Configuration, bas
|
|
|
42603
42670
|
return localVarFp.listTaskAgents(orgId, projectId, cursor, pageLimit, options).then((request) => request(axios, basePath));
|
|
42604
42671
|
},
|
|
42605
42672
|
/**
|
|
42606
|
-
* Execute the Task Agent with a user message. The agent will: 1. Process the message using the configured LLM 2. Reason about which task tools to invoke 3. Execute relevant Tasks as needed 4. Return a streaming response Responses are streamed using Server-Sent Events (SSE). The first SSE event emitted after successful stream setup is: - `event_type: \"session_id\"` with the resolved `session_id` in `metadata` Use `revision_id` to execute a specific TaskAgent revision. New sessions can run any revision belonging to the TaskAgent. Existing sessions remain pinned to their original revision; passing a conflicting `revision_id` is rejected. Subsequent events include tool calls/results, text responses, and the terminal `done` or `error` event.
|
|
42673
|
+
* Execute the Task Agent with a user message. The agent will: 1. Process the message using the configured LLM 2. Reason about which task tools to invoke 3. Execute relevant Tasks as needed 4. Return a streaming response Responses are streamed using Server-Sent Events (SSE). The first SSE event emitted after successful stream setup is: - `event_type: \"session_id\"` with the resolved `session_id` in `metadata` Use `revision_id` to execute a specific TaskAgent revision. New sessions can run any revision belonging to the TaskAgent. Existing sessions remain pinned to their original revision; passing a conflicting `revision_id` is rejected. Subsequent events include tool calls/results, text responses, metadata-only `memory_compaction` events when compaction memory runs, and the terminal `done` or `error` event. Compaction metadata may include token-threshold configuration such as `trigger: \"auto\"`, `token_threshold`, and `event_retention_size` when token-aware compaction is active.
|
|
42607
42674
|
* @summary Run Task Agent
|
|
42608
42675
|
* @param {string} orgId The unique identifier of the organization.
|
|
42609
42676
|
* @param {string} projectId The unique identifier of the project.
|
|
@@ -42813,7 +42880,7 @@ export class TaskAgentsApi extends BaseAPI {
|
|
|
42813
42880
|
}
|
|
42814
42881
|
|
|
42815
42882
|
/**
|
|
42816
|
-
* Get conversation events for a specific TaskAgentRun. Returns the full conversation history from the ADK session including: - User messages - Agent responses - Tool calls and results - Error messages (if any) Events are returned in chronological order.
|
|
42883
|
+
* 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.
|
|
42817
42884
|
* @summary Get Run Events
|
|
42818
42885
|
* @param {string} orgId The unique identifier of the organization.
|
|
42819
42886
|
* @param {string} projectId The unique identifier of the project.
|
|
@@ -42908,7 +42975,7 @@ export class TaskAgentsApi extends BaseAPI {
|
|
|
42908
42975
|
}
|
|
42909
42976
|
|
|
42910
42977
|
/**
|
|
42911
|
-
* List execution runs for a Task Agent. Returns run history with: - Input message - Token usage - Status and duration - Task tools invoked - MCP tools invoked - Phase timings for LLM and
|
|
42978
|
+
* 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
|
|
42912
42979
|
* @summary List Task Agent Runs
|
|
42913
42980
|
* @param {string} orgId The unique identifier of the organization.
|
|
42914
42981
|
* @param {string} projectId The unique identifier of the project.
|
|
@@ -42962,7 +43029,7 @@ export class TaskAgentsApi extends BaseAPI {
|
|
|
42962
43029
|
}
|
|
42963
43030
|
|
|
42964
43031
|
/**
|
|
42965
|
-
* Execute the Task Agent with a user message. The agent will: 1. Process the message using the configured LLM 2. Reason about which task tools to invoke 3. Execute relevant Tasks as needed 4. Return a streaming response Responses are streamed using Server-Sent Events (SSE). The first SSE event emitted after successful stream setup is: - `event_type: \"session_id\"` with the resolved `session_id` in `metadata` Use `revision_id` to execute a specific TaskAgent revision. New sessions can run any revision belonging to the TaskAgent. Existing sessions remain pinned to their original revision; passing a conflicting `revision_id` is rejected. Subsequent events include tool calls/results, text responses, and the terminal `done` or `error` event.
|
|
43032
|
+
* Execute the Task Agent with a user message. The agent will: 1. Process the message using the configured LLM 2. Reason about which task tools to invoke 3. Execute relevant Tasks as needed 4. Return a streaming response Responses are streamed using Server-Sent Events (SSE). The first SSE event emitted after successful stream setup is: - `event_type: \"session_id\"` with the resolved `session_id` in `metadata` Use `revision_id` to execute a specific TaskAgent revision. New sessions can run any revision belonging to the TaskAgent. Existing sessions remain pinned to their original revision; passing a conflicting `revision_id` is rejected. Subsequent events include tool calls/results, text responses, metadata-only `memory_compaction` events when compaction memory runs, and the terminal `done` or `error` event. Compaction metadata may include token-threshold configuration such as `trigger: \"auto\"`, `token_threshold`, and `event_retention_size` when token-aware compaction is active.
|
|
42966
43033
|
* @summary Run Task Agent
|
|
42967
43034
|
* @param {string} orgId The unique identifier of the organization.
|
|
42968
43035
|
* @param {string} projectId The unique identifier of the project.
|
package/dist/api.d.ts
CHANGED
|
@@ -6960,6 +6960,48 @@ export interface PhaseTimingEntry {
|
|
|
6960
6960
|
* @memberof PhaseTimingEntry
|
|
6961
6961
|
*/
|
|
6962
6962
|
'integration_name'?: string | null;
|
|
6963
|
+
/**
|
|
6964
|
+
* Trigger for memory compaction phases.
|
|
6965
|
+
* @type {string}
|
|
6966
|
+
* @memberof PhaseTimingEntry
|
|
6967
|
+
*/
|
|
6968
|
+
'trigger'?: string | null;
|
|
6969
|
+
/**
|
|
6970
|
+
* ADK compaction event ID for memory compaction phases.
|
|
6971
|
+
* @type {string}
|
|
6972
|
+
* @memberof PhaseTimingEntry
|
|
6973
|
+
*/
|
|
6974
|
+
'compaction_event_id'?: string | null;
|
|
6975
|
+
/**
|
|
6976
|
+
* Input tokens used by the memory compaction summarizer.
|
|
6977
|
+
* @type {number}
|
|
6978
|
+
* @memberof PhaseTimingEntry
|
|
6979
|
+
*/
|
|
6980
|
+
'input_tokens'?: number | null;
|
|
6981
|
+
/**
|
|
6982
|
+
* Output tokens produced by the memory compaction summarizer.
|
|
6983
|
+
* @type {number}
|
|
6984
|
+
* @memberof PhaseTimingEntry
|
|
6985
|
+
*/
|
|
6986
|
+
'output_tokens'?: number | null;
|
|
6987
|
+
/**
|
|
6988
|
+
* Total tokens used by the memory compaction summarizer.
|
|
6989
|
+
* @type {number}
|
|
6990
|
+
* @memberof PhaseTimingEntry
|
|
6991
|
+
*/
|
|
6992
|
+
'total_tokens'?: number | null;
|
|
6993
|
+
/**
|
|
6994
|
+
* Configured token threshold for memory compaction phases.
|
|
6995
|
+
* @type {number}
|
|
6996
|
+
* @memberof PhaseTimingEntry
|
|
6997
|
+
*/
|
|
6998
|
+
'token_threshold'?: number | null;
|
|
6999
|
+
/**
|
|
7000
|
+
* Configured ADK event retention size for token compaction.
|
|
7001
|
+
* @type {number}
|
|
7002
|
+
* @memberof PhaseTimingEntry
|
|
7003
|
+
*/
|
|
7004
|
+
'event_retention_size'?: number | null;
|
|
6963
7005
|
}
|
|
6964
7006
|
export declare const PhaseTimingEntryPhaseEnum: {
|
|
6965
7007
|
readonly LlmInference: "llm_inference";
|
|
@@ -6967,6 +7009,7 @@ export declare const PhaseTimingEntryPhaseEnum: {
|
|
|
6967
7009
|
readonly McpToolExecution: "mcp_tool_execution";
|
|
6968
7010
|
readonly IntegrationToolExecution: "integration_tool_execution";
|
|
6969
7011
|
readonly SkillActivation: "skill_activation";
|
|
7012
|
+
readonly MemoryCompaction: "memory_compaction";
|
|
6970
7013
|
};
|
|
6971
7014
|
export type PhaseTimingEntryPhaseEnum = typeof PhaseTimingEntryPhaseEnum[keyof typeof PhaseTimingEntryPhaseEnum];
|
|
6972
7015
|
/**
|
|
@@ -12727,6 +12770,14 @@ export interface TaskAgentEvent {
|
|
|
12727
12770
|
* @memberof TaskAgentEvent
|
|
12728
12771
|
*/
|
|
12729
12772
|
'error_message'?: string | null;
|
|
12773
|
+
/**
|
|
12774
|
+
* Event-specific metadata for system events such as memory compaction.
|
|
12775
|
+
* @type {{ [key: string]: any; }}
|
|
12776
|
+
* @memberof TaskAgentEvent
|
|
12777
|
+
*/
|
|
12778
|
+
'metadata'?: {
|
|
12779
|
+
[key: string]: any;
|
|
12780
|
+
} | null;
|
|
12730
12781
|
}
|
|
12731
12782
|
/**
|
|
12732
12783
|
* Extended file metadata for TaskAgent runs with provenance tracking. Inherits from TaskRunFileMetadata and adds fields to track whether a file was uploaded with the request or generated by a task tool.
|
|
@@ -13435,6 +13486,12 @@ export interface TaskAgentRunModelUsageRead {
|
|
|
13435
13486
|
* @memberof TaskAgentRunModelUsageRead
|
|
13436
13487
|
*/
|
|
13437
13488
|
'llm_model_id': string | null;
|
|
13489
|
+
/**
|
|
13490
|
+
*
|
|
13491
|
+
* @type {string}
|
|
13492
|
+
* @memberof TaskAgentRunModelUsageRead
|
|
13493
|
+
*/
|
|
13494
|
+
'usage_scope': TaskAgentRunModelUsageReadUsageScopeEnum;
|
|
13438
13495
|
/**
|
|
13439
13496
|
*
|
|
13440
13497
|
* @type {string}
|
|
@@ -13484,6 +13541,11 @@ export interface TaskAgentRunModelUsageRead {
|
|
|
13484
13541
|
*/
|
|
13485
13542
|
'modified': string | null;
|
|
13486
13543
|
}
|
|
13544
|
+
export declare const TaskAgentRunModelUsageReadUsageScopeEnum: {
|
|
13545
|
+
readonly Reasoning: "reasoning";
|
|
13546
|
+
readonly MemoryCompaction: "memory_compaction";
|
|
13547
|
+
};
|
|
13548
|
+
export type TaskAgentRunModelUsageReadUsageScopeEnum = typeof TaskAgentRunModelUsageReadUsageScopeEnum[keyof typeof TaskAgentRunModelUsageReadUsageScopeEnum];
|
|
13487
13549
|
export declare const TaskAgentRunModelUsageReadUsageTypeEnum: {
|
|
13488
13550
|
readonly Primary: "primary";
|
|
13489
13551
|
readonly Fallback: "fallback";
|
|
@@ -17630,6 +17692,12 @@ export interface WebhookTriggerUpdate {
|
|
|
17630
17692
|
'auth_config'?: {
|
|
17631
17693
|
[key: string]: any;
|
|
17632
17694
|
} | null;
|
|
17695
|
+
/**
|
|
17696
|
+
* Secret key for authentication (only shown on creation).
|
|
17697
|
+
* @type {string}
|
|
17698
|
+
* @memberof WebhookTriggerUpdate
|
|
17699
|
+
*/
|
|
17700
|
+
'auth_secret'?: string | null;
|
|
17633
17701
|
/**
|
|
17634
17702
|
* JSONPath mappings from webhook payload to Task inputs.
|
|
17635
17703
|
* @type {{ [key: string]: any; }}
|
|
@@ -29272,7 +29340,7 @@ export declare const TaskAgentsApiAxiosParamCreator: (configuration?: Configurat
|
|
|
29272
29340
|
*/
|
|
29273
29341
|
getTaskAgentRevision: (orgId: string, projectId: string, taskAgentId: string, revisionId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
29274
29342
|
/**
|
|
29275
|
-
* Get conversation events for a specific TaskAgentRun. Returns the full conversation history from the ADK session including: - User messages - Agent responses - Tool calls and results - Error messages (if any) Events are returned in chronological order.
|
|
29343
|
+
* 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.
|
|
29276
29344
|
* @summary Get Run Events
|
|
29277
29345
|
* @param {string} orgId The unique identifier of the organization.
|
|
29278
29346
|
* @param {string} projectId The unique identifier of the project.
|
|
@@ -29343,7 +29411,7 @@ export declare const TaskAgentsApiAxiosParamCreator: (configuration?: Configurat
|
|
|
29343
29411
|
*/
|
|
29344
29412
|
listTaskAgentRevisions: (orgId: string, projectId: string, taskAgentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
29345
29413
|
/**
|
|
29346
|
-
* List execution runs for a Task Agent. Returns run history with: - Input message - Token usage - Status and duration - Task tools invoked - MCP tools invoked - Phase timings for LLM and
|
|
29414
|
+
* 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
|
|
29347
29415
|
* @summary List Task Agent Runs
|
|
29348
29416
|
* @param {string} orgId The unique identifier of the organization.
|
|
29349
29417
|
* @param {string} projectId The unique identifier of the project.
|
|
@@ -29385,7 +29453,7 @@ export declare const TaskAgentsApiAxiosParamCreator: (configuration?: Configurat
|
|
|
29385
29453
|
*/
|
|
29386
29454
|
listTaskAgents: (orgId: string, projectId: string, cursor?: string | null, pageLimit?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
29387
29455
|
/**
|
|
29388
|
-
* Execute the Task Agent with a user message. The agent will: 1. Process the message using the configured LLM 2. Reason about which task tools to invoke 3. Execute relevant Tasks as needed 4. Return a streaming response Responses are streamed using Server-Sent Events (SSE). The first SSE event emitted after successful stream setup is: - `event_type: \"session_id\"` with the resolved `session_id` in `metadata` Use `revision_id` to execute a specific TaskAgent revision. New sessions can run any revision belonging to the TaskAgent. Existing sessions remain pinned to their original revision; passing a conflicting `revision_id` is rejected. Subsequent events include tool calls/results, text responses, and the terminal `done` or `error` event.
|
|
29456
|
+
* Execute the Task Agent with a user message. The agent will: 1. Process the message using the configured LLM 2. Reason about which task tools to invoke 3. Execute relevant Tasks as needed 4. Return a streaming response Responses are streamed using Server-Sent Events (SSE). The first SSE event emitted after successful stream setup is: - `event_type: \"session_id\"` with the resolved `session_id` in `metadata` Use `revision_id` to execute a specific TaskAgent revision. New sessions can run any revision belonging to the TaskAgent. Existing sessions remain pinned to their original revision; passing a conflicting `revision_id` is rejected. Subsequent events include tool calls/results, text responses, metadata-only `memory_compaction` events when compaction memory runs, and the terminal `done` or `error` event. Compaction metadata may include token-threshold configuration such as `trigger: \"auto\"`, `token_threshold`, and `event_retention_size` when token-aware compaction is active.
|
|
29389
29457
|
* @summary Run Task Agent
|
|
29390
29458
|
* @param {string} orgId The unique identifier of the organization.
|
|
29391
29459
|
* @param {string} projectId The unique identifier of the project.
|
|
@@ -29547,7 +29615,7 @@ export declare const TaskAgentsApiFp: (configuration?: Configuration) => {
|
|
|
29547
29615
|
*/
|
|
29548
29616
|
getTaskAgentRevision(orgId: string, projectId: string, taskAgentId: string, revisionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TaskAgentRevisionRead>>;
|
|
29549
29617
|
/**
|
|
29550
|
-
* Get conversation events for a specific TaskAgentRun. Returns the full conversation history from the ADK session including: - User messages - Agent responses - Tool calls and results - Error messages (if any) Events are returned in chronological order.
|
|
29618
|
+
* 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.
|
|
29551
29619
|
* @summary Get Run Events
|
|
29552
29620
|
* @param {string} orgId The unique identifier of the organization.
|
|
29553
29621
|
* @param {string} projectId The unique identifier of the project.
|
|
@@ -29618,7 +29686,7 @@ export declare const TaskAgentsApiFp: (configuration?: Configuration) => {
|
|
|
29618
29686
|
*/
|
|
29619
29687
|
listTaskAgentRevisions(orgId: string, projectId: string, taskAgentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<TaskAgentRevisionRead>>>;
|
|
29620
29688
|
/**
|
|
29621
|
-
* List execution runs for a Task Agent. Returns run history with: - Input message - Token usage - Status and duration - Task tools invoked - MCP tools invoked - Phase timings for LLM and
|
|
29689
|
+
* 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
|
|
29622
29690
|
* @summary List Task Agent Runs
|
|
29623
29691
|
* @param {string} orgId The unique identifier of the organization.
|
|
29624
29692
|
* @param {string} projectId The unique identifier of the project.
|
|
@@ -29660,7 +29728,7 @@ export declare const TaskAgentsApiFp: (configuration?: Configuration) => {
|
|
|
29660
29728
|
*/
|
|
29661
29729
|
listTaskAgents(orgId: string, projectId: string, cursor?: string | null, pageLimit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaginatedResultSetTaskAgentRead>>;
|
|
29662
29730
|
/**
|
|
29663
|
-
* Execute the Task Agent with a user message. The agent will: 1. Process the message using the configured LLM 2. Reason about which task tools to invoke 3. Execute relevant Tasks as needed 4. Return a streaming response Responses are streamed using Server-Sent Events (SSE). The first SSE event emitted after successful stream setup is: - `event_type: \"session_id\"` with the resolved `session_id` in `metadata` Use `revision_id` to execute a specific TaskAgent revision. New sessions can run any revision belonging to the TaskAgent. Existing sessions remain pinned to their original revision; passing a conflicting `revision_id` is rejected. Subsequent events include tool calls/results, text responses, and the terminal `done` or `error` event.
|
|
29731
|
+
* Execute the Task Agent with a user message. The agent will: 1. Process the message using the configured LLM 2. Reason about which task tools to invoke 3. Execute relevant Tasks as needed 4. Return a streaming response Responses are streamed using Server-Sent Events (SSE). The first SSE event emitted after successful stream setup is: - `event_type: \"session_id\"` with the resolved `session_id` in `metadata` Use `revision_id` to execute a specific TaskAgent revision. New sessions can run any revision belonging to the TaskAgent. Existing sessions remain pinned to their original revision; passing a conflicting `revision_id` is rejected. Subsequent events include tool calls/results, text responses, metadata-only `memory_compaction` events when compaction memory runs, and the terminal `done` or `error` event. Compaction metadata may include token-threshold configuration such as `trigger: \"auto\"`, `token_threshold`, and `event_retention_size` when token-aware compaction is active.
|
|
29664
29732
|
* @summary Run Task Agent
|
|
29665
29733
|
* @param {string} orgId The unique identifier of the organization.
|
|
29666
29734
|
* @param {string} projectId The unique identifier of the project.
|
|
@@ -29822,7 +29890,7 @@ export declare const TaskAgentsApiFactory: (configuration?: Configuration, baseP
|
|
|
29822
29890
|
*/
|
|
29823
29891
|
getTaskAgentRevision(orgId: string, projectId: string, taskAgentId: string, revisionId: string, options?: any): AxiosPromise<TaskAgentRevisionRead>;
|
|
29824
29892
|
/**
|
|
29825
|
-
* Get conversation events for a specific TaskAgentRun. Returns the full conversation history from the ADK session including: - User messages - Agent responses - Tool calls and results - Error messages (if any) Events are returned in chronological order.
|
|
29893
|
+
* 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.
|
|
29826
29894
|
* @summary Get Run Events
|
|
29827
29895
|
* @param {string} orgId The unique identifier of the organization.
|
|
29828
29896
|
* @param {string} projectId The unique identifier of the project.
|
|
@@ -29893,7 +29961,7 @@ export declare const TaskAgentsApiFactory: (configuration?: Configuration, baseP
|
|
|
29893
29961
|
*/
|
|
29894
29962
|
listTaskAgentRevisions(orgId: string, projectId: string, taskAgentId: string, options?: any): AxiosPromise<Array<TaskAgentRevisionRead>>;
|
|
29895
29963
|
/**
|
|
29896
|
-
* List execution runs for a Task Agent. Returns run history with: - Input message - Token usage - Status and duration - Task tools invoked - MCP tools invoked - Phase timings for LLM and
|
|
29964
|
+
* 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
|
|
29897
29965
|
* @summary List Task Agent Runs
|
|
29898
29966
|
* @param {string} orgId The unique identifier of the organization.
|
|
29899
29967
|
* @param {string} projectId The unique identifier of the project.
|
|
@@ -29935,7 +30003,7 @@ export declare const TaskAgentsApiFactory: (configuration?: Configuration, baseP
|
|
|
29935
30003
|
*/
|
|
29936
30004
|
listTaskAgents(orgId: string, projectId: string, cursor?: string | null, pageLimit?: number, options?: any): AxiosPromise<PaginatedResultSetTaskAgentRead>;
|
|
29937
30005
|
/**
|
|
29938
|
-
* Execute the Task Agent with a user message. The agent will: 1. Process the message using the configured LLM 2. Reason about which task tools to invoke 3. Execute relevant Tasks as needed 4. Return a streaming response Responses are streamed using Server-Sent Events (SSE). The first SSE event emitted after successful stream setup is: - `event_type: \"session_id\"` with the resolved `session_id` in `metadata` Use `revision_id` to execute a specific TaskAgent revision. New sessions can run any revision belonging to the TaskAgent. Existing sessions remain pinned to their original revision; passing a conflicting `revision_id` is rejected. Subsequent events include tool calls/results, text responses, and the terminal `done` or `error` event.
|
|
30006
|
+
* Execute the Task Agent with a user message. The agent will: 1. Process the message using the configured LLM 2. Reason about which task tools to invoke 3. Execute relevant Tasks as needed 4. Return a streaming response Responses are streamed using Server-Sent Events (SSE). The first SSE event emitted after successful stream setup is: - `event_type: \"session_id\"` with the resolved `session_id` in `metadata` Use `revision_id` to execute a specific TaskAgent revision. New sessions can run any revision belonging to the TaskAgent. Existing sessions remain pinned to their original revision; passing a conflicting `revision_id` is rejected. Subsequent events include tool calls/results, text responses, metadata-only `memory_compaction` events when compaction memory runs, and the terminal `done` or `error` event. Compaction metadata may include token-threshold configuration such as `trigger: \"auto\"`, `token_threshold`, and `event_retention_size` when token-aware compaction is active.
|
|
29939
30007
|
* @summary Run Task Agent
|
|
29940
30008
|
* @param {string} orgId The unique identifier of the organization.
|
|
29941
30009
|
* @param {string} projectId The unique identifier of the project.
|
|
@@ -30107,7 +30175,7 @@ export declare class TaskAgentsApi extends BaseAPI {
|
|
|
30107
30175
|
*/
|
|
30108
30176
|
getTaskAgentRevision(orgId: string, projectId: string, taskAgentId: string, revisionId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TaskAgentRevisionRead, any, {}>>;
|
|
30109
30177
|
/**
|
|
30110
|
-
* Get conversation events for a specific TaskAgentRun. Returns the full conversation history from the ADK session including: - User messages - Agent responses - Tool calls and results - Error messages (if any) Events are returned in chronological order.
|
|
30178
|
+
* 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.
|
|
30111
30179
|
* @summary Get Run Events
|
|
30112
30180
|
* @param {string} orgId The unique identifier of the organization.
|
|
30113
30181
|
* @param {string} projectId The unique identifier of the project.
|
|
@@ -30184,7 +30252,7 @@ export declare class TaskAgentsApi extends BaseAPI {
|
|
|
30184
30252
|
*/
|
|
30185
30253
|
listTaskAgentRevisions(orgId: string, projectId: string, taskAgentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TaskAgentRevisionRead[], any, {}>>;
|
|
30186
30254
|
/**
|
|
30187
|
-
* List execution runs for a Task Agent. Returns run history with: - Input message - Token usage - Status and duration - Task tools invoked - MCP tools invoked - Phase timings for LLM and
|
|
30255
|
+
* 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
|
|
30188
30256
|
* @summary List Task Agent Runs
|
|
30189
30257
|
* @param {string} orgId The unique identifier of the organization.
|
|
30190
30258
|
* @param {string} projectId The unique identifier of the project.
|
|
@@ -30229,7 +30297,7 @@ export declare class TaskAgentsApi extends BaseAPI {
|
|
|
30229
30297
|
*/
|
|
30230
30298
|
listTaskAgents(orgId: string, projectId: string, cursor?: string | null, pageLimit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PaginatedResultSetTaskAgentRead, any, {}>>;
|
|
30231
30299
|
/**
|
|
30232
|
-
* Execute the Task Agent with a user message. The agent will: 1. Process the message using the configured LLM 2. Reason about which task tools to invoke 3. Execute relevant Tasks as needed 4. Return a streaming response Responses are streamed using Server-Sent Events (SSE). The first SSE event emitted after successful stream setup is: - `event_type: \"session_id\"` with the resolved `session_id` in `metadata` Use `revision_id` to execute a specific TaskAgent revision. New sessions can run any revision belonging to the TaskAgent. Existing sessions remain pinned to their original revision; passing a conflicting `revision_id` is rejected. Subsequent events include tool calls/results, text responses, and the terminal `done` or `error` event.
|
|
30300
|
+
* Execute the Task Agent with a user message. The agent will: 1. Process the message using the configured LLM 2. Reason about which task tools to invoke 3. Execute relevant Tasks as needed 4. Return a streaming response Responses are streamed using Server-Sent Events (SSE). The first SSE event emitted after successful stream setup is: - `event_type: \"session_id\"` with the resolved `session_id` in `metadata` Use `revision_id` to execute a specific TaskAgent revision. New sessions can run any revision belonging to the TaskAgent. Existing sessions remain pinned to their original revision; passing a conflicting `revision_id` is rejected. Subsequent events include tool calls/results, text responses, metadata-only `memory_compaction` events when compaction memory runs, and the terminal `done` or `error` event. Compaction metadata may include token-threshold configuration such as `trigger: \"auto\"`, `token_threshold`, and `event_retention_size` when token-aware compaction is active.
|
|
30233
30301
|
* @summary Run Task Agent
|
|
30234
30302
|
* @param {string} orgId The unique identifier of the organization.
|
|
30235
30303
|
* @param {string} projectId The unique identifier of the project.
|
package/dist/api.js
CHANGED
|
@@ -76,12 +76,12 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
76
76
|
};
|
|
77
77
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
78
78
|
exports.OrganizationIAMMemberRoleUpdateRemoveEnum = exports.OrganizationIAMMemberRoleUpdateAddEnum = exports.OrganizationDomainStatusEnum = exports.OrgMembership = exports.OrgInviteShow = exports.OAuthClientUpdateTokenEndpointAuthMethodEnum = exports.OAuthClientProfile = exports.OAuthClientPKCEChallengeMethod = exports.OAuthClientGrantType = exports.OAuthClientCreateTokenEndpointAuthMethodEnum = exports.OAuthClientAccessTokenType = exports.OAuthClientTokenEndpointAuthMethodEnum = exports.NestedStructureItemTypeEnum = exports.NestedStructureTypeEnum = exports.MultipleRolesNotAllowedErrorResponseReasonEnum = exports.ModelExclusionRuleResponseRuleTypeEnum = exports.ModelExclusionRuleRuleTypeEnum = exports.MissingAuthenticationErrorResponseReasonEnum = exports.McpServerIAMPermissionTestPermissionsEnum = exports.McpServerIAMMemberRoleUpdateRemoveEnum = exports.McpServerIAMMemberRoleUpdateAddEnum = exports.MalformedResourceIdentifierErrorResponseReasonEnum = exports.KratosWebhookDetailedMessageTypeEnum = exports.InviteFilter = exports.InvalidSubjectTypeErrorResponseReasonEnum = exports.InvalidRoleErrorResponseReasonEnum = exports.InvalidMemberErrorResponseReasonEnum = exports.IntegrationCatalogItemReadAuthModesEnum = exports.IntegrationCatalogItemReadTypeEnum = exports.IntegrationAuthStatusReadAuthTypeEnum = exports.IntegrationAuthPrincipalReadAuthStateEnum = exports.IntegrationAuthPrincipalReadPrincipalTypeEnum = exports.InputConversationalGuardrailDefinitionNameEnum = exports.FileInputMode = exports.EvalVerdict = exports.EvalStatus = exports.ErrorResponseTypeEnum = exports.DocumentSource = exports.DocumentIAMPermissionTestPermissionsEnum = exports.DocumentIAMMemberRoleUpdateRemoveEnum = exports.DocumentIAMMemberRoleUpdateAddEnum = exports.DispatchResponseStopReasonEnum = exports.DatasourceSyncRunStatusEnum = exports.CreationTrendReportGranularityEnum = exports.ComposeInitLanguageEnum = exports.CollectionIAMPermissionTestPermissionsEnum = exports.CollectionIAMMemberRoleUpdateRemoveEnum = exports.CollectionIAMMemberRoleUpdateAddEnum = exports.ChatGuardrailTypeEnum = exports.AvailableSkillReadScopeEnum = void 0;
|
|
79
|
-
exports.
|
|
80
|
-
exports.
|
|
81
|
-
exports.
|
|
82
|
-
exports.
|
|
83
|
-
exports.
|
|
84
|
-
exports.WebhookTriggersApi = exports.WebhookTriggersApiFactory = exports.WebhookTriggersApiFp = exports.WebhookTriggersApiAxiosParamCreator = exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.TaskIamOrgOrgIdProjectProjectIdTaskTaskIdIamListMembersTypeEnum = exports.ListProjectTaskRunsStatusEnum = exports.GetTaskUsageReportAggregationEnum = exports.GetTaskTimingReportAggregationEnum = exports.GetTaskRunsStatusEnum = exports.GetProjectTaskUsageReportAggregationEnum = void 0;
|
|
79
|
+
exports.TaskAgentRunModelUsageReadUsageScopeEnum = exports.TaskAgentRegisteredToolReadProvisionSourceEnum = exports.TaskAgentReadTaskAgentRunVisibilityEnum = exports.TaskAgentMode = exports.TaskAgentMcpServerReadProvisionSourceEnum = exports.TaskAgentIntegrationReadProvisionSourceEnum = exports.TaskAgentIntegrationReadIntegrationTypeEnum = exports.TaskAgentIAMPermissionTestPermissionsEnum = exports.TaskAgentIAMMemberRoleUpdateRemoveEnum = exports.TaskAgentIAMMemberRoleUpdateAddEnum = exports.TaskAgentFileMetadataSourceEnum = exports.TaskAgentEvalVerdict = exports.TaskAgentEvalStatus = exports.TaskAgentCreateTaskAgentRunVisibilityEnum = exports.TaskAgentCreateMemoryStrategyEnum = exports.TaskAgentCloneDependencyReportItemStatusEnum = exports.TaskAgentCloneDependencyReportItemActionEnum = exports.TaskAgentCloneDependencyReportItemKindEnum = exports.TaskTaskRunVisibilityEnum = exports.TagOutputFormatInputItemTypeEnum = exports.TagOutputFormatInputTypeEnum = exports.TagEntityTypeEnum = exports.StripePlan = exports.SlackInstallationStatus = exports.SkillIAMPermissionTestPermissionsEnum = exports.SkillIAMMemberRoleUpdateRemoveEnum = exports.SkillIAMMemberRoleUpdateAddEnum = exports.ProjectTaskUsageReportAggregationEnum = exports.ProjectTaskTimingReportAggregationEnum = exports.ProjectTaskRecentRunSummaryStatusEnum = exports.ProjectTaskAgentUsageReportAggregationEnum = exports.ProjectTaskAgentTimingReportAggregationEnum = exports.ProjectIntegrationReadAuthTypeEnum = exports.ProjectIntegrationReadTypeEnum = exports.ProjectIntegrationIAMPermissionTestPermissionsEnum = exports.ProjectIntegrationIAMMemberRoleUpdateRemoveEnum = exports.ProjectIntegrationIAMMemberRoleUpdateAddEnum = exports.ProjectIntegrationCreateTypeEnum = exports.ProjectIAMPermissionTestPermissionsEnum = exports.ProjectIAMMemberRoleUpdateRemoveEnum = exports.ProjectIAMMemberRoleUpdateAddEnum = exports.PlanStatus = exports.PlanInterval = exports.PhaseTimingEntryPhaseEnum = exports.PermissionCheckFailedErrorResponseReasonEnum = exports.OutputModality = exports.OutputFilter = exports.OrganizationMemberAlreadyExistsErrorResponseReasonEnum = exports.OrganizationInviteAlreadyExistsErrorResponseReasonEnum = exports.OrganizationIAMPermissionTestPermissionsEnum = void 0;
|
|
80
|
+
exports.AuditEventsApiFactory = exports.AuditEventsApiFp = exports.AuditEventsApiAxiosParamCreator = exports.AgentPackApi = exports.AgentPackApiFactory = exports.AgentPackApiFp = exports.AgentPackApiAxiosParamCreator = exports.APIKeysApi = exports.APIKeysApiFactory = exports.APIKeysApiFp = exports.APIKeysApiAxiosParamCreator = exports.WebhookTriggerCreateAuthMethodEnum = exports.WebhookAuthMethod = exports.VisionFilter = exports.UserProfileUpdateJobRoleEnum = exports.UserOAuthClientCreateTokenEndpointAuthMethodEnum = exports.UserOAuthClientCreateTypeEnum = exports.UserJobRoleEnum = exports.UsageReportStatus = exports.TriggerType = exports.TriggerTargetType = exports.TriggerStatus = exports.TaskUpdateTaskRunVisibilityEnum = exports.TaskToolResultType = exports.TaskToolChoiceEnum = exports.TaskRunUsageReportAggregationEnum = exports.TaskRunTimingReportAggregationEnum = exports.TaskRAGConfigRewriteModeEnum = exports.TaskMcpTransport = exports.TaskMcpServerIAMPermissionTestPermissionsEnum = exports.TaskMcpServerIAMMemberRoleUpdateRemoveEnum = exports.TaskMcpServerIAMMemberRoleUpdateAddEnum = exports.TaskMcpServerCatalogReadAuthModeEnum = exports.TaskMcpServerAuthStateReasonEnum = exports.TaskMcpServerAuthStateEnum = exports.TaskMcpAuthType = exports.TaskMcpAuthStrategy = exports.TaskIAMPermissionTestPermissionsEnum = exports.TaskIAMMemberRoleUpdateRemoveEnum = exports.TaskIAMMemberRoleUpdateAddEnum = exports.TaskForwarderIAMPermissionTestPermissionsEnum = exports.TaskForwarderIAMMemberRoleUpdateRemoveEnum = exports.TaskForwarderIAMMemberRoleUpdateAddEnum = exports.TaskCreateTaskRunVisibilityEnum = exports.TaskAgentUsageReportAggregationEnum = exports.TaskAgentUpdateTaskAgentRunVisibilityEnum = exports.TaskAgentUpdateMemoryStrategyEnum = exports.TaskAgentTimingReportAggregationEnum = exports.TaskAgentRunStatus = exports.TaskAgentRunModelUsageReadUsageTypeEnum = void 0;
|
|
81
|
+
exports.MCPRunsApiFp = exports.MCPRunsApiAxiosParamCreator = exports.MCPRunApi = exports.MCPRunApiFactory = exports.MCPRunApiFp = exports.MCPRunApiAxiosParamCreator = exports.ListingsApi = exports.ListingsApiFactory = exports.ListingsApiFp = exports.ListingsApiAxiosParamCreator = exports.RemoveModelExclusionFromProjectRuleTypeEnum = exports.RemoveModelExclusionFromOrgRuleTypeEnum = exports.GetInternalOrgSubscriptionReportStatusEnum = exports.GetInternalOrgSignupsReportGranularityEnum = exports.InternalApi = exports.InternalApiFactory = exports.InternalApiFp = exports.InternalApiAxiosParamCreator = exports.ProjectIntegrationIamOrgOrgIdProjectProjectIdIntegrationIntegrationIdIamListMembersTypeEnum = exports.IntegrationsApi = exports.IntegrationsApiFactory = exports.IntegrationsApiFp = exports.IntegrationsApiAxiosParamCreator = exports.InputProcessorsApi = exports.InputProcessorsApiFactory = exports.InputProcessorsApiFp = exports.InputProcessorsApiAxiosParamCreator = exports.DocumentIamOrgOrgIdProjectProjectIdDocumentDocumentIdIamListMembersTypeEnum = exports.DocumentsApi = exports.DocumentsApiFactory = exports.DocumentsApiFp = exports.DocumentsApiAxiosParamCreator = exports.DocumentApi = exports.DocumentApiFactory = exports.DocumentApiFp = exports.DocumentApiAxiosParamCreator = exports.ComposeApi = exports.ComposeApiFactory = exports.ComposeApiFp = exports.ComposeApiAxiosParamCreator = exports.CollectionIamOrgOrgIdProjectProjectIdCollectionCollectionIdIamListMembersTypeEnum = exports.CollectionsApi = exports.CollectionsApiFactory = exports.CollectionsApiFp = exports.CollectionsApiAxiosParamCreator = exports.CollectionApi = exports.CollectionApiFactory = exports.CollectionApiFp = exports.CollectionApiAxiosParamCreator = exports.AuditEventsApi = void 0;
|
|
82
|
+
exports.SystemApiFactory = exports.SystemApiFp = exports.SystemApiAxiosParamCreator = exports.SlackApi = exports.SlackApiFactory = exports.SlackApiFp = exports.SlackApiAxiosParamCreator = exports.SkillIamOrgOrgIdProjectProjectIdSkillSkillIdIamListMembersTypeEnum = exports.SkillsApi = exports.SkillsApiFactory = exports.SkillsApiFp = exports.SkillsApiAxiosParamCreator = exports.ScrapeApi = exports.ScrapeApiFactory = exports.ScrapeApiFp = exports.ScrapeApiAxiosParamCreator = exports.ScheduleTriggersApi = exports.ScheduleTriggersApiFactory = exports.ScheduleTriggersApiFp = exports.ScheduleTriggersApiAxiosParamCreator = exports.ReportingGroupsApi = exports.ReportingGroupsApiFactory = exports.ReportingGroupsApiFp = exports.ReportingGroupsApiAxiosParamCreator = exports.ProjectIamOrgOrgIdProjectProjectIdIamListMembersTypeEnum = exports.ProjectsApi = exports.ProjectsApiFactory = exports.ProjectsApiFp = exports.ProjectsApiAxiosParamCreator = exports.OrganizationIamListMembersTypeEnum = exports.OrganizationsApi = exports.OrganizationsApiFactory = exports.OrganizationsApiFp = exports.OrganizationsApiAxiosParamCreator = exports.ProjectIamOrgOrgIdProjectProjectIdOauthClientOauthClientIdIamListMembersTypeEnum = exports.OAuthClientsApi = exports.OAuthClientsApiFactory = exports.OAuthClientsApiFp = exports.OAuthClientsApiAxiosParamCreator = exports.McpServerIamOrgOrgIdProjectProjectIdMcpServerMcpServerIdIamListMembersTypeEnum = exports.MCPServersApi = exports.MCPServersApiFactory = exports.MCPServersApiFp = exports.MCPServersApiAxiosParamCreator = exports.MCPServerApi = exports.MCPServerApiFactory = exports.MCPServerApiFp = exports.MCPServerApiAxiosParamCreator = exports.MCPRunsApi = exports.MCPRunsApiFactory = void 0;
|
|
83
|
+
exports.TasksApi = exports.TasksApiFactory = exports.TasksApiFp = exports.TasksApiAxiosParamCreator = exports.TaskMCPToolsApi = exports.TaskMCPToolsApiFactory = exports.TaskMCPToolsApiFp = exports.TaskMCPToolsApiAxiosParamCreator = exports.TaskMcpServerIamOrgOrgIdProjectProjectIdTaskMcpServerTaskMcpServerIdIamListMembersTypeEnum = exports.TaskMCPServersApi = exports.TaskMCPServersApiFactory = exports.TaskMCPServersApiFp = exports.TaskMCPServersApiAxiosParamCreator = exports.TaskForwarderIamOrgOrgIdProjectProjectIdTaskForwarderTaskForwarderIdIamListMembersTypeEnum = exports.TaskForwardersApi = exports.TaskForwardersApiFactory = exports.TaskForwardersApiFp = exports.TaskForwardersApiAxiosParamCreator = exports.TaskEvalsApi = exports.TaskEvalsApiFactory = exports.TaskEvalsApiFp = exports.TaskEvalsApiAxiosParamCreator = exports.TaskAgentIamOrgOrgIdProjectProjectIdTaskAgentTaskAgentIdIamListMembersTypeEnum = exports.GetTaskAgentUsageReportAggregationEnum = exports.GetTaskAgentTimingReportAggregationEnum = exports.GetProjectTaskAgentUsageReportAggregationEnum = exports.GetProjectTaskAgentTimingReportAggregationEnum = exports.TaskAgentsApi = exports.TaskAgentsApiFactory = exports.TaskAgentsApiFp = exports.TaskAgentsApiAxiosParamCreator = exports.TaskAgentSharesApi = exports.TaskAgentSharesApiFactory = exports.TaskAgentSharesApiFp = exports.TaskAgentSharesApiAxiosParamCreator = exports.TaskAgentEvalsApi = exports.TaskAgentEvalsApiFactory = exports.TaskAgentEvalsApiFp = exports.TaskAgentEvalsApiAxiosParamCreator = exports.UpdateTagEntityTypeEnum = exports.RemoveTagFromEntitiesEntityTypeEnum = exports.ListTagsEntityTypeEnum = exports.GetTagEntityTypeEnum = exports.CreateTagEntityTypeEnum = exports.AddTagToEntitiesEntityTypeEnum = exports.TagsApi = exports.TagsApiFactory = exports.TagsApiFp = exports.TagsApiAxiosParamCreator = exports.SystemApi = void 0;
|
|
84
|
+
exports.WebhookTriggersApi = exports.WebhookTriggersApiFactory = exports.WebhookTriggersApiFp = exports.WebhookTriggersApiAxiosParamCreator = exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.TaskIamOrgOrgIdProjectProjectIdTaskTaskIdIamListMembersTypeEnum = exports.ListProjectTaskRunsStatusEnum = exports.GetTaskUsageReportAggregationEnum = exports.GetTaskTimingReportAggregationEnum = exports.GetTaskRunsStatusEnum = exports.GetProjectTaskUsageReportAggregationEnum = exports.GetProjectTaskTimingReportAggregationEnum = void 0;
|
|
85
85
|
var axios_1 = require("axios");
|
|
86
86
|
// Some imports not used depending on template conditions
|
|
87
87
|
// @ts-ignore
|
|
@@ -482,7 +482,8 @@ exports.PhaseTimingEntryPhaseEnum = {
|
|
|
482
482
|
TaskToolExecution: 'task_tool_execution',
|
|
483
483
|
McpToolExecution: 'mcp_tool_execution',
|
|
484
484
|
IntegrationToolExecution: 'integration_tool_execution',
|
|
485
|
-
SkillActivation: 'skill_activation'
|
|
485
|
+
SkillActivation: 'skill_activation',
|
|
486
|
+
MemoryCompaction: 'memory_compaction'
|
|
486
487
|
};
|
|
487
488
|
/**
|
|
488
489
|
*
|
|
@@ -815,6 +816,10 @@ exports.TaskAgentRegisteredToolReadProvisionSourceEnum = {
|
|
|
815
816
|
Manual: 'manual',
|
|
816
817
|
SkillCapability: 'skill_capability'
|
|
817
818
|
};
|
|
819
|
+
exports.TaskAgentRunModelUsageReadUsageScopeEnum = {
|
|
820
|
+
Reasoning: 'reasoning',
|
|
821
|
+
MemoryCompaction: 'memory_compaction'
|
|
822
|
+
};
|
|
818
823
|
exports.TaskAgentRunModelUsageReadUsageTypeEnum = {
|
|
819
824
|
Primary: 'primary',
|
|
820
825
|
Fallback: 'fallback'
|
|
@@ -28322,7 +28327,7 @@ var TaskAgentsApiAxiosParamCreator = function (configuration) {
|
|
|
28322
28327
|
});
|
|
28323
28328
|
},
|
|
28324
28329
|
/**
|
|
28325
|
-
* Get conversation events for a specific TaskAgentRun. Returns the full conversation history from the ADK session including: - User messages - Agent responses - Tool calls and results - Error messages (if any) Events are returned in chronological order.
|
|
28330
|
+
* 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.
|
|
28326
28331
|
* @summary Get Run Events
|
|
28327
28332
|
* @param {string} orgId The unique identifier of the organization.
|
|
28328
28333
|
* @param {string} projectId The unique identifier of the project.
|
|
@@ -28672,7 +28677,7 @@ var TaskAgentsApiAxiosParamCreator = function (configuration) {
|
|
|
28672
28677
|
});
|
|
28673
28678
|
},
|
|
28674
28679
|
/**
|
|
28675
|
-
* List execution runs for a Task Agent. Returns run history with: - Input message - Token usage - Status and duration - Task tools invoked - MCP tools invoked - Phase timings for LLM and
|
|
28680
|
+
* 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
|
|
28676
28681
|
* @summary List Task Agent Runs
|
|
28677
28682
|
* @param {string} orgId The unique identifier of the organization.
|
|
28678
28683
|
* @param {string} projectId The unique identifier of the project.
|
|
@@ -28877,7 +28882,7 @@ var TaskAgentsApiAxiosParamCreator = function (configuration) {
|
|
|
28877
28882
|
});
|
|
28878
28883
|
},
|
|
28879
28884
|
/**
|
|
28880
|
-
* Execute the Task Agent with a user message. The agent will: 1. Process the message using the configured LLM 2. Reason about which task tools to invoke 3. Execute relevant Tasks as needed 4. Return a streaming response Responses are streamed using Server-Sent Events (SSE). The first SSE event emitted after successful stream setup is: - `event_type: \"session_id\"` with the resolved `session_id` in `metadata` Use `revision_id` to execute a specific TaskAgent revision. New sessions can run any revision belonging to the TaskAgent. Existing sessions remain pinned to their original revision; passing a conflicting `revision_id` is rejected. Subsequent events include tool calls/results, text responses, and the terminal `done` or `error` event.
|
|
28885
|
+
* Execute the Task Agent with a user message. The agent will: 1. Process the message using the configured LLM 2. Reason about which task tools to invoke 3. Execute relevant Tasks as needed 4. Return a streaming response Responses are streamed using Server-Sent Events (SSE). The first SSE event emitted after successful stream setup is: - `event_type: \"session_id\"` with the resolved `session_id` in `metadata` Use `revision_id` to execute a specific TaskAgent revision. New sessions can run any revision belonging to the TaskAgent. Existing sessions remain pinned to their original revision; passing a conflicting `revision_id` is rejected. Subsequent events include tool calls/results, text responses, metadata-only `memory_compaction` events when compaction memory runs, and the terminal `done` or `error` event. Compaction metadata may include token-threshold configuration such as `trigger: \"auto\"`, `token_threshold`, and `event_retention_size` when token-aware compaction is active.
|
|
28881
28886
|
* @summary Run Task Agent
|
|
28882
28887
|
* @param {string} orgId The unique identifier of the organization.
|
|
28883
28888
|
* @param {string} projectId The unique identifier of the project.
|
|
@@ -29433,7 +29438,7 @@ var TaskAgentsApiFp = function (configuration) {
|
|
|
29433
29438
|
});
|
|
29434
29439
|
},
|
|
29435
29440
|
/**
|
|
29436
|
-
* Get conversation events for a specific TaskAgentRun. Returns the full conversation history from the ADK session including: - User messages - Agent responses - Tool calls and results - Error messages (if any) Events are returned in chronological order.
|
|
29441
|
+
* 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.
|
|
29437
29442
|
* @summary Get Run Events
|
|
29438
29443
|
* @param {string} orgId The unique identifier of the organization.
|
|
29439
29444
|
* @param {string} projectId The unique identifier of the project.
|
|
@@ -29594,7 +29599,7 @@ var TaskAgentsApiFp = function (configuration) {
|
|
|
29594
29599
|
});
|
|
29595
29600
|
},
|
|
29596
29601
|
/**
|
|
29597
|
-
* List execution runs for a Task Agent. Returns run history with: - Input message - Token usage - Status and duration - Task tools invoked - MCP tools invoked - Phase timings for LLM and
|
|
29602
|
+
* 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
|
|
29598
29603
|
* @summary List Task Agent Runs
|
|
29599
29604
|
* @param {string} orgId The unique identifier of the organization.
|
|
29600
29605
|
* @param {string} projectId The unique identifier of the project.
|
|
@@ -29681,7 +29686,7 @@ var TaskAgentsApiFp = function (configuration) {
|
|
|
29681
29686
|
});
|
|
29682
29687
|
},
|
|
29683
29688
|
/**
|
|
29684
|
-
* Execute the Task Agent with a user message. The agent will: 1. Process the message using the configured LLM 2. Reason about which task tools to invoke 3. Execute relevant Tasks as needed 4. Return a streaming response Responses are streamed using Server-Sent Events (SSE). The first SSE event emitted after successful stream setup is: - `event_type: \"session_id\"` with the resolved `session_id` in `metadata` Use `revision_id` to execute a specific TaskAgent revision. New sessions can run any revision belonging to the TaskAgent. Existing sessions remain pinned to their original revision; passing a conflicting `revision_id` is rejected. Subsequent events include tool calls/results, text responses, and the terminal `done` or `error` event.
|
|
29689
|
+
* Execute the Task Agent with a user message. The agent will: 1. Process the message using the configured LLM 2. Reason about which task tools to invoke 3. Execute relevant Tasks as needed 4. Return a streaming response Responses are streamed using Server-Sent Events (SSE). The first SSE event emitted after successful stream setup is: - `event_type: \"session_id\"` with the resolved `session_id` in `metadata` Use `revision_id` to execute a specific TaskAgent revision. New sessions can run any revision belonging to the TaskAgent. Existing sessions remain pinned to their original revision; passing a conflicting `revision_id` is rejected. Subsequent events include tool calls/results, text responses, metadata-only `memory_compaction` events when compaction memory runs, and the terminal `done` or `error` event. Compaction metadata may include token-threshold configuration such as `trigger: \"auto\"`, `token_threshold`, and `event_retention_size` when token-aware compaction is active.
|
|
29685
29690
|
* @summary Run Task Agent
|
|
29686
29691
|
* @param {string} orgId The unique identifier of the organization.
|
|
29687
29692
|
* @param {string} projectId The unique identifier of the project.
|
|
@@ -29953,7 +29958,7 @@ var TaskAgentsApiFactory = function (configuration, basePath, axios) {
|
|
|
29953
29958
|
return localVarFp.getTaskAgentRevision(orgId, projectId, taskAgentId, revisionId, options).then(function (request) { return request(axios, basePath); });
|
|
29954
29959
|
},
|
|
29955
29960
|
/**
|
|
29956
|
-
* Get conversation events for a specific TaskAgentRun. Returns the full conversation history from the ADK session including: - User messages - Agent responses - Tool calls and results - Error messages (if any) Events are returned in chronological order.
|
|
29961
|
+
* 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.
|
|
29957
29962
|
* @summary Get Run Events
|
|
29958
29963
|
* @param {string} orgId The unique identifier of the organization.
|
|
29959
29964
|
* @param {string} projectId The unique identifier of the project.
|
|
@@ -30036,7 +30041,7 @@ var TaskAgentsApiFactory = function (configuration, basePath, axios) {
|
|
|
30036
30041
|
return localVarFp.listTaskAgentRevisions(orgId, projectId, taskAgentId, options).then(function (request) { return request(axios, basePath); });
|
|
30037
30042
|
},
|
|
30038
30043
|
/**
|
|
30039
|
-
* List execution runs for a Task Agent. Returns run history with: - Input message - Token usage - Status and duration - Task tools invoked - MCP tools invoked - Phase timings for LLM and
|
|
30044
|
+
* 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
|
|
30040
30045
|
* @summary List Task Agent Runs
|
|
30041
30046
|
* @param {string} orgId The unique identifier of the organization.
|
|
30042
30047
|
* @param {string} projectId The unique identifier of the project.
|
|
@@ -30084,7 +30089,7 @@ var TaskAgentsApiFactory = function (configuration, basePath, axios) {
|
|
|
30084
30089
|
return localVarFp.listTaskAgents(orgId, projectId, cursor, pageLimit, options).then(function (request) { return request(axios, basePath); });
|
|
30085
30090
|
},
|
|
30086
30091
|
/**
|
|
30087
|
-
* Execute the Task Agent with a user message. The agent will: 1. Process the message using the configured LLM 2. Reason about which task tools to invoke 3. Execute relevant Tasks as needed 4. Return a streaming response Responses are streamed using Server-Sent Events (SSE). The first SSE event emitted after successful stream setup is: - `event_type: \"session_id\"` with the resolved `session_id` in `metadata` Use `revision_id` to execute a specific TaskAgent revision. New sessions can run any revision belonging to the TaskAgent. Existing sessions remain pinned to their original revision; passing a conflicting `revision_id` is rejected. Subsequent events include tool calls/results, text responses, and the terminal `done` or `error` event.
|
|
30092
|
+
* Execute the Task Agent with a user message. The agent will: 1. Process the message using the configured LLM 2. Reason about which task tools to invoke 3. Execute relevant Tasks as needed 4. Return a streaming response Responses are streamed using Server-Sent Events (SSE). The first SSE event emitted after successful stream setup is: - `event_type: \"session_id\"` with the resolved `session_id` in `metadata` Use `revision_id` to execute a specific TaskAgent revision. New sessions can run any revision belonging to the TaskAgent. Existing sessions remain pinned to their original revision; passing a conflicting `revision_id` is rejected. Subsequent events include tool calls/results, text responses, metadata-only `memory_compaction` events when compaction memory runs, and the terminal `done` or `error` event. Compaction metadata may include token-threshold configuration such as `trigger: \"auto\"`, `token_threshold`, and `event_retention_size` when token-aware compaction is active.
|
|
30088
30093
|
* @summary Run Task Agent
|
|
30089
30094
|
* @param {string} orgId The unique identifier of the organization.
|
|
30090
30095
|
* @param {string} projectId The unique identifier of the project.
|
|
@@ -30298,7 +30303,7 @@ var TaskAgentsApi = /** @class */ (function (_super) {
|
|
|
30298
30303
|
return (0, exports.TaskAgentsApiFp)(this.configuration).getTaskAgentRevision(orgId, projectId, taskAgentId, revisionId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
30299
30304
|
};
|
|
30300
30305
|
/**
|
|
30301
|
-
* Get conversation events for a specific TaskAgentRun. Returns the full conversation history from the ADK session including: - User messages - Agent responses - Tool calls and results - Error messages (if any) Events are returned in chronological order.
|
|
30306
|
+
* 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.
|
|
30302
30307
|
* @summary Get Run Events
|
|
30303
30308
|
* @param {string} orgId The unique identifier of the organization.
|
|
30304
30309
|
* @param {string} projectId The unique identifier of the project.
|
|
@@ -30393,7 +30398,7 @@ var TaskAgentsApi = /** @class */ (function (_super) {
|
|
|
30393
30398
|
return (0, exports.TaskAgentsApiFp)(this.configuration).listTaskAgentRevisions(orgId, projectId, taskAgentId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
30394
30399
|
};
|
|
30395
30400
|
/**
|
|
30396
|
-
* List execution runs for a Task Agent. Returns run history with: - Input message - Token usage - Status and duration - Task tools invoked - MCP tools invoked - Phase timings for LLM and
|
|
30401
|
+
* 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
|
|
30397
30402
|
* @summary List Task Agent Runs
|
|
30398
30403
|
* @param {string} orgId The unique identifier of the organization.
|
|
30399
30404
|
* @param {string} projectId The unique identifier of the project.
|
|
@@ -30447,7 +30452,7 @@ var TaskAgentsApi = /** @class */ (function (_super) {
|
|
|
30447
30452
|
return (0, exports.TaskAgentsApiFp)(this.configuration).listTaskAgents(orgId, projectId, cursor, pageLimit, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
30448
30453
|
};
|
|
30449
30454
|
/**
|
|
30450
|
-
* Execute the Task Agent with a user message. The agent will: 1. Process the message using the configured LLM 2. Reason about which task tools to invoke 3. Execute relevant Tasks as needed 4. Return a streaming response Responses are streamed using Server-Sent Events (SSE). The first SSE event emitted after successful stream setup is: - `event_type: \"session_id\"` with the resolved `session_id` in `metadata` Use `revision_id` to execute a specific TaskAgent revision. New sessions can run any revision belonging to the TaskAgent. Existing sessions remain pinned to their original revision; passing a conflicting `revision_id` is rejected. Subsequent events include tool calls/results, text responses, and the terminal `done` or `error` event.
|
|
30455
|
+
* Execute the Task Agent with a user message. The agent will: 1. Process the message using the configured LLM 2. Reason about which task tools to invoke 3. Execute relevant Tasks as needed 4. Return a streaming response Responses are streamed using Server-Sent Events (SSE). The first SSE event emitted after successful stream setup is: - `event_type: \"session_id\"` with the resolved `session_id` in `metadata` Use `revision_id` to execute a specific TaskAgent revision. New sessions can run any revision belonging to the TaskAgent. Existing sessions remain pinned to their original revision; passing a conflicting `revision_id` is rejected. Subsequent events include tool calls/results, text responses, metadata-only `memory_compaction` events when compaction memory runs, and the terminal `done` or `error` event. Compaction metadata may include token-threshold configuration such as `trigger: \"auto\"`, `token_threshold`, and `event_retention_size` when token-aware compaction is active.
|
|
30451
30456
|
* @summary Run Task Agent
|
|
30452
30457
|
* @param {string} orgId The unique identifier of the organization.
|
|
30453
30458
|
* @param {string} projectId The unique identifier of the project.
|