Skip to main content

adk-neomundi

Measure the model calls of a Google ADK agent with NeoMundi, over the OpenTelemetry spans ADK already emits.

🔴 Not published. This package is not on PyPI, and publication is blocked by a Private :: Do Not Upload classifier. It also depends on otel-neomundi>=0.2.0, which is not published either.

What it is, and what it is not

🔴 This package is deliberately thin. It is two ADK callbacks and a one-slot mailbox. The span processor, the Outcome, the parentage, the closed set of refusals, the deferred close and the model-to-tool join all live in otel-neomundi and are imported.

⚠ Why that matters: none of those pieces knows anything about Google. A copy of them in a package named adk-neomundi would make the next host pay for it twice.

🔴 Install: you cannot, yet

This package is not on PyPI, so there is no install command to copy. Writing one here would hand a reader a line that fails — which is why tools/check_conformance.py refuses a copyable pip install for a package whose manifest says published_on: none. ⚠ It caught exactly that in a first draft of this file.

Two things must happen first, in this order:

  1. otel-neomundi 0.2.0 is published. 🔴 This package depends on it and carries no copy of what it provides;
  2. the Private :: Do Not Upload classifier is removed from pyproject.toml, in a separate, approved activation commit.

Until then, read it from the repository.

Use

from opentelemetry.sdk.trace import TracerProvider
from otel_neomundi import NeoMundiSpanProcessor, join
from adk_neomundi import callbacks

provider = TracerProvider()
# Start here: submit=False needs no key and opens no socket.
processor = NeoMundiSpanProcessor(submit=False, tracer_provider=provider)
provider.add_span_processor(processor)

before, after, mailbox = callbacks(processor)

agent = LlmAgent(
    name="validator",
    model="gemini-3.5-flash-lite",
    tools=[validate_address],
    before_model_callback=before,
    after_model_callback=after,
)

The Outcome arrives on processor.outcomes after ADK ends its model span, which is later than the end of any callback -- that is the whole reason close_on_model_span=True exists.

Reading the tool result the model consumed

for outcome in processor.outcomes:
    verdict = join(spans, trace_id=outcome.trace_id, model_span_id=outcome.span_id)
    if verdict.joined:
        print(verdict.tool_name, verdict.result)
    else:
        print("refused:", verdict.refusal)  # never a guess

🔴 This needs OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=SPAN_ONLY. ⚠ And that switch puts tool content on spans: if your tool handles personal data, so does your telemetry. Decide it on purpose.

⚠ The value true does NOT work for this. It resolves to EVENT_ONLY -- content on the log record, not on the span. Reported upstream: google/adk-python#8432.

What it refuses to do

  • submit a token count read from a span -- only the one the provider returned;
  • measure a second model call while one is pending: the mailbox refuses, and mailbox.refused counts it. ⚠ Read that number: non-zero means turns ran unmeasured;
  • defer an interaction in which the application raised;
  • guess which tool result a model call consumed when several are candidates.

Before you draw a conclusion

Read LIMITATIONS.md. Evidence level is E1: offline tests only. 🔴 No real provider call has been made.

Metadata

Release files for adk-neomundi 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 adk-neomundi 0.1.0
File Size Uploaded Provenance Actions
adk_neomundi-0.1.0.tar.gz 17.8 kB With provenance Details for adk_neomundi-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for adk-neomundi 0.1.0
File Interpreter ABI Platform Actions
adk_neomundi-0.1.0-py3-none-any.whl Python 3 none any Details for adk_neomundi-0.1.0-py3-none-any.whl

Total release size: 24.6 kB

Release files / adk_neomundi-0.1.0.tar.gz

Download URL adk_neomundi-0.1.0.tar.gz
Size 17.8 kB
Tags Source
SHA-256 checksum
How to use checksums
cf20e8e7e7dd572493c842482af64a1aa585bac6cc496fa2525651e87c7b6252
BLAKE2b-256 checksum
How to use checksums
44fea773a59b0a4d41395fc75c87eba2a442599b4cbe6b45bfe24243100e8808
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

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

Download URL adk_neomundi-0.1.0-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
948e68482e50024253bd9e6d11ab4dc1971f002ea314633166c84ba8f269bce4
BLAKE2b-256 checksum
How to use checksums
dc36131f09ffe8a283e1a7316fc3500694be5bf9423099d70d8bec1a4bf76068
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Security for adk-neomundi 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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for adk_neomundi-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

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 Full 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