Observability SDK for AI Agent Execution — catches hallucinations, silent failures, and missing executions
Project description
AgentWatchX Python SDK
Observability for AI agents. Catches hallucinations, silent failures, and missing executions automatically.
Install
pip install agentwatchx
2-Line Integration
import agentwatchx
agentwatchx.init(api_key="your_api_key")
# That's it. Every OpenAI/Anthropic/LangChain/LlamaIndex call is now traced.
# No decorators, no wrappers, no code changes needed.
What it captures
- Model, input, output, token usage, latency — automatically
- Tool calls made by the LLM (function calling)
- Hallucination detection — agent claims actions it never performed
- Failure masking — tool errors the agent hides from users
- Missing execution — user asks for action, agent just talks
Supported Libraries
| Library | Auto-instrumented |
|---|---|
| OpenAI | ✅ |
| Anthropic | ✅ |
| Gemini | ✅ |
| Groq | ✅ |
| Mistral | ✅ |
| LangChain | ✅ |
| LlamaIndex | ✅ |
Configuration
agentwatchx.init(
api_key="your_api_key",
)
Advanced Usage
# Manual trace decorator
@agentwatchx.trace
def my_agent(query: str):
return client.chat.completions.create(...)
# Manual logging
agentwatchx.log({"service": "my-agent", "input": "hello", "output": "world"})
# Check status
print(agentwatchx.status())
# → {"initialized": True, "instrumented": ["openai"], "buffered_traces": 0}
Links
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
agentwatchx-0.2.0.tar.gz
(14.5 kB
view details)
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 agentwatchx-0.2.0.tar.gz.
File metadata
- Download URL: agentwatchx-0.2.0.tar.gz
- Upload date:
- Size: 14.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c0becf217ace2757861aa858165a87bc9930c1e81ddfc58e4d1da8c017fe4f61
|
|
| MD5 |
6fc914b50f84d229f5f134d18c9de08b
|
|
| BLAKE2b-256 |
7f25a848bbb923ab1cd0861d3d4f1b4a384e7b80016f62551e5b913c33377486
|
File details
Details for the file agentwatchx-0.2.0-py3-none-any.whl.
File metadata
- Download URL: agentwatchx-0.2.0-py3-none-any.whl
- Upload date:
- Size: 21.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c2dabf6bf39cb0fd5ce4c84af0d25caa23c4cfb34592d9a946b823c01afed44f
|
|
| MD5 |
40c58ba9aff313301cf67af7c30c5062
|
|
| BLAKE2b-256 |
b12cd464288187e4192fe3c3368f7b442ef09dec00794e3acd421e86befd3840
|