Skip to content

Releases: hcompai/hai-agents-python

v1.0.2

Choose a tag to compare

@abonneth abonneth released this 01 Jul 09:55
e1ab3db

hai-agents v1.0.2

v1.0.1

Choose a tag to compare

@abonneth abonneth released this 29 Jun 10:51
c3e6b59

hai-agents 1.0.1

v1.0.0

Choose a tag to compare

@abonneth abonneth released this 25 Jun 15:21
0a0e5dd

hai-agents v1.0.0

v0.1.12

Choose a tag to compare

@abonneth abonneth released this 18 Jun 16:54
974a83e

Release v0.1.12.

v0.1.11

Choose a tag to compare

@abonneth abonneth released this 17 Jun 13:41
84e8e73

hai-agents 0.1.11

v0.1.10

Choose a tag to compare

@abonneth abonneth released this 16 Jun 13:23
b521b08

Release v0.1.10.

v0.1.8

Choose a tag to compare

@abonneth abonneth released this 11 Jun 18:50
3e24877

Typed structured output

Pass a Pydantic model via answer_schema=; the SDK sends the matching JSON Schema as the agent's answer format and parses the final answer back into your model.

from pydantic import BaseModel
from hai_agents import Client, run_session

class Job(BaseModel):
    title: str
    company: str

class Jobs(BaseModel):
    jobs: list[Job]

client = Client()
result = run_session(
    client,
    agent="h/web-surfer-holo3-1-35b",
    messages="Find 3 open ML engineering roles in Paris.",
    answer_schema=Jobs,
)
for job in result.answer.jobs:  # result.answer is a Jobs instance
    print(job.title, "@", job.company)

Improvements

  • run_session / wait_for_session now return when a session goes idle after answering, instead of polling until timeout.
  • Fixed environment payload serialization that could reject requests with a discriminator validation error.

v0.1.7

Choose a tag to compare

@abonneth abonneth released this 10 Jun 21:15
bc99a7c

Custom tools

Pass local Python functions to an agent via tools=; the SDK executes the agent's tool calls on your machine and posts results back automatically.

def get_weather(city: str) -> str:
    """Current weather for a city."""
    ...

result = run_session(client, agent="h/web-surfer-holo3-1-35b", messages="...", tools=[get_weather])

Also new: Session.agent_view_url, a link to the session's Agent View (live view and replay), and a clickable live-view link in the hai CLI.

Note: the v0.1.6 build on PyPI does not contain these features; this release is the one that ships them.

v0.1.6

Choose a tag to compare

@abonneth abonneth released this 10 Jun 16:22
d393d5f

Maintenance release: CLI fix (clear stale local-scope Claude MCP entry on reinstall). Custom tools were not included in this build; they ship in v0.1.7.

v0.1.5

Choose a tag to compare

@abonneth abonneth released this 09 Jun 13:56
be9ad90

Release v0.1.5.