Skip to main content

Google ADK callback handlers for Sigil Python SDK

Project description

Sigil Python Framework Module: Google ADK

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

Installation

pip install sigil-sdk sigil-sdk-google-adk
pip install google-adk

Quickstart

from sigil_sdk import Client
from sigil_sdk_google_adk import with_sigil_google_adk_plugins

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

Callback-field wiring

from sigil_sdk import Client
from sigil_sdk_google_adk import with_sigil_google_adk_callbacks

client = Client()
agent_config = with_sigil_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 sigil:framework:google-adk:<run_id>

Metadata and lineage

  • Required: sigil.framework.run_type
  • Optional: sigil.framework.run_id, sigil.framework.parent_run_id, sigil.framework.thread_id, sigil.framework.event_id, sigil.framework.component_name, sigil.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

sigil_sdk_google_adk-0.4.0.tar.gz (11.6 kB view details)

Uploaded Source

Built Distribution

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

sigil_sdk_google_adk-0.4.0-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file sigil_sdk_google_adk-0.4.0.tar.gz.

File metadata

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

File hashes

Hashes for sigil_sdk_google_adk-0.4.0.tar.gz
Algorithm Hash digest
SHA256 f337f776dd2d76cbe9ec43f19df43ba88750467d499637f11ed1fdc9f802a988
MD5 01f87dce8cb66a40898a90a2e85b320f
BLAKE2b-256 5c34bebe08b0ed5c6ac7b0eedc1e8c66cb3222cf4cd757e6d720e9dfb2885234

See more details on using hashes here.

Provenance

The following attestation bundles were made for sigil_sdk_google_adk-0.4.0.tar.gz:

Publisher: python-sdks-publish.yml on grafana/sigil-sdk

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

File details

Details for the file sigil_sdk_google_adk-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sigil_sdk_google_adk-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ba38c6d26c7922911badfab325dcdca22ca6d5b8a0062c38dbadabaf34e63535
MD5 f2ca4df22c1ebf1845c8a6133e9278a9
BLAKE2b-256 9e2d9cc7b9e003042f6f6ddf910ed43823390d7b4a8e4a0beacc2f9161266c8f

See more details on using hashes here.

Provenance

The following attestation bundles were made for sigil_sdk_google_adk-0.4.0-py3-none-any.whl:

Publisher: python-sdks-publish.yml on grafana/sigil-sdk

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