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/Gemini/Groq/Mistral/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.1.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.1.tar.gz.
File metadata
- Download URL: agentwatchx-0.2.1.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 |
ecedcf1969df4ca3dce7caa3ad92e27f9b0fcf18711baf5ac50d5ab53965ec8b
|
|
| MD5 |
9c3555a69ed58aab6e4de98367224fa3
|
|
| BLAKE2b-256 |
734abbe7ecd773aab19f9313471f1bfb3099904a221999f3e1425bf3da9a2509
|
File details
Details for the file agentwatchx-0.2.1-py3-none-any.whl.
File metadata
- Download URL: agentwatchx-0.2.1-py3-none-any.whl
- Upload date:
- Size: 21.9 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 |
11bea2f1df369e59cd6265934ffb1ea63c29f070fce576fcc04282f7ef4f5c58
|
|
| MD5 |
21a518e53004e68c8b77a2b2f7b5a488
|
|
| BLAKE2b-256 |
56b7c97520353c54788d018200ff51263b4ee21f59238436d702748f7db1cd23
|