[docs]@set_service_action_metadata(endpoint=TaskRetrieveEndpoint)deflist(self,*,tune:Optional[bool]=None)->TaskRetrieveResponse:""" List existing tasks. Raises: ApiResponseException: In case of an API error. ApiNetworkException: In case of unhandled network error. """request_params=_TaskRetrieveParametersQuery(tune=tune).model_dump()self._log_method_execution("Task List",**request_params)withself._get_http_client()asclient:metadata=get_service_action_metadata(self.list)http_response=client.get(url=self._get_endpoint(metadata.endpoint),params=request_params)returnTaskRetrieveResponse(**http_response.json())