From 0e387750a426a216bc2268ecd02f91ab0c7c164d Mon Sep 17 00:00:00 2001 From: Google Team Member Date: Thu, 2 Apr 2026 08:07:55 -0700 Subject: [PATCH] feat: add the delete method for the Agent Engine Task Store Service PiperOrigin-RevId: 893515947 --- google/genai/batches.py | 6 ++---- google/genai/documents.py | 6 ++---- google/genai/file_search_stores.py | 6 ++---- 3 files changed, 6 insertions(+), 12 deletions(-) diff --git a/google/genai/batches.py b/google/genai/batches.py index 0dbd0b8ac..0bccbb726 100644 --- a/google/genai/batches.py +++ b/google/genai/batches.py @@ -1860,9 +1860,7 @@ def cancel( request_dict = _common.convert_to_dict(request_dict) request_dict = _common.encode_unserializable_types(request_dict) - response = self._api_client.request( - 'post', path, request_dict, http_options - ) + self._api_client.request('post', path, request_dict, http_options) def _list( self, *, config: Optional[types.ListBatchJobsConfigOrDict] = None @@ -2407,7 +2405,7 @@ async def cancel( request_dict = _common.convert_to_dict(request_dict) request_dict = _common.encode_unserializable_types(request_dict) - response = await self._api_client.async_request( + await self._api_client.async_request( 'post', path, request_dict, http_options ) diff --git a/google/genai/documents.py b/google/genai/documents.py index 0e7016156..d57953abe 100644 --- a/google/genai/documents.py +++ b/google/genai/documents.py @@ -239,9 +239,7 @@ def delete( request_dict = _common.convert_to_dict(request_dict) request_dict = _common.encode_unserializable_types(request_dict) - response = self._api_client.request( - 'delete', path, request_dict, http_options - ) + self._api_client.request('delete', path, request_dict, http_options) def _list( self, @@ -441,7 +439,7 @@ async def delete( request_dict = _common.convert_to_dict(request_dict) request_dict = _common.encode_unserializable_types(request_dict) - response = await self._api_client.async_request( + await self._api_client.async_request( 'delete', path, request_dict, http_options ) diff --git a/google/genai/file_search_stores.py b/google/genai/file_search_stores.py index 4a898c6b4..699b9db52 100644 --- a/google/genai/file_search_stores.py +++ b/google/genai/file_search_stores.py @@ -492,9 +492,7 @@ def delete( request_dict = _common.convert_to_dict(request_dict) request_dict = _common.encode_unserializable_types(request_dict) - response = self._api_client.request( - 'delete', path, request_dict, http_options - ) + self._api_client.request('delete', path, request_dict, http_options) def _list( self, *, config: Optional[types.ListFileSearchStoresConfigOrDict] = None @@ -984,7 +982,7 @@ async def delete( request_dict = _common.convert_to_dict(request_dict) request_dict = _common.encode_unserializable_types(request_dict) - response = await self._api_client.async_request( + await self._api_client.async_request( 'delete', path, request_dict, http_options )