Skip to content

Commit e224fc0

Browse files
committed
SEP-2663: Rephrase distinction between protocol-level errors and other errors
1 parent 87a3f98 commit e224fc0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

seps/2663-tasks-extension.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,7 @@ Servers are not required to retain tasks indefinitely. It is compliant behavior
815815

816816
When the underlying request encounters a JSON-RPC protocol error during execution, the task moves to the `failed` status. The `tasks/get` response **SHOULD** include a `statusMessage` field with diagnostic information about the failure, and **MUST** include the `error` field with the JSON-RPC error.
817817

818-
The `failed` status **MUST NOT** be used to represent non-JSON-RPC errors, such as a tool result that completed with `isError: true`. Application-level errors **MUST** use the `completed` status with the error details in the `result` field. This maintains a strong separation between protocol-level faults (which use the `failed` status) and application-level faults (which are returned as `completed` results with `isError: true`).
818+
The `failed` status **MUST NOT** be used to represent non-JSON-RPC errors, such as a tool result that completed with `isError: true`. Errors within the context of a protocol method result **MUST** use the `completed` status with the error details in the `result` field. This maintains a strong separation between protocol-level faults (which use the `failed` status) and other faults.
819819

820820
**Example: Task with JSON-RPC execution error**
821821

@@ -839,9 +839,9 @@ The `failed` status **MUST NOT** be used to represent non-JSON-RPC errors, such
839839
}
840840
```
841841

842-
**Example: Tool call completed with application error (isError: true)**
842+
**Example: Tool call completed with tool error (isError: true)**
843843

844-
For tool calls that complete successfully at the protocol level but return an application-level error (indicated by `isError: true` in the tool result), the task reaches `completed` status with the tool result in the `result` field:
844+
For tool calls that complete successfully at the protocol level but return an tool-level error (indicated by `isError: true` in the tool result), the task reaches `completed` status with the tool result in the `result` field:
845845

846846
```json
847847
{

0 commit comments

Comments
 (0)