Skip to main content

agentassert-typec-proxy

HTTP forwarding proxy — formal behavioral contracts middleware with zero code change.

This is the flagship. Drop it between any agent harness and any LLM API. Set one env var. Done.

Quickstart

pip install agentassert-typec-proxy
agentassert-proxy proxy start --contract contract.yaml

Then in your agent environment:

export ANTHROPIC_BASE_URL=http://localhost:9000/anthropic
export OPENAI_BASE_URL=http://localhost:9000/openai

Supported Providers

Provider Route Prefix Env Var
Anthropic /anthropic ANTHROPIC_BASE_URL
OpenAI /openai OPENAI_BASE_URL
Gemini /gemini GEMINI_BASE_URL
OpenRouter /openrouter OPENROUTER_BASE_URL

Endpoints

Method Path Description
GET /health Health check, returns contract name and Θ
GET /status Full status: Θ, JSD, violation count
POST /admin/reload Trigger contract hot-reload

Performance

  • p99 overhead < 30ms (excluding provider RTT)
  • All regex patterns pre-compiled at startup
  • Hot-reload via SHA256 file polling (500ms interval)
  • Fail-safe: invalid contract → keeps old monitor

License

MIT

Metadata

Release files for agentassert-typec-proxy 0.7.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 agentassert-typec-proxy 0.7.0
File Size Uploaded
agentassert_typec_proxy-0.7.0.tar.gz 2.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for agentassert-typec-proxy 0.7.0
File Interpreter ABI Platform
agentassert_typec_proxy-0.7.0-py3-none-any.whl Python 3 none any Details

Total release size: 6.4 kB

Release files / agentassert_typec_proxy-0.7.0.tar.gz

Download URL agentassert_typec_proxy-0.7.0.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
2cb36681ccf996695df9417548860f0b69c08f0e6177df31440a19a6b0d78f73
BLAKE2b-256 checksum
How to use checksums
c3c38a258c172d0192bcdca53c516c51b33c33f5321d4c644679274c5b138ca8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Release files / agentassert_typec_proxy-0.7.0-py3-none-any.whl

Download URL agentassert_typec_proxy-0.7.0-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6ff4cd6bdbffd8b8eb4a998463a657c9af32dc757e45081b5217b03c760d2556
BLAKE2b-256 checksum
How to use checksums
d4435ebd96cac2540e2547d4b303aa67db4f504177eb84331d13c576b39c98f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Release history Release notifications | RSS feed

This release

0.7.0 This release

2 release files

0.6.2

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.3

2 release files

0.4.2

2 release files

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