Skip to main content

Google ADK callback handlers for the Grafana Agent Observability Python SDK

Project description

Sigil Python Framework Module: Google ADK

agento11y-google-adk provides callback handlers that map Google ADK invocation/session events into Sigil generation recorder lifecycles.

Installation

pip install agento11y agento11y-google-adk
pip install google-adk

Quickstart

from agento11y import Client
from agento11y_google_adk import with_agento11y_google_adk_plugins

client = Client()
runner_config = with_agento11y_google_adk_plugins(None, client=client, provider_resolver="auto")
# Runner(..., **runner_config)

Callback-field wiring

from agento11y import Client
from agento11y_google_adk import with_agento11y_google_adk_callbacks

client = Client()
agent_config = with_agento11y_google_adk_callbacks(None, client=client, provider_resolver="auto")
# LlmAgent(..., **agent_config)

Conversation mapping

Primary mapping is ADK session identity:

  1. conversation_id / session_id / group_id
  2. thread_id
  3. fallback agento11y:framework:google-adk:<run_id>

Metadata and lineage

  • Required: agento11y.framework.run_type
  • Optional: agento11y.framework.run_id, agento11y.framework.parent_run_id, agento11y.framework.thread_id, agento11y.framework.event_id, agento11y.framework.component_name, agento11y.framework.retry_attempt

Provider resolver

Resolver order: explicit provider option -> callback payload -> model prefix inference -> custom.

Troubleshooting

  • Provide stable ADK session_id to avoid fragmented conversations.
  • If model aliases are custom, set explicit provider on the handler.
  • Always call client.shutdown() during teardown.

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

agento11y_google_adk-0.10.0.tar.gz (14.7 kB view details)

Uploaded Source

Built Distribution

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

agento11y_google_adk-0.10.0-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file agento11y_google_adk-0.10.0.tar.gz.

File metadata

  • Download URL: agento11y_google_adk-0.10.0.tar.gz
  • Upload date:
  • Size: 14.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for agento11y_google_adk-0.10.0.tar.gz
Algorithm Hash digest
SHA256 9642fb306de7ea82808b9ea82a6b27832d543dadf626a8a37ea87998e1f41e62
MD5 f209608cb1db73415a3a2c3f8921064f
BLAKE2b-256 7140daa1e49ad225c4275a08ce9101278ee28cc55f538d9f62dc16e81827a5ba

See more details on using hashes here.

Provenance

The following attestation bundles were made for agento11y_google_adk-0.10.0.tar.gz:

Publisher: python-sdks-publish.yml on grafana/agento11y

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file agento11y_google_adk-0.10.0-py3-none-any.whl.

File metadata

File hashes

Hashes for agento11y_google_adk-0.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 16d4443c569bb2250f0be2910b3f804cdadb8252838d021cedd765e99cacadea
MD5 7d5a9be8b0888b6a453ba0048ea5d79f
BLAKE2b-256 a93f227cb8864f9ac2c60e8d98f4f2463f0b70a819d497a74d31c9b7c2736e62

See more details on using hashes here.

Provenance

The following attestation bundles were made for agento11y_google_adk-0.10.0-py3-none-any.whl:

Publisher: python-sdks-publish.yml on grafana/agento11y

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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