Skip to main content
The Jade SDK provides client classes for interacting with the Jade API.

AgentClient (Web)

The web client uses fetch-based streaming.

Constructor

Methods

stream

Start a new streaming conversation.
Parameters: Example:

reconnect

Reconnect to an existing session.

listSessions

List all sessions for the user.
Response:

getSession

Get a session’s processed conversation.
Response:

getSessionRaw

Get a session’s raw content (includes internal data).

getSessionStatus

Check if a session is streaming.
Response:

updateSession

Update session metadata.
Parameters:

deleteSession

Delete a session.

cancelSession

Cancel an active streaming session.

JadeClient (React Native)

The React Native client uses native SSE streaming.

Constructor

Additional Methods

The JadeClient includes all AgentClient methods plus:

Skills Management

Plugins

Properties


Event Emitter

Both clients return an AgentEventEmitter for streaming:

Events


Error Handling

Client methods throw errors with HTTP status codes:

Using with Hooks

In most cases, use the hooks instead of the client directly: