feat: add recurrence_rule to LLM tools; list_tasks status accepts list + cancelled
This commit is contained in:
@@ -105,6 +105,19 @@ _CORE_TOOLS = [
|
|||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"description": "Set to true only when the user has explicitly confirmed creation after being warned about a similar existing task.",
|
"description": "Set to true only when the user has explicitly confirmed creation after being warned about a similar existing task.",
|
||||||
},
|
},
|
||||||
|
"recurrence_rule": {
|
||||||
|
"type": "object",
|
||||||
|
"description": (
|
||||||
|
"Optional recurrence schedule so the task repeats automatically. Two forms:\n"
|
||||||
|
" Interval — repeat every N units from the due date:\n"
|
||||||
|
' {"type": "interval", "every": 3, "unit": "month"}\n'
|
||||||
|
" unit options: day | week | month | year\n"
|
||||||
|
" Calendar/monthly — specific day each month:\n"
|
||||||
|
' {"type": "calendar", "unit": "month", "day_of_month": 1}\n'
|
||||||
|
" Calendar/annual — specific day each year:\n"
|
||||||
|
' {"type": "calendar", "unit": "year", "day_of_month": 15, "month": 6}'
|
||||||
|
),
|
||||||
|
},
|
||||||
},
|
},
|
||||||
"required": ["title"],
|
"required": ["title"],
|
||||||
},
|
},
|
||||||
@@ -179,8 +192,8 @@ _CORE_TOOLS = [
|
|||||||
},
|
},
|
||||||
"status": {
|
"status": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": ["todo", "in_progress", "done"],
|
"enum": ["todo", "in_progress", "done", "cancelled"],
|
||||||
"description": "New task status. Use to mark a task done, start it, etc.",
|
"description": "New task status. Use to mark a task done, start it, cancel it, etc.",
|
||||||
},
|
},
|
||||||
"priority": {
|
"priority": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
@@ -205,6 +218,13 @@ _CORE_TOOLS = [
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "Optional project name to assign this note/task to (set to empty string to remove project)",
|
"description": "Optional project name to assign this note/task to (set to empty string to remove project)",
|
||||||
},
|
},
|
||||||
|
"recurrence_rule": {
|
||||||
|
"type": "object",
|
||||||
|
"description": (
|
||||||
|
"Set or update the recurrence schedule. Pass null to remove recurrence. "
|
||||||
|
"Same format as create_task recurrence_rule."
|
||||||
|
),
|
||||||
|
},
|
||||||
},
|
},
|
||||||
"required": ["query"],
|
"required": ["query"],
|
||||||
},
|
},
|
||||||
@@ -353,9 +373,16 @@ _CORE_TOOLS = [
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"status": {
|
"status": {
|
||||||
"type": "string",
|
"type": "array",
|
||||||
"enum": ["todo", "in_progress", "done"],
|
"items": {
|
||||||
"description": "Filter by task status",
|
"type": "string",
|
||||||
|
"enum": ["todo", "in_progress", "done", "cancelled"],
|
||||||
|
},
|
||||||
|
"description": (
|
||||||
|
"Filter by one or more task statuses. "
|
||||||
|
'Example: ["todo", "in_progress"] to list all active tasks. '
|
||||||
|
"Omit to return tasks of any status."
|
||||||
|
),
|
||||||
},
|
},
|
||||||
"priority": {
|
"priority": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
|||||||
Reference in New Issue
Block a user