Catalog PyPI
Back to packageRELEASE DETAILS

0.1.0

PyPI

agentharness-sdk

Ergonomic agent harness on top of agentharness-core: Agent, @tool, and testable, replayable runs. Imports as `agentharness`.

agentaideterministicllmreplaystate-machinetools
Published25 Jun 2026
Direct dependencies1
Transitive dependenciesNot calculated

README

Version 0.1.0 documentation

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
  • @tool turns a typed Python function into a tool — the JSON schema is generated from type hints, no hand-written schemas.
  • Agent wraps 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.")

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 1

Native requirements
1 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
agentharness-core
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.12",
  "evaluation": "NOT_EVALUATED"
}
agentharness-core>=0.1.0runtime

Distribution files

2 collected
agentharness_sdk-0.1.0-py3-none-any.whl

bdist_wheel · 5.51 KB · Python py3

Source file
agentharness_sdk-0.1.0.tar.gz

sdist · 5.26 KB · Python source

Source file

Repository

PENDING
aafre/agentharness

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:09 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:99ba3f2a667782a1165c17f09198a2cd0d42c8777c451a5aba007c835ff55854

Other collected versions

View all collected versions →