Install an official SDK
- Node.js
- Python
SDK Methods
Both SDKs provide the same core methods:| Method | Description |
|---|---|
client.run() | Create and optionally wait for a run |
client.stream() | Create a run and stream events |
client.get(runId) | Get the status of a run |
client.wait(runId) | Poll until a run completes |
client.cancel(runId) | Cancel a running or queued run |