India's AI agent observability SDK — INR-native, 2 lines of code
Project description
Drishti AI SDK
India's AI Agent Observability SDK — See inside your AI agent. 2 lines of code. INR-native. Zero config.
Drishti is a lightweight, high-performance observability tool designed specifically for AI agents and LLM applications. It allows developers to monitor step-by-step agent execution, track token usage, calculate precise API costs automatically in Indian Rupees (INR), and capture error traces seamlessly—all without blocking your application's execution.
Access your complete dashboard and analytics at drishtiai.dev.
🚀 Installation
Install the Drishti SDK via pip:
pip install drishti-ai-sdk
⚡ Quick Start
Integrating Drishti takes just two lines of code. Here is the raw Python quick start:
from drishti import Drishti
# 1. Initialize the client
drishti = Drishti(api_key="dk_your_api_key_here")
# 2. Wrap your agent execution
with drishti.trace("my_agent") as trace:
result = agent.run(user_query)
trace.set_output(result)
# Done! The trace is automatically sent to your dashboard in the background.
Note: Replace
dk_your_api_key_herewith your actual API key from the dashboard.
🔍 Step-by-Step Tracing
For deeper visibility into complex pipelines (like RAG), trace individual steps such as vector database lookups and direct LLM API calls.
with drishti.trace("rag_pipeline", input=question) as trace:
# Trace a specific step (e.g., retrieving context)
with trace.step("memory_lookup", "memory") as step:
context = vector_db.search(question, top_k=5)
step.set_output({"chunks": len(context)})
# Trace an LLM generation step
with trace.step("llm_call", "llm") as step:
response = openai.chat.completions.create(
model="gpt-4o-mini",
messages=[{"role": "user", "content": question}]
)
# Automatically calculate costs and record token usage
step.record_llm(
model="gpt-4o-mini",
tokens_input=response.usage.prompt_tokens,
tokens_output=response.usage.completion_tokens
)
trace.set_output(response.choices[0].message.content)
💰 INR Cost Tracking
Every trace automatically calculates your cost natively in ₹ (INR)—no manual currency conversion logic needed.
Drishti supports 28+ leading models out of the box:
- OpenAI: GPT-4o, GPT-4o-mini, o1, o3-mini
- Anthropic: Claude 3.5 Sonnet, Claude 3 Opus, Claude 3 Haiku
- Google: Gemini 2.0 Flash, Gemini 1.5 Pro
- DeepSeek: DeepSeek-V3, DeepSeek-R1
- Meta: Llama 3.3 70B, Llama 3.1 series
- Mistral: Mistral Large, Mistral Small, Mixtral
Using an unsupported model name still works—Drishti will apply a standard fallback estimate.
🛡️ Zero Overhead & Graceful Failure
If the Drishti ingestion servers are unreachable or your network drops, your agent keeps working. All trace telemetry is sent asynchronously via a background thread, ensuring absolutely zero blocking overhead on your critical path.
⚙️ Configuration
You can configure Drishti via environment variables instead of hardcoding credentials:
DRISHTI_API_KEY=dk_live_your_key_here
# DRISHTI_ENDPOINT=https://drishti-backend-3fks.onrender.com # Optional for custom endpoints
📊 Dashboard
Get your API key and view your Agent's analytics live at drishtiai.dev.
Built with ❤️ for developers.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file drishti_ai_sdk-0.1.5.tar.gz.
File metadata
- Download URL: drishti_ai_sdk-0.1.5.tar.gz
- Upload date:
- Size: 15.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
571078e5a89305139885624309413b22865fd4367204dd2bf7bb45759b5867e6
|
|
| MD5 |
09ab6a6a57fb343085ddef2acdd3cca2
|
|
| BLAKE2b-256 |
f6dd67f22c7b2e914e746a4d4e4386161f5488869b17555108ca9f31c795150a
|
File details
Details for the file drishti_ai_sdk-0.1.5-py3-none-any.whl.
File metadata
- Download URL: drishti_ai_sdk-0.1.5-py3-none-any.whl
- Upload date:
- Size: 13.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f764984a6110e4c4393f5795b0a5d699a52b30a74b2e15d8d57234dd142180d4
|
|
| MD5 |
4decc89ac1b7294b7df5909d578fbb4e
|
|
| BLAKE2b-256 |
0082d66d8504d9f4a8396212a9149324d86369d7312287d61fa967b83b76bec3
|