AgentClient (Web)
The web client uses fetch-based streaming.Constructor
Methods
stream
Start a new streaming conversation.
Example:
reconnect
Reconnect to an existing session.listSessions
List all sessions for the user.getSession
Get a session’s processed conversation.getSessionRaw
Get a session’s raw content (includes internal data).getSessionStatus
Check if a session is streaming.updateSession
Update session metadata.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 anAgentEventEmitter 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:Related
- Types Reference - Type definitions
- Events Reference - SSE events
- useJadeSession - React hook