Skip to content

Commit e96ce21

Browse files
committed
Add stipulation that receivers are allowed to require tasks
1 parent 2fdea38 commit e96ce21

File tree

1 file changed

+19
-2
lines changed
  • docs/specification/draft/basic/utilities

1 file changed

+19
-2
lines changed

docs/specification/draft/basic/utilities/tasks.mdx

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,8 +351,8 @@ These requirements apply to all parties that support receiving task-augmented re
351351

352352
### Task Support and Handling
353353

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.
356356

357357
### Task ID Requirements
358358

@@ -714,8 +714,25 @@ Receivers **MUST** return standard JSON-RPC errors for the following protocol er
714714
- Receiver rejects a `tasks/delete` request: `-32600` (Invalid request)
715715
- Internal errors: `-32603` (Internal error)
716716

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+
717721
Receivers **SHOULD** provide informative error messages to describe the cause of errors.
718722

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"
732+
}
733+
}
734+
```
735+
719736
**Example: Task not found**
720737

721738
```json

0 commit comments

Comments
 (0)