async def afinalize_task(self, task: Task, **kwargs: Any) -> None:
        """Finalize task, after all the steps are completed."""
        self.finalize_task(task, **kwargs)
Finalize task, after all the steps are completed.
llama-index-core/llama_index/core/base/agent/types.py