Skip to main content

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.2.tar.gz (14.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agentwatchx-0.2.2-py3-none-any.whl (21.9 kB view details)

Uploaded Python 3

File details

Details for the file agentwatchx-0.2.2.tar.gz.

File metadata

  • Download URL: agentwatchx-0.2.2.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

Hashes for agentwatchx-0.2.2.tar.gz
Algorithm Hash digest
SHA256 defd2350ce1e50e867604bae00f891bf13cbad1dba74c2fd311c18949e9ee3c2
MD5 e600791c13becc5a2705c0e49580bcc2
BLAKE2b-256 17324fc9094ea052a94a9014d637b1d91e2d4ab6e859a61bb4c425d92fd5ce49

See more details on using hashes here.

File details

Details for the file agentwatchx-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: agentwatchx-0.2.2-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

Hashes for agentwatchx-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 49af78a87747b03ede0020717533e34193be2ec71695e3773f950ed740f6cd50
MD5 b6f775ead0b4c1222dc5ef020a35fd0d
BLAKE2b-256 8528a4a0926588b844b373bdfc59276175497e839b8124d8eaa334baa6bfaf78

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page