agentharness-contrib
Provider implementations and common tools for AgentHarness. Each provider lives behind an optional extra, so the core stays dependency-free.
pip install "agentharness-contrib[anthropic]"
from agentharness import Agent, tool
from agentharness_contrib import AnthropicModel
@tool
def add(a: int, b: int) -> str:
"""Add two numbers."""
return str(a + b)
agent = Agent(model=AnthropicModel("claude-opus-4-8"), tools=[add])
run = agent.run("What is 2 + 3?")
print(run.result)
run.trace.save("run.jsonl") # real model call, fully recorded and replayable
AnthropicModel maps the core Model protocol onto Anthropic's Messages API. Pass
client= to inject a preconfigured anthropic.Anthropic (or a test double); extra
keyword arguments are forwarded to messages.create (e.g. thinking=..., system=...).
The Messages API translation is pure and SDK-free, so an agent's provider boundary is unit-tested without network calls.
Planned: OpenAI ([openai]) and Ollama / OpenAI-compatible providers.
Metadata
Release files for agentharness-contrib 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 | Provenance | Actions |
|---|---|---|---|---|
| agentharness_contrib-0.1.0.tar.gz | 6.4 kB | Without provenance | Details for agentharness_contrib-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| agentharness_contrib-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for agentharness_contrib-0.1.0-py3-none-any.whl |
Total release size: 12.7 kB
Release files / agentharness_contrib-0.1.0.tar.gz
| Download URL | agentharness_contrib-0.1.0.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0289e0ccfdd2b7fc2ed5443f0709c1b8a75994510ae22b7a0a22ef2a666f794c
|
|
BLAKE2b-256 checksum How to use checksums |
c6337417efb94685579e405424ec73ae0b4b8602fa945a683543f129f27c9187
|
| 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_contrib-0.1.0-py3-none-any.whl
| Download URL | agentharness_contrib-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
955b65176900c297d176602a2a65c59bc185f58edcffa163b6e0f64240fd2f36
|
|
BLAKE2b-256 checksum How to use checksums |
c4b0383ce9ce419713786dab2188a2d17dc1042b8593d10122c836f18761a8b8
|
| 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}
|
Security for agentharness-contrib 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.