asiflow-hyper
Python client for the Hyper Agent API: delegate a software objective to Hyper, run and verify the work, read the evidence. Thin and honest: every method is one documented REST call (https://api.hyper.asiflow.ai/openapi.json); errors are the API's RFC 9457 problems.
from asiflow_hyper import HyperClient, device_login
token = device_login(client_name="my-agent", scope="objectives:read objectives:write runs:write evidence:read deploy:verify offline_access")
hyper = HyperClient(token=token.access_token)
job = hyper.create_objective(name="Bakery site", objective="A one-page site for Nour's bakery with a contact form.")
job = hyper.wait_job(job["id"])
run = hyper.start_run(job["result"]["project_id"], policy={"budget_cap_usd": 10})
run = hyper.wait_run(run["result"]["run_id"], on_needs_you=lambda card: "approved")
for attempt in run["attempts"]:
if attempt["status"] == "verified":
print(hyper.attempt_evidence(attempt["id"]))
The agent-interop-e2e lane runs this client against production on every Hyper deploy.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file asiflow_hyper-1.0.0.tar.gz.
File metadata
- Download URL: asiflow_hyper-1.0.0.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a62d2662e05c9baf7700456357519d249d2c38c1d58d860e6594e556da975b43
|
|
| MD5 |
706a6c0f09e43c865bfa2a0ca3862e44
|
|
| BLAKE2b-256 |
b3886a1b0e0978a708a836e7ddbbe3759a6b2c6e6c956294dd6da5970a8e03e5
|
File details
Details for the file asiflow_hyper-1.0.0-py3-none-any.whl.
File metadata
- Download URL: asiflow_hyper-1.0.0-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a2a2d80ece7ce1ab904f994130ca8f2fa77cf864b03c82f3aa9f78563e437d5
|
|
| MD5 |
3007c1e72a1d6b25b9020d4bf56c2a9e
|
|
| BLAKE2b-256 |
cab64d240040044a2c68b31b4d34d42c9f9d479bff3d25169bee6b58470ac364
|