File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
124125New ` 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' `
Original file line number Diff line number Diff 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 |
You can’t perform that action at this time.
0 commit comments