Python SDK
What this lets you do
Create durable image turns from Python against a local runtime or DreamLayer Agent API.What you need
- Python 3.11 or later
- A DreamLayer clone for local installation
- A running local runtime or a server-side
DREAMLAYER_API_KEY
Steps
1. Install from the clone
2. Create a local conversation
3. Create a managed execution
Confirm it worked
The local example prints durable job stages ending in a terminal state. The managed example prints anasset event followed by done with status completed.
Common errors
401: replace a missing, invalid, or revoked managed key.402: add live credits or use a test key.- Connection refused: start the local runtime and use its printed loopback URL.