@rightbrain/brain-api-client 0.0.1-dev.153.dd63698 → 0.0.1-dev.154.74201b4
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 +74 -13
- package/dist/api.d.ts +74 -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'
|
|
@@ -41119,7 +41180,7 @@ export const TaskAgentsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
41119
41180
|
};
|
|
41120
41181
|
},
|
|
41121
41182
|
/**
|
|
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.
|
|
41183
|
+
* 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
41184
|
* @summary Get Run Events
|
|
41124
41185
|
* @param {string} orgId The unique identifier of the organization.
|
|
41125
41186
|
* @param {string} projectId The unique identifier of the project.
|
|
@@ -41448,7 +41509,7 @@ export const TaskAgentsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
41448
41509
|
};
|
|
41449
41510
|
},
|
|
41450
41511
|
/**
|
|
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
|
|
41512
|
+
* 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
41513
|
* @summary List Task Agent Runs
|
|
41453
41514
|
* @param {string} orgId The unique identifier of the organization.
|
|
41454
41515
|
* @param {string} projectId The unique identifier of the project.
|
|
@@ -41651,7 +41712,7 @@ export const TaskAgentsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
41651
41712
|
};
|
|
41652
41713
|
},
|
|
41653
41714
|
/**
|
|
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.
|
|
41715
|
+
* 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
41716
|
* @summary Run Task Agent
|
|
41656
41717
|
* @param {string} orgId The unique identifier of the organization.
|
|
41657
41718
|
* @param {string} projectId The unique identifier of the project.
|
|
@@ -42102,7 +42163,7 @@ export const TaskAgentsApiFp = function(configuration?: Configuration) {
|
|
|
42102
42163
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
42103
42164
|
},
|
|
42104
42165
|
/**
|
|
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.
|
|
42166
|
+
* 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
42167
|
* @summary Get Run Events
|
|
42107
42168
|
* @param {string} orgId The unique identifier of the organization.
|
|
42108
42169
|
* @param {string} projectId The unique identifier of the project.
|
|
@@ -42203,7 +42264,7 @@ export const TaskAgentsApiFp = function(configuration?: Configuration) {
|
|
|
42203
42264
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
42204
42265
|
},
|
|
42205
42266
|
/**
|
|
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
|
|
42267
|
+
* 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
42268
|
* @summary List Task Agent Runs
|
|
42208
42269
|
* @param {string} orgId The unique identifier of the organization.
|
|
42209
42270
|
* @param {string} projectId The unique identifier of the project.
|
|
@@ -42260,7 +42321,7 @@ export const TaskAgentsApiFp = function(configuration?: Configuration) {
|
|
|
42260
42321
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
42261
42322
|
},
|
|
42262
42323
|
/**
|
|
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.
|
|
42324
|
+
* 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
42325
|
* @summary Run Task Agent
|
|
42265
42326
|
* @param {string} orgId The unique identifier of the organization.
|
|
42266
42327
|
* @param {string} projectId The unique identifier of the project.
|
|
@@ -42472,7 +42533,7 @@ export const TaskAgentsApiFactory = function (configuration?: Configuration, bas
|
|
|
42472
42533
|
return localVarFp.getTaskAgentRevision(orgId, projectId, taskAgentId, revisionId, options).then((request) => request(axios, basePath));
|
|
42473
42534
|
},
|
|
42474
42535
|
/**
|
|
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.
|
|
42536
|
+
* 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
42537
|
* @summary Get Run Events
|
|
42477
42538
|
* @param {string} orgId The unique identifier of the organization.
|
|
42478
42539
|
* @param {string} projectId The unique identifier of the project.
|
|
@@ -42555,7 +42616,7 @@ export const TaskAgentsApiFactory = function (configuration?: Configuration, bas
|
|
|
42555
42616
|
return localVarFp.listTaskAgentRevisions(orgId, projectId, taskAgentId, options).then((request) => request(axios, basePath));
|
|
42556
42617
|
},
|
|
42557
42618
|
/**
|
|
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
|
|
42619
|
+
* 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
42620
|
* @summary List Task Agent Runs
|
|
42560
42621
|
* @param {string} orgId The unique identifier of the organization.
|
|
42561
42622
|
* @param {string} projectId The unique identifier of the project.
|
|
@@ -42603,7 +42664,7 @@ export const TaskAgentsApiFactory = function (configuration?: Configuration, bas
|
|
|
42603
42664
|
return localVarFp.listTaskAgents(orgId, projectId, cursor, pageLimit, options).then((request) => request(axios, basePath));
|
|
42604
42665
|
},
|
|
42605
42666
|
/**
|
|
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.
|
|
42667
|
+
* 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
42668
|
* @summary Run Task Agent
|
|
42608
42669
|
* @param {string} orgId The unique identifier of the organization.
|
|
42609
42670
|
* @param {string} projectId The unique identifier of the project.
|
|
@@ -42813,7 +42874,7 @@ export class TaskAgentsApi extends BaseAPI {
|
|
|
42813
42874
|
}
|
|
42814
42875
|
|
|
42815
42876
|
/**
|
|
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.
|
|
42877
|
+
* 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
42878
|
* @summary Get Run Events
|
|
42818
42879
|
* @param {string} orgId The unique identifier of the organization.
|
|
42819
42880
|
* @param {string} projectId The unique identifier of the project.
|
|
@@ -42908,7 +42969,7 @@ export class TaskAgentsApi extends BaseAPI {
|
|
|
42908
42969
|
}
|
|
42909
42970
|
|
|
42910
42971
|
/**
|
|
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
|
|
42972
|
+
* 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
42973
|
* @summary List Task Agent Runs
|
|
42913
42974
|
* @param {string} orgId The unique identifier of the organization.
|
|
42914
42975
|
* @param {string} projectId The unique identifier of the project.
|
|
@@ -42962,7 +43023,7 @@ export class TaskAgentsApi extends BaseAPI {
|
|
|
42962
43023
|
}
|
|
42963
43024
|
|
|
42964
43025
|
/**
|
|
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.
|
|
43026
|
+
* 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
43027
|
* @summary Run Task Agent
|
|
42967
43028
|
* @param {string} orgId The unique identifier of the organization.
|
|
42968
43029
|
* @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";
|
|
@@ -29272,7 +29334,7 @@ export declare const TaskAgentsApiAxiosParamCreator: (configuration?: Configurat
|
|
|
29272
29334
|
*/
|
|
29273
29335
|
getTaskAgentRevision: (orgId: string, projectId: string, taskAgentId: string, revisionId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
29274
29336
|
/**
|
|
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.
|
|
29337
|
+
* 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
29338
|
* @summary Get Run Events
|
|
29277
29339
|
* @param {string} orgId The unique identifier of the organization.
|
|
29278
29340
|
* @param {string} projectId The unique identifier of the project.
|
|
@@ -29343,7 +29405,7 @@ export declare const TaskAgentsApiAxiosParamCreator: (configuration?: Configurat
|
|
|
29343
29405
|
*/
|
|
29344
29406
|
listTaskAgentRevisions: (orgId: string, projectId: string, taskAgentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
29345
29407
|
/**
|
|
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
|
|
29408
|
+
* 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
29409
|
* @summary List Task Agent Runs
|
|
29348
29410
|
* @param {string} orgId The unique identifier of the organization.
|
|
29349
29411
|
* @param {string} projectId The unique identifier of the project.
|
|
@@ -29385,7 +29447,7 @@ export declare const TaskAgentsApiAxiosParamCreator: (configuration?: Configurat
|
|
|
29385
29447
|
*/
|
|
29386
29448
|
listTaskAgents: (orgId: string, projectId: string, cursor?: string | null, pageLimit?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
29387
29449
|
/**
|
|
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.
|
|
29450
|
+
* 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
29451
|
* @summary Run Task Agent
|
|
29390
29452
|
* @param {string} orgId The unique identifier of the organization.
|
|
29391
29453
|
* @param {string} projectId The unique identifier of the project.
|
|
@@ -29547,7 +29609,7 @@ export declare const TaskAgentsApiFp: (configuration?: Configuration) => {
|
|
|
29547
29609
|
*/
|
|
29548
29610
|
getTaskAgentRevision(orgId: string, projectId: string, taskAgentId: string, revisionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TaskAgentRevisionRead>>;
|
|
29549
29611
|
/**
|
|
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.
|
|
29612
|
+
* 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
29613
|
* @summary Get Run Events
|
|
29552
29614
|
* @param {string} orgId The unique identifier of the organization.
|
|
29553
29615
|
* @param {string} projectId The unique identifier of the project.
|
|
@@ -29618,7 +29680,7 @@ export declare const TaskAgentsApiFp: (configuration?: Configuration) => {
|
|
|
29618
29680
|
*/
|
|
29619
29681
|
listTaskAgentRevisions(orgId: string, projectId: string, taskAgentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<TaskAgentRevisionRead>>>;
|
|
29620
29682
|
/**
|
|
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
|
|
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
|
|
29622
29684
|
* @summary List Task Agent Runs
|
|
29623
29685
|
* @param {string} orgId The unique identifier of the organization.
|
|
29624
29686
|
* @param {string} projectId The unique identifier of the project.
|
|
@@ -29660,7 +29722,7 @@ export declare const TaskAgentsApiFp: (configuration?: Configuration) => {
|
|
|
29660
29722
|
*/
|
|
29661
29723
|
listTaskAgents(orgId: string, projectId: string, cursor?: string | null, pageLimit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaginatedResultSetTaskAgentRead>>;
|
|
29662
29724
|
/**
|
|
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.
|
|
29725
|
+
* 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
29726
|
* @summary Run Task Agent
|
|
29665
29727
|
* @param {string} orgId The unique identifier of the organization.
|
|
29666
29728
|
* @param {string} projectId The unique identifier of the project.
|
|
@@ -29822,7 +29884,7 @@ export declare const TaskAgentsApiFactory: (configuration?: Configuration, baseP
|
|
|
29822
29884
|
*/
|
|
29823
29885
|
getTaskAgentRevision(orgId: string, projectId: string, taskAgentId: string, revisionId: string, options?: any): AxiosPromise<TaskAgentRevisionRead>;
|
|
29824
29886
|
/**
|
|
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.
|
|
29887
|
+
* 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
29888
|
* @summary Get Run Events
|
|
29827
29889
|
* @param {string} orgId The unique identifier of the organization.
|
|
29828
29890
|
* @param {string} projectId The unique identifier of the project.
|
|
@@ -29893,7 +29955,7 @@ export declare const TaskAgentsApiFactory: (configuration?: Configuration, baseP
|
|
|
29893
29955
|
*/
|
|
29894
29956
|
listTaskAgentRevisions(orgId: string, projectId: string, taskAgentId: string, options?: any): AxiosPromise<Array<TaskAgentRevisionRead>>;
|
|
29895
29957
|
/**
|
|
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
|
|
29958
|
+
* 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
29959
|
* @summary List Task Agent Runs
|
|
29898
29960
|
* @param {string} orgId The unique identifier of the organization.
|
|
29899
29961
|
* @param {string} projectId The unique identifier of the project.
|
|
@@ -29935,7 +29997,7 @@ export declare const TaskAgentsApiFactory: (configuration?: Configuration, baseP
|
|
|
29935
29997
|
*/
|
|
29936
29998
|
listTaskAgents(orgId: string, projectId: string, cursor?: string | null, pageLimit?: number, options?: any): AxiosPromise<PaginatedResultSetTaskAgentRead>;
|
|
29937
29999
|
/**
|
|
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.
|
|
30000
|
+
* 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
30001
|
* @summary Run Task Agent
|
|
29940
30002
|
* @param {string} orgId The unique identifier of the organization.
|
|
29941
30003
|
* @param {string} projectId The unique identifier of the project.
|
|
@@ -30107,7 +30169,7 @@ export declare class TaskAgentsApi extends BaseAPI {
|
|
|
30107
30169
|
*/
|
|
30108
30170
|
getTaskAgentRevision(orgId: string, projectId: string, taskAgentId: string, revisionId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TaskAgentRevisionRead, any, {}>>;
|
|
30109
30171
|
/**
|
|
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.
|
|
30172
|
+
* 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
30173
|
* @summary Get Run Events
|
|
30112
30174
|
* @param {string} orgId The unique identifier of the organization.
|
|
30113
30175
|
* @param {string} projectId The unique identifier of the project.
|
|
@@ -30184,7 +30246,7 @@ export declare class TaskAgentsApi extends BaseAPI {
|
|
|
30184
30246
|
*/
|
|
30185
30247
|
listTaskAgentRevisions(orgId: string, projectId: string, taskAgentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TaskAgentRevisionRead[], any, {}>>;
|
|
30186
30248
|
/**
|
|
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
|
|
30249
|
+
* 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
30250
|
* @summary List Task Agent Runs
|
|
30189
30251
|
* @param {string} orgId The unique identifier of the organization.
|
|
30190
30252
|
* @param {string} projectId The unique identifier of the project.
|
|
@@ -30229,7 +30291,7 @@ export declare class TaskAgentsApi extends BaseAPI {
|
|
|
30229
30291
|
*/
|
|
30230
30292
|
listTaskAgents(orgId: string, projectId: string, cursor?: string | null, pageLimit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PaginatedResultSetTaskAgentRead, any, {}>>;
|
|
30231
30293
|
/**
|
|
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.
|
|
30294
|
+
* 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
30295
|
* @summary Run Task Agent
|
|
30234
30296
|
* @param {string} orgId The unique identifier of the organization.
|
|
30235
30297
|
* @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.
|