SDK integrations handle errors in two channels:Documentation Index
Fetch the complete documentation index at: https://docs.illa.io/llms.txt
Use this file to discover all available pages before exploring further.
- 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.