Public client SDKs for TensorBlock HAAS.
HAAS exposes agent harness runtimes through an HTTP API. This repository contains language-specific SDKs that wrap the run, polling, artifact, event, delivery, and extension APIs for application backends and pipelines.
- Python:
python/
Future SDKs can live beside it, for example:
python/
typescript/
go/
java/
pip install 'git+https://github.com/TensorBlock/haas-client.git#subdirectory=python'from haas_client import HAASClient
client = HAASClient(
base_url="https://haas.example.com",
token="YOUR_HAAS_API_TOKEN",
)
run = client.run_and_wait(
agent="codex",
prompt="Hello world. Reply with a short greeting.",
raise_on_failure=True,
)
print(run["result"]["final_message"])