nightly-sdk
Three calls connect an agent to Nightly. Nightly can then roll back a release, fail over a model or switch off a capability for you — within the policy you set — and verify the fix by replaying failed inputs through your own agent.
from nightly_sdk import Nightly
ns = Nightly() # reads NIGHTLY_API_URL and NIGHTLY_AGENT_TOKEN
prompt = load_prompt(ns.release("v12")) # which release to run
model = ns.model("claude-haiku") # which model (failover-aware)
if ns.flag("auto_refunds", True): ... # kill switches
max_steps = ns.max_steps(8) # step cap
ns.report_deploy("v13", commit="<git sha>") # from CI, when you ship
ns.record("failed", trace_id=..., value_usd=12) # optional business outcome per run
ns.serve_replays(lambda inp: run_agent(inp, dry_run=True)) # verification hook
Fail-open: if Nightly is unreachable, every call returns your default. Traces come from your own neatlogs project; the SDK never sends prompts or outputs anywhere.
Metadata
Release files for nightly-sdk 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nightly_sdk-0.1.0.tar.gz | 4.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nightly_sdk-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.2 kB
Release files / nightly_sdk-0.1.0.tar.gz
| Download URL | nightly_sdk-0.1.0.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f34717e61e736a360da7495f8a017ab44bedf3fa33043c0dc6c46b60f115c7ca
|
|
BLAKE2b-256 checksum How to use checksums |
974211ecc6cb37a67f7d361706aeac9fb270d33161c181a9c8d0343c0e9baa07
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / nightly_sdk-0.1.0-py3-none-any.whl
| Download URL | nightly_sdk-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b025312e297d24a564d355c5a15a70fa68aceaba132817918c6b493af08e4f21
|
|
BLAKE2b-256 checksum How to use checksums |
9e7dd8300b2698522714be02f7246669cae042e4d24ab5bc83f952db624d3f74
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|