agentharness
The ergonomic, batteries-included layer over agentharness-core.
from agentharness import Agent, tool
@tool
def add(a: int, b: int) -> str:
"""Add two numbers."""
return str(a + b)
agent = Agent(model=my_model, tools=[add], system="You are helpful.")
run = agent.run("What is 2 + 3?")
print(run.result) # "2 + 3 = 5."
run.trace.save("run.jsonl") # the whole run is recorded and replayable
@toolturns a typed Python function into a tool — the JSON schema is generated from type hints, no hand-written schemas.Agentwraps a model + tools + optional system prompt.run()executes to completion;stream()yields live events;arun()/astream()are the async variants.- Built entirely on the deterministic core, so every agent you build is inspectable and
replayable for free (
from agentharness_core import replay).
Test agents like ordinary code, with no network:
from agentharness.testing import FakeModel, assert_used_tool, assert_answer
agent = Agent(model=FakeModel([...]), tools=[add])
run = agent.run("What is 2 + 3?")
assert_used_tool(run, "add")
assert_answer(run, "2 + 3 = 5.")
Metadata
Release files for agentharness-sdk 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| agentharness_sdk-0.1.0.tar.gz | 5.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| agentharness_sdk-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.0 kB
Release files / agentharness_sdk-0.1.0.tar.gz
| Download URL | agentharness_sdk-0.1.0.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
55e5a7243be2013c60d41a52071bee6889f7b4d97c54849c5892316af6b310ce
|
|
BLAKE2b-256 checksum How to use checksums |
daf2ad9868e5d3bb4dd4151c6a8734f077dec2ab2ae928f67d7919ef450bb7cd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.24 {"installer":{"name":"uv","version":"0.11.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / agentharness_sdk-0.1.0-py3-none-any.whl
| Download URL | agentharness_sdk-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7a84839be3e1e077c913eba1bc1ba1a9920a1711c933787ccc58b565146ac379
|
|
BLAKE2b-256 checksum How to use checksums |
3c743e6e7b6254e081b0b2332c1d989d7227fa8b864958c0e660fd5b2c6b7a75
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.24 {"installer":{"name":"uv","version":"0.11.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|