Skip to main content

ampup-harness

Python SDK for AmpUp Harness. Python 3.10+, standard library only (no dependencies).

uv add ampup-harness

Point it at a harness with environment variables:

export AMPUP_HARNESS_URL=https://harness.example.com
export AMPUP_HARNESS_API_KEY=...
# optional: send every model as an OpenRouter slug (for runtimes with only an OpenRouter key)
export AMPUP_HARNESS_AGNO_ROUTE=openrouter

Agno-compatible API (ampup_harness.agno)

Code written for Agno runs on the harness after changing from agno. to from ampup_harness.agno. in its imports:

from ampup_harness.agno.agent import Agent
from ampup_harness.agno.models.openai import OpenAIChat

agent = Agent(model=OpenAIChat(id="gpt-5"), instructions="Be terse.", markdown=True)
agent.print_response("Share a two-line story.", stream=True)
  • Agents without Python tools become harness agent templates and run server-side; sessions, memory blocks and harness tools (tools=["calculator"]) live on the harness.
  • Agents with Python function tools (functions, @tool, Toolkit, Function) run Agno's tool loop in your process over the harness gateway (/v1/messages); async tools run on the caller's event loop under arun.
  • run / arun / print_response, streaming events, Message-list input, cancel_run, agno.exceptions and sequential Workflows follow Agno 3.x. A provider failure ends a run the way Agno does: a RunErrorEvent in a stream, or RunOutput.status == ERROR.

Not covered yet: Team, knowledge bases (RAG), structured outputs, media inputs, reasoning models, human-in-the-loop tools, and pre/post hooks. Arguments the harness cannot honour raise NotImplementedError (when ignoring them would change the result) or warn.

Low-level client

from ampup_harness import HarnessConfig, HarnessError

config = HarnessConfig.from_env()  # AMPUP_HARNESS_URL, AMPUP_HARNESS_API_KEY

Use HTTPS beyond trusted loopback. Credentials stay in headers, redirects are refused, and URLs carrying credentials, a query or a fragment are rejected.

License: Apache-2.0.

Metadata

Release files for ampup-harness 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ampup-harness 0.1.0
File Size Uploaded Provenance Actions
ampup_harness-0.1.0.tar.gz 33.6 kB Without provenance Details for ampup_harness-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ampup-harness 0.1.0
File Interpreter ABI Platform Actions
ampup_harness-0.1.0-py3-none-any.whl Python 3 none any Details for ampup_harness-0.1.0-py3-none-any.whl

Total release size: 81.4 kB

Release files / ampup_harness-0.1.0.tar.gz

Download URL ampup_harness-0.1.0.tar.gz
Size 33.6 kB
Tags Source
SHA-256 checksum
How to use checksums
06f0b9415abe18e203905a1078841a2f2b07aed4e16ceb84d28c1406be49cef8
BLAKE2b-256 checksum
How to use checksums
6e23512a6a20b5164bdf80a2228b0299f0ebe91970ab2a96fe9e99c0e4512484
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.4

Release files / ampup_harness-0.1.0-py3-none-any.whl

Download URL ampup_harness-0.1.0-py3-none-any.whl
Size 47.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eccad74821835ecbeea81430a24865e66d0797ea1034874c7ea1880873d4f2b6
BLAKE2b-256 checksum
How to use checksums
3257e10e64a2314a239c7291bb4889fb7cc48c55d2f8815a720cd45e5e6b64a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.4

Security for ampup-harness 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page