Metadata-Version: 2.4
Name: agentwatchx
Version: 0.2.2
Summary: Observability SDK for AI Agent Execution — catches hallucinations, silent failures, and missing executions
License: MIT
Project-URL: Homepage, https://agentwatchx.com
Project-URL: Documentation, https://agentwatchx.com/docs
Keywords: ai,agents,observability,llm,tracing,openai,anthropic,gemini,groq,mistral,langchain
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Software Development :: Libraries
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: httpx>=0.25.0
Requires-Dist: pydantic>=2.0.0
Provides-Extra: openai
Requires-Dist: openai>=1.0.0; extra == "openai"
Provides-Extra: anthropic
Requires-Dist: anthropic>=0.18.0; extra == "anthropic"
Provides-Extra: gemini
Requires-Dist: google-generativeai>=0.5.0; extra == "gemini"
Provides-Extra: groq
Requires-Dist: groq>=0.4.0; extra == "groq"
Provides-Extra: mistral
Requires-Dist: mistralai>=1.0.0; extra == "mistral"
Provides-Extra: langchain
Requires-Dist: langchain-core>=0.1.0; extra == "langchain"
Provides-Extra: llamaindex
Requires-Dist: llama-index-core>=0.10.0; extra == "llamaindex"
Provides-Extra: all
Requires-Dist: openai>=1.0.0; extra == "all"
Requires-Dist: anthropic>=0.18.0; extra == "all"
Requires-Dist: google-generativeai>=0.5.0; extra == "all"
Requires-Dist: groq>=0.4.0; extra == "all"
Requires-Dist: mistralai>=1.0.0; extra == "all"
Requires-Dist: langchain-core>=0.1.0; extra == "all"
Requires-Dist: llama-index-core>=0.10.0; extra == "all"
Dynamic: license-file

# AgentWatchX Python SDK

Observability for AI agents. Catches hallucinations, silent failures, and missing executions automatically.

## Install

```bash
pip install agentwatchx
```

## 2-Line Integration

```python
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

```python
agentwatchx.init(
    api_key="your_api_key",
)
```

## Advanced Usage

```python
# 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

- [Documentation](https://agentwatchx.com/docs)
- [Dashboard](https://agentwatchx.com/dashboard)
