Skip to main content

Python SDK for H Company's Agent API: autonomous agents powered by Holo.

Project description

H Agent API

PyPI Python versions License: MIT

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 and export it:

export H_API_KEY=hk-...

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 polls until the agent finishes and returns the final answer.

from hai_agents import Client, run_session

client = Client()  # reads H_API_KEY from the environment

result = run_session(
    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

MIT

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

hai_agents-0.1.2.tar.gz (1.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hai_agents-0.1.2-py3-none-any.whl (96.9 kB view details)

Uploaded Python 3

File details

Details for the file hai_agents-0.1.2.tar.gz.

File metadata

  • Download URL: hai_agents-0.1.2.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for hai_agents-0.1.2.tar.gz
Algorithm Hash digest
SHA256 a0a98a8a40fdc15e3da242568aa492a1a1905d495958bb0bc21f769a4e0fabfa
MD5 339ea827c8157bfe51dbb386d73fec49
BLAKE2b-256 5e3571c8a2cecbbc776a370a623dff1a222a25db253d90c2ef53f75e7e73a1eb

See more details on using hashes here.

Provenance

The following attestation bundles were made for hai_agents-0.1.2.tar.gz:

Publisher: publish.yml on hcompai/hai-agents-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hai_agents-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: hai_agents-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 96.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for hai_agents-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 886011c2061aa88ae1f74837adb9da6d09e9ebdafdb3381882290bf6f19305fc
MD5 2fcc9ba1bcde512ff8cc30864313fded
BLAKE2b-256 89a4c175c02789d86e7c4b5fe4b7ba4221050d4f09ea16794d05b2ad9c40d60f

See more details on using hashes here.

Provenance

The following attestation bundles were made for hai_agents-0.1.2-py3-none-any.whl:

Publisher: publish.yml on hcompai/hai-agents-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page