Skip to content

Commit eb6196e

Browse files
committed
feat(add_task): Add "AI-generated" note
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
1 parent f159cde commit eb6196e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

ex_app/lib/all_tools/calendar.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,11 +201,13 @@ def add_task(calendar_name: str, title: str, description: str, due_date: Optiona
201201
:return: bool
202202
"""
203203

204+
description_with_ai_note = f"{description}\n\n---\n\nThis task was scheduled by Nextcloud AI Assistant."
205+
204206
# Create task
205207
c = Calendar()
206208
t = Todo()
207209
t.name = title
208-
t.description = description
210+
t.description = description_with_ai_note
209211

210212
# Parse date and times
211213
if due_date:

0 commit comments

Comments
 (0)