Tenet AI Documentation — SDK Integration Guide for AI Agents
Get started with Tenet AI in under 5 minutes. SDK quickstart for Python and Node.js, API reference, drift detection setup, human override capture, and compliance audit trail documentation. Works with LangChain, CrewAI, OpenAI Agents, and any custom agent framework.
Quick Start — 2 Lines of Code
Install the Tenet AI SDK: pip install tenet-ai-sdk (Python) or npm install @tenet-ai/sdk (Node.js). Initialize with your API key and wrap your agent function. Every decision is automatically logged to your immutable decision ledger.
Framework Integration Guides
Tenet AI provides integration guides for LangChain (Python and JavaScript), CrewAI multi-agent systems, OpenAI Agents SDK, Google Agent Development Kit (ADK), AWS Bedrock agents, AutoGen, and custom Python or Node.js agent implementations. All integrations follow the same 2-line pattern — initialize the client, wrap the decision function.
Core SDK Features
Decision logging: automatic capture of intent, context snapshot, reasoning chain, and outcome for every agent decision. Deterministic Replay: re-execute any logged decision against the current agent state to detect drift or validate changes. Human Override Capture: record human corrections with actor, timestamp, reason, and outcome to satisfy EU AI Act Article 14 oversight requirements. Compliance Report Export: generate structured PDF reports for EU AI Act, SOC 2, HIPAA, GDPR, and ISO 42001 auditors.
Deployment Options
Cloud (SaaS): decisions stored in Tenet-hosted infrastructure with SOC 2 Type II certification. On-premise VPC: Tenet deploys inside your infrastructure perimeter — decision data never leaves your network. Hybrid: logging to on-premise Reasoning Ledger with cloud-hosted compliance report generation. All three modes use identical SDK interfaces — switching deployment mode requires changing one configuration value.
API Reference Overview
The Tenet AI REST API provides endpoints for: decision record retrieval and filtering, replay job creation and results, drift detection report generation, human override log submission, compliance export in PDF and JSON formats, and webhook configuration for drift alerts. All endpoints use Bearer token authentication. Rate limits vary by plan. Full OpenAPI specification available at tenetai.dev/docs/api.
Troubleshooting and Support
Common integration issues: API key authentication (use TENET_API_KEY environment variable), decision not appearing in dashboard (check Ghost SDK queue drain timeout), replay job failing (verify context snapshot completeness). Support is available via hello@tenetai.dev for all plans. Enterprise customers have dedicated Slack channel support and SLA-backed response times. Community documentation and examples are available in the GitHub repository at github.com/tenet-ai. First decision records typically appear in the dashboard within seconds of SDK initialization.