async def METHOD_NAME(self, task_id: str, artifact_id: str) -> Artifact:
    """
    Get an artifact by ID.
    """
    try:
        artifact = await self.db.METHOD_NAME(artifact_id)
        file_path = os.path.join(artifact.relative_path, artifact.file_name)
        retrieved_artifact = self.workspace.read(task_id=task_id, path=file_path)
        path = artifact.file_name
        with open(path, "wb") as f:
            f.write(retrieved_artifact)
    except NotFoundError as e:
        raise
    except FileNotFoundError as e:
        raise
    except Exception as e:
        raise
    return FileResponse(
        # Note: mimetype is guessed in the FileResponse constructor
        path=path,
        filename=artifact.file_name,
    )