async def _generate_comment_entities(
        self,
        client: httpx.AsyncClient,
        task_entity: TodoistTaskEntity,
        task_breadcrumbs: List[Breadcrumb],
    ) -> AsyncGenerator[TodoistCommentEntity, None]:
        """Retrieve and yield Comment entities for a given task.

        GET https://api.todoist.com/rest/v2/comments?task_id={task_id}
        """
        task_id = task_entity.entity_id
        url = f"https://api.todoist.com/rest/v2/comments?task_id={task_id}"
        comments = await self._get_with_auth(client, url)
        if not isinstance(comments, list):
            return

        for comment in comments:
            yield TodoistCommentEntity(
                entity_id=comment["id"],
                breadcrumbs=task_breadcrumbs,
                task_id=str(comment.get("task_id") or ""),
                content=comment.get("content"),
                posted_at=comment["posted_at"],
            )
Retrieve and yield Comment entities for a given task.

        GET https://api.todoist.com/rest/v2/comments?task_id={task_id}
        
backend/airweave/platform/sources/todoist.py