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
Release files for agentwatchx 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| agentwatchx-0.2.2.tar.gz | 14.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| agentwatchx-0.2.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 36.4 kB
Release files / agentwatchx-0.2.2.tar.gz
| Download URL | agentwatchx-0.2.2.tar.gz |
|---|---|
| Size | 14.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
defd2350ce1e50e867604bae00f891bf13cbad1dba74c2fd311c18949e9ee3c2
|
|
BLAKE2b-256 checksum How to use checksums |
17324fc9094ea052a94a9014d637b1d91e2d4ab6e859a61bb4c425d92fd5ce49
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Release files / agentwatchx-0.2.2-py3-none-any.whl
| Download URL | agentwatchx-0.2.2-py3-none-any.whl |
|---|---|
| Size | 21.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
49af78a87747b03ede0020717533e34193be2ec71695e3773f950ed740f6cd50
|
|
BLAKE2b-256 checksum How to use checksums |
8528a4a0926588b844b373bdfc59276175497e839b8124d8eaa334baa6bfaf78
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|