diff --git a/src/genai/types/common.ts b/src/genai/types/common.ts index dffad1bd..9e61669d 100644 --- a/src/genai/types/common.ts +++ b/src/genai/types/common.ts @@ -2571,6 +2571,34 @@ export declare interface RunQueryJobResult { outputGcsUri?: string; } +/** Config for canceling async querying agent engines. */ +export declare interface CancelQueryJobAgentEngineConfig { + /** Used to override HTTP request options. */ + httpOptions?: genaiTypes.HttpOptions; + /** Abort signal which can be used to cancel the request. + + NOTE: AbortSignal is a client-only operation. Using it to cancel an + operation will not cancel the request in the service. You will still + be charged usage for any applicable operations. + */ + abortSignal?: AbortSignal; + /** Name of the longrunning operation returned from run_query_job. */ + operationName?: string; +} + +/** Result of canceling a query job. */ +export declare interface CancelQueryJobResult { + /** Used to override HTTP request options. */ + httpOptions?: genaiTypes.HttpOptions; + /** Abort signal which can be used to cancel the request. + + NOTE: AbortSignal is a client-only operation. Using it to cancel an + operation will not cancel the request in the service. You will still + be charged usage for any applicable operations. + */ + abortSignal?: AbortSignal; +} + /** Config for async querying agent engines. */ export declare interface CheckQueryJobAgentEngineConfig { /** Used to override HTTP request options. */