Documentation Index
Fetch the complete documentation index at: https://docs.reactor.inc/llms.txt
Use this file to discover all available pages before exploring further.
FileRef
A reference to an uploaded file, returned by upload_file(). Pass into send_command() to attach files to a command.
Definition
ReactorStatus
Connection state enum.
Definition
ReactorState
Definition
ReactorError
Definition
Example
Error codes
| Code | Component | Recoverable | Description |
|---|---|---|---|
CONNECTION_FAILED | api | Yes | Failed to establish a connection |
GPU_CONNECTION_ERROR | gpu | Yes | Connection to GPU dropped |
RECONNECTION_FAILED | gpu | Yes | Failed to reconnect to existing session |
ReactorEvent
Definition
FrameCallback
Definition
- Shape:
(H, W, 3): height, width, 3 color channels - Dtype:
uint8: values 0 to 255 - Color order: RGB
ConflictError
Raised when a connection is superseded by a newer request to the same session.
Definition
VersionMismatchError
Raised when the SDK’s protocol version is incompatible with the server. Update your SDK to resolve.
Definition
fetch_jwt_token()
Fetches a token from the Reactor API using an API key.
Signature
Your Reactor API key (
rk_...).The API URL.
str. Raises RuntimeError if authentication fails.
In most cases you don’t need this directly. Pass
api_key to the Reactor constructor and the SDK handles the exchange automatically during connect().