No project description provided
Project description
Agentic Layer Python SDK for Google ADK
SDK for Google ADK that helps to get agents configured in the Agentic Layer quickly.
Features
- Configures OTEL (Tracing, Metrics, Logging)
- Converts an ADK agent into an instrumented starlette app
- Configures A2A protocol for inter-agent communication
- Offers parsing methods for sub agents and tools
- Set log level via env var
LOGLEVEL(default:INFO)
Usage
Dependencies can be installed via pip or the tool of your choice:
pip install agentic-layer-sdk-adk
Basic usage example:
from agenticlayer.agent_to_a2a import to_a2a
from agenticlayer.config import parse_sub_agents, parse_tools
from agenticlayer.otel import setup_otel
from google.adk.agents import LlmAgent
# Set up OpenTelemetry instrumentation, logging and metrics
setup_otel()
# Parse sub agents and tools from JSON configuration
sub_agent, agent_tools = parse_sub_agents("{}")
mcp_tools = parse_tools("{}")
tools = agent_tools + mcp_tools
# Declare your ADK root agent
root_agent = LlmAgent(
name="root-agent",
sub_agents=sub_agent,
tools=tools,
# [...]
)
# Define the URL where the agent will be available from outside
# This can not be determined automatically,
# because the port is only known at runtime,
# when the starlette app is started with Uvicorn.
rpc_url = "http://localhost:8000/"
# Create starlette app with A2A protocol
app = to_a2a(root_agent, rpc_url)
Configuration
The JSON configuration for sub agents should follow this structure:
{
"agent_name": {
"url": "http://agent-url/.well-known/agent-card.json",
// Optional: interaction type, defaults to "tool_call"
// "transfer" for full delegation, "tool_call" for tool-like usage
"interaction_type": "transfer|tool_call"
}
}
The JSON configuration for AGENT_TOOLS should follow this structure:
{
"tool_name": {
"url": "https://mcp-tool-endpoint:8000/mcp",
"timeout": 30 // Optional: connect timeout in seconds
}
}
OpenTelemetry Configuration
The SDK automatically configures OpenTelemetry observability when running setup_otel(). You can customize the OTLP
exporters using standard OpenTelemetry environment variables:
https://opentelemetry.io/docs/specs/otel/configuration/sdk-environment-variables/
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 agentic_layer_sdk_adk-0.8.0.tar.gz.
File metadata
- Download URL: agentic_layer_sdk_adk-0.8.0.tar.gz
- Upload date:
- Size: 11.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18a05e46f84befc8865efaab66e5d902627097691ebde64e1709b2368851303c
|
|
| MD5 |
cab541a5741091e4235fc55930edc73f
|
|
| BLAKE2b-256 |
77bf01d340a8431f3170589bee71ebcf7e4fa91718f0b794fcc2a88437b809a0
|
Provenance
The following attestation bundles were made for agentic_layer_sdk_adk-0.8.0.tar.gz:
Publisher:
publish.yml on agentic-layer/sdk-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
agentic_layer_sdk_adk-0.8.0.tar.gz -
Subject digest:
18a05e46f84befc8865efaab66e5d902627097691ebde64e1709b2368851303c - Sigstore transparency entry: 737892970
- Sigstore integration time:
-
Permalink:
agentic-layer/sdk-python@6506924a217384b0d44a6887a96323b2aee2520b -
Branch / Tag:
refs/tags/v0.8.0 - Owner: https://github.com/agentic-layer
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6506924a217384b0d44a6887a96323b2aee2520b -
Trigger Event:
push
-
Statement type:
File details
Details for the file agentic_layer_sdk_adk-0.8.0-py3-none-any.whl.
File metadata
- Download URL: agentic_layer_sdk_adk-0.8.0-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0e9c1a155993153208a2a3c694bb9b36e12ae65810524b6eea8ac795595412f6
|
|
| MD5 |
da4558988956bad9b74fbf2d26319883
|
|
| BLAKE2b-256 |
da9a7300f36caaac1771c0eceb6e238c796af53ee2e214b6a297eb18b118cb77
|
Provenance
The following attestation bundles were made for agentic_layer_sdk_adk-0.8.0-py3-none-any.whl:
Publisher:
publish.yml on agentic-layer/sdk-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
agentic_layer_sdk_adk-0.8.0-py3-none-any.whl -
Subject digest:
0e9c1a155993153208a2a3c694bb9b36e12ae65810524b6eea8ac795595412f6 - Sigstore transparency entry: 737892973
- Sigstore integration time:
-
Permalink:
agentic-layer/sdk-python@6506924a217384b0d44a6887a96323b2aee2520b -
Branch / Tag:
refs/tags/v0.8.0 - Owner: https://github.com/agentic-layer
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6506924a217384b0d44a6887a96323b2aee2520b -
Trigger Event:
push
-
Statement type: