Skip to main content

AgentAssert Type-C HTTP forwarding proxy — formal behavioral contracts middleware for any AI agent, any provider.

Project description

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

Project details


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.4.3.tar.gz (8.5 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.4.3-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: agentassert_typec_proxy-0.4.3.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for agentassert_typec_proxy-0.4.3.tar.gz
Algorithm Hash digest
SHA256 e4191fcfd1dd1a441c2042221f5a9b07190983815a9b6fd66fc9540d64e62f37
MD5 8822f347f7bec70520afb681977423cd
BLAKE2b-256 8b277602b43a1df1d5910dc72f272e45b63013d666bf11a888517cd51e4d1b26

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for agentassert_typec_proxy-0.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e54a894c3957a053414c6d41bde394d1bbb1f29342274d9b002b94f66dee829a
MD5 2a7d13c29f59b5e973af842ec5ecdf18
BLAKE2b-256 1bea3a88c50ed6289e11a2feb5c013eff7aa72d8a38813fd1528540da6e4a24f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page