Python SDK for H Company's Agent API: autonomous agents powered by Holo.
Project description
Python SDK for the H Company Agent API. Launch autonomous agents powered by Holo, stream their progress, and steer them mid-run.
Documentation · Get an API key · PyPI · TypeScript SDK · H Company
Installation
pip install hai-agents
Requires Python 3.10 or newer. Grab an API key at portal.hcompany.ai.
Quickstart
Launch the built-in h/web-surfer-holo3-1-35b agent, which ships with its own browser, and describe the task in plain language. run_session_until_done polls until the agent finishes and returns the final answer.
from hai_agents import Client, run_session_until_done
client = Client(token="YOUR_API_KEY")
result = run_session_until_done(
client,
agent="h/web-surfer-holo3-1-35b",
messages="What are the top 3 stories on Hacker News right now?",
)
print(result.status) # "completed"
print(result.answer)
An AsyncClient mirrors this API for asyncio.
Documentation
Guides, core concepts, and the full API reference live at hub.hcompany.ai/agent-api, covering streaming progress, steering a live session, regions, structured output, and error handling.
License
Project details
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 hai_agents-0.1.1.tar.gz.
File metadata
- Download URL: hai_agents-0.1.1.tar.gz
- Upload date:
- Size: 59.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b15712a4fde5c4fa5a4c59a429d2030be6ddfa0abf7b8d12d70767ec78fe5b4
|
|
| MD5 |
c9787c7e573ef6f9a52cbfe069823b6a
|
|
| BLAKE2b-256 |
54c1918f763a486f53dbb3ba8e0d5be081449639b3df2ae653fa0bd18989203a
|
Provenance
The following attestation bundles were made for hai_agents-0.1.1.tar.gz:
Publisher:
publish.yml on hcompai/hai-agents-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hai_agents-0.1.1.tar.gz -
Subject digest:
0b15712a4fde5c4fa5a4c59a429d2030be6ddfa0abf7b8d12d70767ec78fe5b4 - Sigstore transparency entry: 1718506520
- Sigstore integration time:
-
Permalink:
hcompai/hai-agents-python@506edcc9237aed9a77438536306a0b1b1609a7ee -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/hcompai
-
Access:
internal
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@506edcc9237aed9a77438536306a0b1b1609a7ee -
Trigger Event:
release
-
Statement type:
File details
Details for the file hai_agents-0.1.1-py3-none-any.whl.
File metadata
- Download URL: hai_agents-0.1.1-py3-none-any.whl
- Upload date:
- Size: 96.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
daadc9c2f931b235b5f8a71d3d62b61f02e48a322c9dd2b67317c0f668a4c823
|
|
| MD5 |
2b75fa461d21bf0a31b3da2d275169c3
|
|
| BLAKE2b-256 |
d1dd5fbf906959aef79e8adcf2ffe809d28c61fd2117191d05163cd014b10615
|
Provenance
The following attestation bundles were made for hai_agents-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on hcompai/hai-agents-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hai_agents-0.1.1-py3-none-any.whl -
Subject digest:
daadc9c2f931b235b5f8a71d3d62b61f02e48a322c9dd2b67317c0f668a4c823 - Sigstore transparency entry: 1718507442
- Sigstore integration time:
-
Permalink:
hcompai/hai-agents-python@506edcc9237aed9a77438536306a0b1b1609a7ee -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/hcompai
-
Access:
internal
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@506edcc9237aed9a77438536306a0b1b1609a7ee -
Trigger Event:
release
-
Statement type: