ADK-Lib: Advanced Agent Development Kit
ADK-Lib is a powerful, extensible Python library for building AI agents with seamless integration to popular services like Google Workspace, Atlassian, Salesforce, and more. Built on top of Google ADK, it provides simplified configuration, pre-built connectors, and advanced features like tracing and instant learning.
✨ Key Features
- 🚀 Simplified Agent Creation: Minimal code to create powerful AI agents
- 🔌 Pre-built Connectors: Ready-to-use integrations for popular services
- 🔐 Multiple Authentication: HTTP, OAuth2, and Service Account support
- ☁️ Cloud Deployment: One-click deployment to Vertex AI
- 📊 Built-in Tracing: Monitor and debug agent interactions
- 🧠 Instant Learning: Dynamic, contextual knowledge injection
- 🎯 Type-Safe: Full type hints and validation
🚀 Quick Start
Installation
pip install adk-lib
Create Your First Agent
from adk_lib import Agent, AgentConfig
from adk_lib.toolset.connectors.google import GoogleDriveConnector
# Configure Google Drive access
drive_config = GoogleDriveConnector.create_config(
config_vars={"GOOGLE_ACCESS_TOKEN": "your_token_here"}
)
# Create agent configuration
agent_config = AgentConfig(
name="my_assistant",
model="gemini-2.0-flash-001",
instruction="Help users manage their Google Drive files"
)
# Initialize the agent
agent_interface = Agent(agent_config, {"drive": drive_config})
agent = agent_interface.get_agent()
# Use the agent
response = agent.generate_content("List my recent Google Drive files")
print(response.text)
📋 Table of Contents
- Installation
- Quick Examples
- Supported Services
- Authentication
- Deployment
- Advanced Features
- Documentation
- Contributing
🛠 Quick Examples
Multi-Service Agent
from adk_lib import Agent, AgentConfig
from adk_lib.toolset.connectors import (
GoogleDriveConnector,
GoogleCalendarConnector,
JiraConnector
)
# Configure multiple services
toolsets = {
"drive": GoogleDriveConnector.create_config(),
"calendar": GoogleCalendarConnector.create_config(),
"jira": JiraConnector.create_config(
config_vars={"ATLASSIAN_CLOUD_ID": "your_cloud_id"}
)
}
# Create multi-service agent
agent_config = AgentConfig(
name="productivity_assistant",
instruction="Help manage files, calendar, and project tasks"
)
agent = Agent(agent_config, toolsets).get_agent()
Custom Authentication
from adk_lib.auth import OAuth2Manager
from adk_lib.toolset.utils.types import BaseToolSetConfig
from adk_lib.toolset.utils.enums import ToolsetType
# OAuth2 authentication
auth_manager = OAuth2Manager(
service="google",
client_id="your_client_id",
client_secret="your_client_secret",
scopes=["https://www.googleapis.com/auth/drive"]
)
# Custom toolset configuration
custom_config = BaseToolSetConfig(
name="custom_service",
toolset_type=ToolsetType.OPENAPI_TOOLSET,
auth_credential=auth_manager.get_auth_credential(),
auth_scheme=auth_manager.get_auth_scheme()
)
🔌 Supported Services
| Service | Status | Connector | Auth Types |
|---|---|---|---|
| Google Workspace | ✅ | GoogleDriveConnector, GoogleCalendarConnector, GoogleGmailConnector |
HTTP, OAuth2 |
| Atlassian | ✅ | JiraConnector, ConfluenceConnector |
HTTP, OAuth2 |
| Salesforce | ✅ | SalesforceConnector, SalesforceAppIntegrationConnector |
HTTP, OAuth2 |
| Microsoft 365 | 🚧 | Coming Soon | OAuth2 |
🔐 Authentication
ADK-Lib supports multiple authentication methods:
HTTP Bearer Token
from adk_lib.auth import HttpAuthManager
auth = HttpAuthManager(
service="google",
auth_token="your_bearer_token"
)
OAuth2
from adk_lib.auth import OAuth2Manager
auth = OAuth2Manager(
service="google",
client_id="your_client_id",
client_secret="your_client_secret"
)
Service Account
from adk_lib.auth import ServiceAccountAuthManager
auth = ServiceAccountAuthManager(
service_account_dict={"type": "service_account", ...},
scopes=["scope1", "scope2"]
)
☁️ Deployment
Vertex AI Deployment
from adk_lib.deploy import VertexAIDeployment, create_vertexai_config
# Create deployment configuration
config = create_vertexai_config(
project_id="your-project",
deployment_name="my-agent",
requirements=["adk-lib"],
enable_tracing=True
)
# Deploy to Vertex AI
deployment = VertexAIDeployment(agent, config)
resource_id = deployment.deploy()
🔬 Advanced Features
Tracing & Monitoring
agent_config = AgentConfig(
name="traced_agent",
trace=True,
trace_url="https://your-trace-dashboard.com",
assistant_name="my_assistant"
)
Instant Learning
agent_config = AgentConfig(
name="learning_agent",
instant_learning_url="https://your-il-api.com",
prompt_instant_learning=True,
prompt_instant_learning_config={
"topic_tables": "knowledge_base",
"embedding_model": "text-embedding-ada-002"
}
)
Custom Toolsets
from adk_lib.toolset.categories import OpenAPILibToolset
from adk_lib.toolset.utils.configs import SpecConfig, SpecType
custom_config = BaseToolSetConfig(
name="custom_api",
toolset_type=ToolsetType.OPENAPI_TOOLSET,
spec_config=SpecConfig(
spec_type=SpecType.URL,
spec_source="https://api.example.com/openapi.json"
)
)
📚 Documentation
- User Guide: Comprehensive tutorials and guides
- API Reference: Detailed API documentation
- Examples: Complete example projects
- Contributing: Development and contribution guidelines
🤝 Contributing
We welcome contributions! Please see our Contributing Guide for details.
Development Setup
# Clone the repository
git clone https://github.com/your-org/adk-lib.git
cd adk-lib
# Install with development dependencies
pip install -e ".[dev]"
# Run tests
pytest
# Run linting
flake8 adk_lib/
black adk_lib/
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
🆘 Support
- Documentation: docs/
- Issues: GitHub Issues
- Discussions: GitHub Discussions
🗺️ Roadmap
- Microsoft 365 connectors
- Enhanced error handling and validation
- Performance optimizations
- Additional deployment targets (AWS, Azure)
- Advanced monitoring and analytics
Metadata
Release files for adk-lib 1.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| adk_lib-1.3.0.tar.gz | 66.3 kB | Without provenance | Details for adk_lib-1.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| adk_lib-1.3.0-py3-none-any.whl | Python 3 | none | any | Details for adk_lib-1.3.0-py3-none-any.whl |
Total release size: 164.4 kB
Release files / adk_lib-1.3.0.tar.gz
| Download URL | adk_lib-1.3.0.tar.gz |
|---|---|
| Size | 66.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a6284c8b350081b4f7962b83fc103b053c38d9b37c22c8e6b352257c2c4b6021
|
|
BLAKE2b-256 checksum How to use checksums |
1b48c3317055f15261eae3d61987a6bee478b08d5cdebb8d1352ea8fa465d9b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.14.0 Darwin/25.2.0
|
Release files / adk_lib-1.3.0-py3-none-any.whl
| Download URL | adk_lib-1.3.0-py3-none-any.whl |
|---|---|
| Size | 98.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1d54036a167cbfaa04f7b3765655c4d5930c24d17193d817ff955d6639c39aff
|
|
BLAKE2b-256 checksum How to use checksums |
1abeb188eb9ce72159c3204d5c237d945d719be39097e673d68297e22d9ceae9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.14.0 Darwin/25.2.0
|
Security for adk-lib 1.3.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.