Skip to main content
Cancellation is supported at both request and polling levels.

Cancel sendMessage

IllaSDK.sendMessage accepts an abort signal via the fourth argument.

Cancel sendMessageStreaming

sendMessageStreaming accepts signal in its streaming options.

Cancel provider-level requests

CoreApiProvider.sendMessage and CoreApiProvider.awaitTransaction also accept signal.
Apply the same pattern to provider.awaitTransaction(params, { signal: ac.signal }).

Stop polling subscriptions

subscribeToToolStatus and AsyncToolChecker.subscribe return a subscription with unsubscribe().

Notes

  • sendToolResult and sendToolResults do not currently accept an abort signal.
  • Always wire cancellation to route changes and component unmounts.