- Returned API errors (
response.isError === true) - Thrown exceptions (configuration/runtime issues)
Returned API errors
These methods returnSendMessageResult, where API failures are represented as:
IllaSDK.sendMessageIllaSDK.sendToolResultIllaSDK.sendToolResultsChat.sendMessage
Common thrown errors
ChatNotFoundUserContextMissingTelemetryStreamFailedSSEParseStreamingHttpErrorStreamingResponseBodyNullStreamingServerError
CoreApiAuthenticationMissing(when constructingCoreApiProviderwithoutx-api-key)ChatAsyncToolCheckerUnavailable(callingChat.awaitActionwithout checker)SdkEmptyToolsResultsError(callingsendToolResultswith empty array)
Practical handling pattern
Streaming handling pattern
ForsendMessageStreaming, handle failures via onError callback and transport exceptions.