Skip to main content

sthg-agent-observatory-sdk

Python SDK for the AI Agent observability platform. It provides a lightweight XAgent adapter that keeps the original local trace writer behavior and asynchronously reports normalized events to the observability backend.

Install

pip install sthg-agent-observatory-sdk

XAgent Usage

import os

os.environ.setdefault("OBSERVABILITY_ENABLED", "true")
os.environ.setdefault("OBSERVABILITY_ENDPOINT", "http://127.0.0.1:8011")
os.environ.setdefault("OBSERVABILITY_API_KEY", "<app-api-key>")
os.environ.setdefault("OBSERVABILITY_PROJECT_KEY", "<project-key>")
os.environ.setdefault("OBSERVABILITY_APP_KEY", "<app-key>")
os.environ.setdefault("OBSERVABILITY_ENVIRONMENT", "dev")

from sthg_agent_observatory_sdk.xagent import install_xagent_observability

install_xagent_observability()

Environment Variables

Name Default Description
OBSERVABILITY_ENABLED false Enables collection and reporting.
OBSERVABILITY_ENDPOINT http://127.0.0.1:8011 Observability backend endpoint.
OBSERVABILITY_API_KEY empty App-level API key generated by the platform.
OBSERVABILITY_PROJECT_KEY worldmonitor Project key configured in the platform.
OBSERVABILITY_APP_KEY worldmonitor-xagent App key configured in the platform.
OBSERVABILITY_ENVIRONMENT dev App environment.
OBSERVABILITY_BATCH_SIZE 200 Flush after this many events.
OBSERVABILITY_FLUSH_INTERVAL_SECONDS 3 Flush interval when batch size is not reached.

License

Apache-2.0

Metadata

Release files for sthg-agent-observatory-sdk 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sthg-agent-observatory-sdk 0.1.0
File Size Uploaded Provenance Actions
sthg_agent_observatory_sdk-0.1.0.tar.gz 8.0 kB Without provenance Details for sthg_agent_observatory_sdk-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sthg-agent-observatory-sdk 0.1.0
File Interpreter ABI Platform Actions
sthg_agent_observatory_sdk-0.1.0-py3-none-any.whl Python 3 none any Details for sthg_agent_observatory_sdk-0.1.0-py3-none-any.whl

Total release size: 17.5 kB

Release files / sthg_agent_observatory_sdk-0.1.0.tar.gz

Download URL sthg_agent_observatory_sdk-0.1.0.tar.gz
Size 8.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b7159ae74cca88698dd434e1281fbfb0940963bebfd7ca1e42ed608234c23321
BLAKE2b-256 checksum
How to use checksums
ea82ef88f9bb16d41b2fe83ecda21630b53ddda47e382eec39ef34bdf838a59e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Release files / sthg_agent_observatory_sdk-0.1.0-py3-none-any.whl

Download URL sthg_agent_observatory_sdk-0.1.0-py3-none-any.whl
Size 9.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b0e4dd1a8890afa5d15f6151ff95ca7e69f032e2bddc20a5b4ca864e2def7637
BLAKE2b-256 checksum
How to use checksums
ab3cb6273a22f73a6650e0fad26b064d6a266eece66c6381f3c5886dabca706d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Security for sthg-agent-observatory-sdk 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page