feat: add google adk plugins#1282
Draft
marcusmotill wants to merge 12 commits intotemporalio:mainfrom
Draft
Conversation
|
|
tconley1428
reviewed
Jan 20, 2026
tconley1428
reviewed
Jan 20, 2026
tconley1428
reviewed
Jan 20, 2026
tconley1428
reviewed
Jan 20, 2026
tconley1428
reviewed
Jan 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Google ADK Agents SDK Integration for Temporal
This package provides the integration layer between the Google ADK and Temporal. It allows ADK Agents to run reliably within Temporal Workflows by ensuring determinism and correctly routing external calls (network I/O) through Temporal Activities.
What's Included
Core ADK Integration
AdkAgentPlugin: Intercepts model calls and executes them as Temporal activitiesTemporalAdkPlugin: Worker plugin that configures runtime determinism and Pydantic serializationinvoke_model: Activity for executing LLM model calls with proper error handlingMCP (Model Context Protocol) Integration
TemporalMcpToolSet: Executes MCP tools as Temporal activitiesTemporalMcpToolSetProvider: Manages toolset creation and activity registrationOpenTelemetry Integration
Key Features
1. Deterministic Runtime
time.time()withworkflow.now()when in workflow contextuuid.uuid4()withworkflow.uuid4()for deterministic IDsTemporalAdkPlugin2. Activity-Based Model Execution
Model calls are intercepted and executed as Temporal activities with configurable:
3. Sandbox Compatibility
google.adk,google.genai, andmcpmodules4. Advanced Serialization
Usage
Basic Setup
Agent (Workflow) Side:
Worker Side:
Advanced Features
With MCP Tools:
With OpenTelemetry:
Integration Points
This integration provides comprehensive support for running Google ADK Agents within Temporal workflows while maintaining: