SDK
The Python SDK is published asrubric on PyPI.
Optional extras
Choose the extra(s) matching your agent framework. Each extra is a thin adapter that wraps the framework’s tool-dispatch hook so every call is governed.| Extra | When to use it |
|---|---|
rubric[mcp] | Anything that speaks the Model Context Protocol. |
rubric[claude-agent] | Claude Agent SDK (claude-agent-sdk). |
rubric[langchain] | LangChain BaseTool lists. |
rubric[runtime] | Optional native evaluator backend (Rust). Faster, identical semantics. |
rubric[presidio] | Presidio-backed DLP detection. |
pip install 'rubric-app[mcp,runtime,presidio]'.
Configure
The SDK reads its configuration from environment variables:AG_API_URL is the Rubric API URL you received during onboarding. Set it in your deployment’s secret manager alongside the enrollment token.