Conduit
"LangSmith tells you what your agent did. Conduit tells you what went wrong, why, and fixes it — across any framework you already use."
Conduit is a cross-framework AI agent observability and reliability shim. It intercepts tool calls via OpenTelemetry, validates schemas, detects loops, and injects recovery context — all in < 5ms, without modifying your agent code.
Quick Start (< 5 minutes)
pip install conduit-ai-agents
LangGraph (2 lines)
from conduit.shim.adapters.langgraph import install_for_langgraph
install_for_langgraph()
# Your existing LangGraph code — unchanged
graph = StateGraph(State)
# ...
OpenAI Agents SDK (2 lines)
from conduit.shim.adapters.openai_sdk import install_for_openai_sdk
install_for_openai_sdk()
# Your existing agent code — unchanged
agent = Agent(name="...", tools=[...])
Start the dashboard
conduit dashboard
# → http://127.0.0.1:7432
What Conduit Does
| Problem | Conduit's solution |
|---|---|
| Tool called with wrong param types | Schema validator auto-corrects "10" → 10 before execution |
| Agent loops on the same failed call | Loop detector fires at N=3, injects replan context |
| Tool times out repeatedly | Failure classifier + recovery engine retries with backoff |
| Schema drifted since agent was written | Drift detection + conduit schema update to fix |
| No visibility into agent failures | Dashboard with live failure feed + prescriptive recommendations |
CLI
conduit dashboard # Start web dashboard
conduit stream # Live failure stream in terminal
conduit recommend # Print current recommendations
conduit schema list # List registered schemas
conduit schema validate search_web \
--params '{"query":"test","max_results":"10"}' # Validate params
conduit schema update search_web --from-drift # Accept observed drift
conduit schema discover email_send # Infer schema from call history
conduit fix --recommendation UPDATE_SCHEMA_search_web
Register a Schema
from conduit.registry.store import SchemaRegistry
registry = SchemaRegistry("./conduit.db")
registry.register(
tool_id="search_web",
schema={
"type": "object",
"properties": {
"query": {"type": "string"},
"max_results": {"type": "integer", "minimum": 1, "maximum": 100},
},
"required": ["query", "max_results"],
},
version="1.0.0",
)
Ingest MCP Manifests
from conduit.registry.mcp import ingest_mcp_manifest, discover_mcp_servers
# From a file
ingest_mcp_manifest(registry, "/path/to/mcp_server.json")
# Auto-discover from CLAUDE_MCP_SERVERS env var
discover_mcp_servers(registry)
Configuration (conduit.yaml)
shim:
timeout_ms: 5 # Pass-through if intelligence plane takes > 5ms
fallback: pass_through
validation:
hard_gate: false # true = block invalid calls; false = log and pass
auto_correct: true # Auto-fix type mismatches, field renames
detection:
loop_threshold: 3 # N identical calls = loop detected
loop_window: 10
recovery:
enabled: true
max_retries: 2
registry:
db_path: ./conduit.db
Key Invariants
- Never raises into agent code — all hooks are
try/except - Never blocks — passes through if intelligence plane exceeds
timeout_ms - Privacy by default — no param values logged without
CONDUIT_LOG_PAYLOADS=true - Loop detector is per-task — parallel agents never interfere
- Recovery is idempotent — same failure never injected twice
Architecture
Agent (LangGraph / OpenAI SDK / CrewAI)
│
▼ tool calls
[Conduit ConduitProcessor] ← OTel SpanProcessor
│ pre-hook: SchemaValidator (< 3ms)
│ post-hook: ToolFailureDetector + AgentLoopDetector + RecoveryEngine
▼
OTel Collector → SQLite (conduit.db)
▼
Dashboard (localhost:7432) — prescriptive recommendations
REST API
GET /api/v1/health
GET /api/v1/failures
GET /api/v1/failures/{event_id}
GET /api/v1/failures/stream # SSE
GET /api/v1/recommendations
GET /api/v1/tools
GET /api/v1/tools/{tool_id}
GET /api/v1/schemas
GET /api/v1/schemas/{tool_id}
POST /api/v1/schemas/{tool_id}/accept_drift
GET /api/v1/analytics/failure_rate
GET /api/v1/analytics/recovery_rate
License
MIT — core shim, adapters, schema validator, loop detector.
Metadata
Release files for conduit-ai-agents 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| conduit_ai_agents-0.1.1.tar.gz | 47.1 kB | Without provenance | Details for conduit_ai_agents-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| conduit_ai_agents-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for conduit_ai_agents-0.1.1-py3-none-any.whl |
Total release size: 93.2 kB
Release files / conduit_ai_agents-0.1.1.tar.gz
| Download URL | conduit_ai_agents-0.1.1.tar.gz |
|---|---|
| Size | 47.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0d9e509fd1dd5e044ef6943724618f060099432fc3b0dab11991e852750be8f4
|
|
BLAKE2b-256 checksum How to use checksums |
3d626a3c9476acd5621fd512cf19d78c4f01503fb86146f855b9abab45208068
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Release files / conduit_ai_agents-0.1.1-py3-none-any.whl
| Download URL | conduit_ai_agents-0.1.1-py3-none-any.whl |
|---|---|
| Size | 46.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
67c583e532353eed79da519facba8b066ed52fb15b54d3f3b2c9a0f24b647e40
|
|
BLAKE2b-256 checksum How to use checksums |
2d6fd6dc64f175b9912bb42304a54fcaa0cb87517a0b305eeb13a09cee7d500e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Security for conduit-ai-agents 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.