diff --git a/src/ibis_birdbrain/tasks/sql.py b/src/ibis_birdbrain/tasks/sql.py index f6967b7..07f9fc0 100644 --- a/src/ibis_birdbrain/tasks/sql.py +++ b/src/ibis_birdbrain/tasks/sql.py @@ -182,7 +182,12 @@ def __call__(self, message: Message) -> Message: data_description=database_attachment.description, ) - response_message = Email() + response_message = Email( + body="fix SQL called", + attachments=[CodeAttachment(language="sql", content=sql)], + to_address=message.from_address, + from_address=self.name, + ) return response_message @staticmethod @@ -227,6 +232,7 @@ def fix_text_to_sql( return ( self._fix_text_to_sql( text=text, + sql=sql, error=error, tables=tables, data_description=data_description,