RDK Python SDK
RDK (Reinforcement Development Kit) is a lightweight Python library for tracing LLM applications. It provides automatic instrumentation for popular LLM providers and frameworks, giving you complete visibility into your AI application’s behavior.Why RDK?
Building LLM applications requires understanding what’s happening under the hood. RDK helps you:- Debug faster - See exactly what prompts are sent and responses received
- Monitor costs - Track token usage across all your LLM calls
- Optimize performance - Identify slow calls and bottlenecks
- Ensure compliance - Automatically redact PII from traces
Key Features
Auto-instrumentation
Automatic tracing for Anthropic, OpenAI, LangChain, and Gemini SDKs
PII Redaction
Built-in redaction for emails, phone numbers, SSNs, API keys, and custom patterns
Minimal Overhead
Async batching with configurable flush intervals
Framework Agnostic
Works with FastAPI, Flask, or any Python application
Synthetic Worlds
Simulate tool calls with realistic responses for fast local iteration
Supported Integrations
| Provider | Auto-instrumentation | Notes |
|---|---|---|
| Anthropic | Yes | Auto-instrumented at init() |
| OpenAI | Yes | Auto-instrumented at init() |
| LangChain | Yes | Auto-instrumented at init() |
| Google Gemini | Yes | Auto-instrumented at init() |
| BAML | Manual | Requires b = instrument_baml(b) after init() |
Quick Example
Next Steps
Quickstart
Get up and running in 5 minutes
Integrations
Set up your LLM provider

