Skip to content

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

HAAS Client SDKs

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.

SDKs

Future SDKs can live beside it, for example:

python/
typescript/
go/
java/

Python Install

pip install 'git+https://github.com/TensorBlock/haas-client.git#subdirectory=python'

Python Quick Start

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.",
    worklog=True,
    raise_on_failure=True,
)

print(run["result"]["final_message"])
print([artifact for artifact in run["result"]["artifacts"] if artifact["type"] == "worklog"])

Production Acceptance

The Python SDK includes a fanout acceptance script for pipeline releases:

export HAAS_API_TOKEN="..."
haas-fanout-acceptance \
  --base-url https://haas-api-production.up.railway.app \
  --agents codex,claude-code,grok \
  --groups 1 \
  --worklog

About

Python client for TensorBlock HAAS.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages