OpenInference auto-instrumentation for the AgentMinds Python SDK. Emits OTel spans tagged with openinference.span.kind + agentminds.* attributes when agentminds.capture_* and agentminds.init are called.
Project description
openinference-instrumentation-agentminds
OpenInference auto-instrumentation for the
agentminds Python SDK.
When attached, every call to agentminds.capture_message,
agentminds.capture_exception, and agentminds.init emits an
OpenTelemetry span carrying the canonical
OpenInference attribute
namespace plus an agentminds.* extension namespace for
ARP-specific fields.
ARP §8.4 — 5-layer identity compliance: AgentMinds becomes OpenInference-instrumented when this package is installed.
Install
pip install openinference-instrumentation-agentminds
Use
from openinference_instrumentation_agentminds import AgentMindsInstrumentor
# Attach to your existing OTel SDK setup
AgentMindsInstrumentor().instrument()
# From here, agentminds calls produce spans automatically:
import agentminds
agentminds.init(dsn="https://pk_yoursite_xxx@api.agentminds.dev/yoursite")
# ↑ emits span: name="agentminds.init", kind=CHAIN
agentminds.capture_message("p95 climbed", level="warning")
# ↑ emits span: name="agentminds.capture_message",
# openinference.span.kind="CHAIN",
# agentminds.event.level="warning"
Span attributes
| Attribute | Source | Type | Notes |
|---|---|---|---|
openinference.span.kind |
OpenInference v1 | string | One of LLM/CHAIN/TOOL/RETRIEVER/EMBEDDING/AGENT/GUARDRAIL/EVALUATOR/RERANKER/UNKNOWN |
agentminds.profile_version |
ARP §2 | string | Always "1.2.0" while this package is on 0.1.x |
agentminds.profile.spec_url |
ARP §2 | string | https://github.com/agentmindsdev/profile |
agentminds.dsn.host |
ARP §2 | string | The host segment of the DSN, e.g. api.agentminds.dev |
agentminds.dsn.site_id |
ARP §2 | string | Site identifier from the DSN |
agentminds.release |
ARP §2 | string | Release / git sha if agentminds.init(release=...) was called |
agentminds.environment |
ARP §2 | string | production / staging / dev |
agentminds.event.level |
ARP §3.3 | string | Sentry-aligned: fatal/error/warning/info/debug |
agentminds.event.severity |
ARP §3.3 | string | critical/high/medium/low/info (capture_exception only) |
agentminds.event.category |
ARP §3.3 | string | performance/security/... (capture_exception only) |
agentminds.operation |
(extension) | string | capture_message / capture_exception / init |
exception.type |
OTel | string | Class name (capture_exception only) |
Why an extension package vs auto-instrumentation in agentminds itself?
- Optional. Most
agentmindsusers don't run an OTel SDK. Bundling this into the main package would force the dep on everyone. - Apache-2.0. OpenInference attribute names are spec-text only (Apache-2.0). This wrapper uses them; the main SDK doesn't have to inherit the licensing surface.
- Phoenix isolation. Per ARP REJECT list (deepdive Section 5), AgentMinds explicitly does NOT take a runtime dependency on Arize Phoenix (ELv2 + US patent claims). This package depends only on the Apache-2.0 OpenTelemetry stack.
Compatibility
- Python ≥ 3.9
agentminds≥ 0.4.2opentelemetry-api≥ 1.20
License
Apache-2.0.
Spec references
- ARP v1.2 spec: https://github.com/agentmindsdev/profile
- OpenInference v1 attributes: https://github.com/Arize-ai/openinference
- OTel GenAI semconv: https://opentelemetry.io/docs/specs/semconv/gen-ai/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 openinference_instrumentation_agentminds-0.1.0.tar.gz.
File metadata
- Download URL: openinference_instrumentation_agentminds-0.1.0.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d61fc1df01e385e892a4f7bc85acd232c3fb58ee126c2e7dded546decf6866dc
|
|
| MD5 |
398cb94e593d7223984bf05001c3f73e
|
|
| BLAKE2b-256 |
760c33c7087aecb8f81056b551b2fd12ae81b93a8abea6da07e9dc6b4226b0c4
|
Provenance
The following attestation bundles were made for openinference_instrumentation_agentminds-0.1.0.tar.gz:
Publisher:
publish-sdks.yml on agentmindsdev/agentminds
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
openinference_instrumentation_agentminds-0.1.0.tar.gz -
Subject digest:
d61fc1df01e385e892a4f7bc85acd232c3fb58ee126c2e7dded546decf6866dc - Sigstore transparency entry: 1394646664
- Sigstore integration time:
-
Permalink:
agentmindsdev/agentminds@68343d24b99a09743b362aa8d8a697abde456d73 -
Branch / Tag:
refs/tags/sdks/oi-v0.1.0 - Owner: https://github.com/agentmindsdev
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-sdks.yml@68343d24b99a09743b362aa8d8a697abde456d73 -
Trigger Event:
push
-
Statement type:
File details
Details for the file openinference_instrumentation_agentminds-0.1.0-py3-none-any.whl.
File metadata
- Download URL: openinference_instrumentation_agentminds-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db7b0c274fb4f5a37a926756e897771d6bb3b6d8312110aa73218e2d1dfb6d08
|
|
| MD5 |
5d5d564a027fa94e31347e3c4693c81b
|
|
| BLAKE2b-256 |
f78af1dbbbb06b671aa336f9c32101df4bbcfeb998564df36c97ae1f09c5d4c6
|
Provenance
The following attestation bundles were made for openinference_instrumentation_agentminds-0.1.0-py3-none-any.whl:
Publisher:
publish-sdks.yml on agentmindsdev/agentminds
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
openinference_instrumentation_agentminds-0.1.0-py3-none-any.whl -
Subject digest:
db7b0c274fb4f5a37a926756e897771d6bb3b6d8312110aa73218e2d1dfb6d08 - Sigstore transparency entry: 1394646668
- Sigstore integration time:
-
Permalink:
agentmindsdev/agentminds@68343d24b99a09743b362aa8d8a697abde456d73 -
Branch / Tag:
refs/tags/sdks/oi-v0.1.0 - Owner: https://github.com/agentmindsdev
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-sdks.yml@68343d24b99a09743b362aa8d8a697abde456d73 -
Trigger Event:
push
-
Statement type: