flip_api.file_services.retrieve_federated_results ================================================= .. py:module:: flip_api.file_services.retrieve_federated_results Attributes ---------- .. autoapisummary:: flip_api.file_services.retrieve_federated_results.router Functions --------- .. autoapisummary:: flip_api.file_services.retrieve_federated_results.retrieve_federated_results Module Contents --------------- .. py:data:: router .. py:function:: retrieve_federated_results(model_id: uuid.UUID, db: sqlmodel.Session = Depends(get_session), user_id: uuid.UUID = Depends(verify_token)) -> list[str] Retrieve federated results for a model from S3. :param model_id: The ID of the model to retrieve results for. :type model_id: UUID :param db: Database session. :type db: Session :param user_id: User ID from authentication. :type user_id: UUID :returns: A list of presigned URLs for the files associated with the model. :rtype: list[str] :raises HTTPException: If the user is not allowed, if the model ID does not exist, if S3 command gives an error while listing objects, or if there are any errors retrieving objects from S3.