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
Copy file name to clipboardExpand all lines: docs/specification/draft/basic/utilities/tasks.mdx
+19-2Lines changed: 19 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -351,8 +351,8 @@ These requirements apply to all parties that support receiving task-augmented re
351
351
352
352
### Task Support and Handling
353
353
354
-
1. Receivers that do not support task augmentation on a request **MUST** process the request normally, ignoring any task metadata in `_meta`.
355
-
1. Receivers that support task augmentation **MAY**choose which request types support tasks.
354
+
1. Receivers that do not declare the task capability for a request type **MUST** process requests of that type normally, ignoring any task-augmentation metadata if present.
355
+
1. Receivers that do declare the task capability for a request type **MAY**return an error for non-task-augmented requests of that type, requiring requestors to use task augmentation.
356
356
357
357
### Task ID Requirements
358
358
@@ -714,8 +714,25 @@ Receivers **MUST** return standard JSON-RPC errors for the following protocol er
714
714
- Receiver rejects a `tasks/delete` request: `-32600` (Invalid request)
715
715
- Internal errors: `-32603` (Internal error)
716
716
717
+
Additionally, receivers **MAY** return the following errors:
718
+
719
+
- Non-task-augmented request when receiver requires task augmentation for that request type: `-32600` (Invalid request)
720
+
717
721
Receivers **SHOULD** provide informative error messages to describe the cause of errors.
718
722
723
+
**Example: Task augmentation required**
724
+
725
+
```json
726
+
{
727
+
"jsonrpc": "2.0",
728
+
"id": 1,
729
+
"error": {
730
+
"code": -32600,
731
+
"message": "Task augmentation required for tools/call requests"
0 commit comments