You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create or update tasks for the current chat. By default replaces the
2356
-
entire task list. Set overwrite=false to update individual tasks by id
2357
-
while preserving the rest.
2357
+
Create or update a checklist of tasks tied to this chat.
2358
+
Useful whenever a request involves multiple pieces of work that
2359
+
should be tracked individually.
2360
+
2361
+
By default the entire list is replaced (overwrite=true). Set
2362
+
overwrite=false to patch specific items by id without discarding
2363
+
the rest.
2358
2364
2359
-
Only ONE task should be in_progress at a time. Mark tasks completed
2360
-
immediately when done.
2365
+
Each item carries an id, content string, and a status field
2366
+
(pending, in_progress, completed, or cancelled). Order reflects
2367
+
priority. Only one item should be in_progress at a time; mark
2368
+
it completed before moving on, or cancel and replace it if the
2369
+
approach changes.
2361
2370
2362
-
:param tasks: List of task items. Each must have: id (string, unique identifier), content (string, task description — required for new tasks), status (one of: pending, in_progress, completed, cancelled).
2371
+
:param tasks: List of task items. Each must have: id (string, unique identifier), content (string, task description, required for new tasks), status (one of: pending, in_progress, completed, cancelled).
2363
2372
:param overwrite: If true (default), replaces the entire task list. If false, updates/adds tasks by id while keeping existing ones.
2364
2373
:return: JSON with the full task list and summary counts
2365
2374
"""
2366
2375
if__chat_id__isNone:
2367
2376
returnjson.dumps({'error': 'Chat context not available'})
0 commit comments