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.2.tar.gz (8.4 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.2-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: agentassert_typec_proxy-0.4.2.tar.gz
  • Upload date:
  • Size: 8.4 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.2.tar.gz
Algorithm Hash digest
SHA256 4deb3de703ea1d799449978d6feb684b33b241c20a3711ee75379f73d708c523
MD5 1bb691ed33031b72f178ae20b97033b8
BLAKE2b-256 b7d47d85c43e51d076ea883837f4b8321c9d44f9f5e564415e36e5ab7355d10e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for agentassert_typec_proxy-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5c0055df73257801c50e613dd26b2de1e3815ffc1f93b8ec88badb985c2947ad
MD5 5cb70ed783e8b45b96eeaab2873c61cf
BLAKE2b-256 eea20910332283c4490ddf685f37da9de0537c6111f28e854bd2a1c6cd3318a9

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