Skip to content

Add Google ADK Agents integration for Temporal workflows#1353

Merged
tconley1428 merged 36 commits intomainfrom
adk-plugin-internal
Mar 13, 2026
Merged

Add Google ADK Agents integration for Temporal workflows#1353
tconley1428 merged 36 commits intomainfrom
adk-plugin-internal

Conversation

@tconley1428
Copy link
Contributor

Summary

  • Add comprehensive Google ADK (Agent Development Kit) integration for Temporal workflows
  • Provides deterministic runtime for ADK agents within Temporal workflows
  • Includes MCP (Model Context Protocol) tool support for extensible agent capabilities
  • Features OpenTelemetry integration for observability

Key Features

  • TemporalModel: Intercepts LLM model calls and executes them as Temporal activities
  • TemporalAdkPlugin: Worker plugin that ensures determinism and proper serialization
  • MCP Integration: Execute MCP tools as activities with full workflow support
  • Deterministic Runtime: Replaces time.time() and uuid.uuid4() with workflow-safe alternatives
  • Activity Configuration: Configurable timeouts, retries, and task queues for model calls
  • Sandbox Compatibility: Works with both sandboxed and unsandboxed workflow runners

Files Added

  • temporalio/contrib/google_adk_agents/ - Core integration package
  • Comprehensive test suite with replay validation
  • Documentation and usage examples

Test Plan

  • Unit tests for all core components
  • Integration tests with actual ADK agents
  • Replay validation tests to ensure determinism
  • MCP toolset integration tests
  • OpenTelemetry instrumentation tests

🤖 Generated with Claude Code

@tconley1428 tconley1428 requested a review from a team as a code owner March 9, 2026 14:57
Copy link

@drewhoskins-temporal drewhoskins-temporal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM


worker = Worker(
client,
task_queue="my-queue",
Copy link

@drewhoskins-temporal drewhoskins-temporal Mar 13, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to list a workflow and maybe activities.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's really just demonstrating the registration of the plugin, I don't think it's necessary to make up a workflow to put in. Activities certainly not required.

@tconley1428 tconley1428 merged commit d50158d into main Mar 13, 2026
26 of 27 checks passed
@tconley1428 tconley1428 deleted the adk-plugin-internal branch March 13, 2026 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants