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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agentassert_typec_proxy-0.7.0.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agentassert_typec_proxy-0.7.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file agentassert_typec_proxy-0.7.0.tar.gz.

File metadata

  • Download URL: agentassert_typec_proxy-0.7.0.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.13

File hashes

Hashes for agentassert_typec_proxy-0.7.0.tar.gz
Algorithm Hash digest
SHA256 2cb36681ccf996695df9417548860f0b69c08f0e6177df31440a19a6b0d78f73
MD5 90d6d12c41dc37a6ef53a98c7a83a5b1
BLAKE2b-256 c3c38a258c172d0192bcdca53c516c51b33c33f5321d4c644679274c5b138ca8

See more details on using hashes here.

File details

Details for the file agentassert_typec_proxy-0.7.0-py3-none-any.whl.

File metadata

File hashes

Hashes for agentassert_typec_proxy-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6ff4cd6bdbffd8b8eb4a998463a657c9af32dc757e45081b5217b03c760d2556
MD5 960bfb2d1772c6670006a704dfe35a2b
BLAKE2b-256 d4435ebd96cac2540e2547d4b303aa67db4f504177eb84331d13c576b39c98f5

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.7.0 This release

2 files

0.6.2

2 files

0.6.1

2 files

0.6.0

2 files

0.5.0

2 files

0.4.3

2 files

0.4.2

2 files

0.4.1

2 files

0.4.0

2 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