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/cancellation.mdx
-1Lines changed: 0 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,6 @@ notification containing:
33
33
- Were previously issued in the same direction
34
34
- Are believed to still be in-progress
35
35
1. The `initialize` request **MUST NOT** be cancelled by clients
36
-
1. For [task-augmented requests](./tasks), the `tasks/cancel` request **MUST** be used instead of the `notifications/cancelled` notification. Tasks have their own dedicated cancellation mechanism that returns the final task state.
37
36
1. Receivers of cancellation notifications **SHOULD**:
Servers **MUST NOT** send `InputRequiredResult` responses on any other client requests.
185
184
@@ -250,7 +249,7 @@ what is directly present in the retry request.
250
249
251
250
### Tasks Workflow
252
251
253
-
For long-running operations that require server-side state, the persistent workflow leverages [Tasks](/specification/draft/basic/utilities/tasks). The `input_required` task status indicates that additional information is needed.
252
+
For long-running operations that require server-side state, the persistent workflow leverages [Tasks](/seps/2663-tasks-extension). The `input_required` task status indicates that additional information is needed.
S-->>C: Result (id: 4, status: completed, final content)
284
277
```
285
278
286
279
#### Server Requirements (Tasks)
287
280
288
281
1. Servers **MAY** respond to `tasks/get` by indicating that the task is in status `input_required`.
289
-
1. Servers **MUST** include an `inputRequests` field in the `tasks/result` response when the task is in status `input_required`.
282
+
1. Servers **MUST** include an `inputRequests` field in the `tasks/get` response when the task is in status `input_required`.
290
283
1.`inputRequests` keys are server assigned identifiers and **MUST** be unique within the scope of a `Task`.
291
-
292
-
1. Servers **MAY** include a `requestState` field in the `tasks/result` response when the task is in status `input_required`.
284
+
1. Servers **MAY** include a `requestState` field in the `tasks/get` response when the task is in status `input_required`.
293
285
294
286
#### Client Requirements (Tasks)
295
287
296
-
1. When `tasks/get` shows status `input_required`, clients **MUST** call `tasks/result` to get the `inputRequests` and optional `requestState`.
297
-
1. Clients **SHOULD** construct the results of those requests and call [`tasks/input_response`](/specification/draft/basic/utilities/tasks#providing-input-for-tasks) with the `inputResponses` & `requestState` (if present).
288
+
1. When `tasks/get` shows status `input_required`, clients **SHOULD** construct the results of those requests and call [`tasks/update`](seps/2663-tasks-extension#task-input-requests) with the `inputResponses` & `requestState` (if present).
298
289
1. Clients **MAY** choose not to fulfill the input requests, in which case they **MAY** cancel the task.
Copy file name to clipboardExpand all lines: docs/specification/draft/basic/utilities/progress.mdx
-4Lines changed: 0 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,10 +66,6 @@ The receiver **MAY** then send progress notifications containing:
66
66
- Send notifications at whatever frequency they deem appropriate
67
67
- Omit the total value if unknown
68
68
69
-
3. For [task-augmented requests](./tasks), the `progressToken` provided in the original request **MUST** continue to be used for progress notifications throughout the task's lifetime, even after the `CreateTaskResult` has been returned. The progress token remains valid and associated with the task until the task reaches a terminal status.
70
-
- Progress notifications for tasks **MUST** use the same `progressToken` that was provided in the initial task-augmented request
71
-
- Progress notifications for tasks **MUST** stop after the task reaches a terminal status (`completed`, `failed`, or `cancelled`)
0 commit comments