Skip to main content
CoreApiProvider is the low-level HTTP client used by Chat and IllaSDK.

Constructor

Throws CoreApiAuthenticationMissing when x-api-key is missing.

Methods

sendMessage

Sends a non-streaming chat request.

sendMessageStreaming

Sends a streaming SSE request and emits telemetry/final callbacks. The canonical streaming path is POST /api/v1/chat with Accept: text/event-stream.

awaitTransaction

Checks action status via /api/v1/actions/check.

getRoutes

Returns resolved route paths.

Defaults

  • baseURL: https://api.illa.io
  • routes.chat: /api/v1/chat/
  • routes.actionStatus: /api/v1/actions/check

Example