datarobot-moderations
DataRobot Monitoring and Moderation framework
Decision gist · record as of 2026-08-14
Yes, if you are already in the DataRobot ecosystem and need LLM moderation with centralized telemetry. The library is actively maintained, has low install friction, and covers common guard types out of the box. However, the proprietary license and unclear license treatment require legal review before use outside DataRobot deployments. Consider alternatives if you need a permissively licensed or vendor-neutral moderation framework.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires DataRobot API credentials (endpoint and api_token) via environment variables or explicit arguments; async/await context required for evaluation methods.
- Low install friction; pure Python wheel with 14 runtime dependencies including standard data/ML libraries (numpy, pandas, pillow) and OpenTelemetry instrumentation.
- Active maintenance as of latest release.
License · maintenance · safety
(unclear) — Licensed under DataRobot Tool and Utility Agreement (proprietary, non-standard). License treatment is unclear—review the full terms before use in commercial or redistributed projects.
last release 2026-08-14 (0 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 89,547 downloads/mo, #13,652 on PyPI
Alternatives
Verify before relying
pip install datarobot-moderations
from datarobot_moderations import ModerationPipeline
pipeline = ModerationPipeline.from_yaml("moderation_config.yaml", endpoint="...", api_token="...")
result, latency, df = await pipeline.evaluate_prompt_async("user prompt")- Whether the proprietary DataRobot Tool and Utility Agreement permits use outside DataRobot deployments.
- Performance characteristics and latency overhead of guard evaluation at scale.
- Availability and stability of optional extras and their transitive dependency footprint.
What it is and what it does
DataRobot Moderations is a library that wraps LLM inference pipelines to enforce content moderation policies. It reads guard rules from YAML configuration and evaluates prompts before they reach the LLM (prescore guards) and responses after generation (postscore guards), returning blocked/modified text and metric values. The library supports multiple guard types including token-count, ROUGE-1, cost, and optional evaluators for tasks like faithfulness and task adherence.
The core workflow is: load a pipeline from YAML, dict, or Pydantic config, call evaluate_prompt_async or evaluate_response_async for individual checks, or use evaluate_full_pipeline_async to run prescore → LLM → postscore in sequence. It integrates with OpenTelemetry for tracing and metrics export. The library depends on aiohttp, requests, pydantic, and data libraries (numpy, pandas, pillow, tiktoken, rouge-score) for core functionality; optional extras pull in heavier ML runtimes and cloud SDK dependencies.
Use it for
- Block adversarial or injection-attack prompts before they reach a production LLM deployment.
- Enforce output safety policies on LLM responses (e.g., block factually inconsistent or off-topic completions).
- Monitor and log moderation metrics (token counts, ROUGE scores, cost) for compliance and audit trails.
- Integrate model-backed evaluators for task-specific guards like faithfulness or guideline adherence.
- Ship traces and metrics to DataRobot's telemetry backend for centralized monitoring of LLM safety.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are already in the DataRobot ecosystem and need LLM moderation with centralized telemetry.
The library is actively maintained, has low install friction, and covers common guard types out of the box. However, the proprietary license and unclear license treatment require legal review before use outside DataRobot deployments. Consider alternatives if you need a permissively licensed or vendor-neutral moderation framework.
Install
datarobot-moderations on PyPI
Before you install
Low install friction; pure Python wheel with 14 runtime dependencies including standard data/ML libraries (numpy, pandas, pillow) and OpenTelemetry instrumentation. Active maintenance as of latest release.
Requires DataRobot API credentials (endpoint and api_token) via environment variables or explicit arguments; async/await context required for evaluation methods.
License in practice
Licensed under DataRobot Tool and Utility Agreement (proprietary, non-standard). License treatment is unclear—review the full terms before use in commercial or redistributed projects.
Quickstart
pip install datarobot-moderations
from datarobot_moderations import ModerationPipeline
pipeline = ModerationPipeline.from_yaml("moderation_config.yaml", endpoint="...", api_token="...")
result, latency, df = await pipeline.evaluate_prompt_async("user prompt")
Verify before relying
- Whether the proprietary DataRobot Tool and Utility Agreement permits use outside DataRobot deployments.
- Performance characteristics and latency overhead of guard evaluation at scale.
- Availability and stability of optional extras and their transitive dependency footprint.
Package facts
| License | Not declared unclear |
| Python support | Capped below the current Python release <3.13,>=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 14 packagesaiohttpbackoffclicknumpyopentelemetry-apiopentelemetry-exporter-otlp-proto-httpopentelemetry-instrumentationopentelemetry-sdkpandaspillowpydanticrequestsrouge-scoretiktoken |
| Maintenance | Actively maintained 0 days since the last release |
| First released | |
| Downloads | 89,547 / month, #13,652 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: Other/Proprietary LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12 |
Evidence: datarobot_moderations-11.3.1-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “llm prompt response moderation”
- datarobot-moderationsEnforces content moderation on LLM prompts and responses using…
- nemoguardrailsAdds programmable guardrails to LLM-based conversational applications…
- opikOpik is an open-source LLM observability and evaluation platform that…
Give your agent the search over MCP, or paste the wish link into any chat.
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to call 100+ LLM providers (OpenAI, Anthropic, Gemini, Bedrock, Azure, and others) using OpenAI-compatible API format, available as both a Python SDK and a self-hosted AI Gateway proxy server.
Install it if you need to work with multiple LLM providers or want to centralize LLM routing in your organization.
Client library and CLI tool for downloading, uploading, and managing models, datasets, and repositories on the Hugging Face Hub platform.
Install it if you work with Hugging Face Hub models or datasets.
LangChain provides a framework for building agents and LLM-powered applications by composing language models, tools, and memory through a unified API that abstracts over multiple model providers.
hf-xet provides chunk-based deduplication and efficient file transfer for the Hugging Face Hub, enabling faster uploads and downloads of large files with local disk caching.
Tokenizers converts raw text into token sequences for NLP models, with support for training custom vocabularies and using pre-built tokenizers (BPE, WordPiece) optimized for speed via Rust.
Transformers provides a unified framework for loading, fine-tuning, and running state-of-the-art pretrained models across text, vision, audio, video, and multimodal tasks using PyTorch, JAX, or TensorFlow.
Install it if you need to run or train any transformer-based model for NLP, vision, audio, or multimodal tasks.
See also llm-guard · nemoguardrails · toolguard · guardrails-ai · datarobot-genai · datarobot · guardrails-ai-types · datarobot-drum · deepteam · datarobot-predict