Skip to content

Commit d49a02b

Browse files
docs: add SdkErrorCode.InvalidResult to migration-guide enumerations and §5 scenario table
1 parent 614dbe8 commit d49a02b

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

docs/migration-SKILL.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ Two error classes now exist:
120120
| 403 after upscoping | `StreamableHTTPError` | `SdkError` with `SdkErrorCode.ClientHttpForbidden` |
121121
| Unexpected content type | `StreamableHTTPError` | `SdkError` with `SdkErrorCode.ClientHttpUnexpectedContent` |
122122
| Session termination failed | `StreamableHTTPError` | `SdkError` with `SdkErrorCode.ClientHttpFailedToTerminateSession` |
123+
| Response result fails schema | `ZodError` (raw) | `SdkError` with `SdkErrorCode.InvalidResult` |
123124

124125
New `SdkErrorCode` enum values:
125126

@@ -130,6 +131,7 @@ New `SdkErrorCode` enum values:
130131
- `SdkErrorCode.RequestTimeout` = `'REQUEST_TIMEOUT'`
131132
- `SdkErrorCode.ConnectionClosed` = `'CONNECTION_CLOSED'`
132133
- `SdkErrorCode.SendFailed` = `'SEND_FAILED'`
134+
- `SdkErrorCode.InvalidResult` = `'INVALID_RESULT'`
133135
- `SdkErrorCode.ClientHttpNotImplemented` = `'CLIENT_HTTP_NOT_IMPLEMENTED'`
134136
- `SdkErrorCode.ClientHttpAuthentication` = `'CLIENT_HTTP_AUTHENTICATION'`
135137
- `SdkErrorCode.ClientHttpForbidden` = `'CLIENT_HTTP_FORBIDDEN'`

docs/migration.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -700,6 +700,7 @@ The new `SdkErrorCode` enum contains string-valued codes for local SDK errors:
700700
| `SdkErrorCode.RequestTimeout` | Request timed out waiting for response |
701701
| `SdkErrorCode.ConnectionClosed` | Connection was closed |
702702
| `SdkErrorCode.SendFailed` | Failed to send message |
703+
| `SdkErrorCode.InvalidResult` | Response result failed local schema validation |
703704
| `SdkErrorCode.ClientHttpNotImplemented` | HTTP POST request failed |
704705
| `SdkErrorCode.ClientHttpAuthentication` | Server returned 401 after re-authentication |
705706
| `SdkErrorCode.ClientHttpForbidden` | Server returned 403 after trying upscoping |

0 commit comments

Comments
 (0)