Add Google ADK (Gemini) agent samples#298
Open
maxjneto wants to merge 2 commits intotemporalio:mainfrom
Open
Conversation
Demonstrates the temporalio[google-adk] integration with three examples: - basic: hello world agent + activity-backed tools - orchestration: sequential, parallel, and loop patterns - human_in_the_loop: signal-based approval before sensitive tool calls
… scripts Co-authored-by: Copilot <copilot@github.com>
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.
What was changed
Added
google_adk/— a new sample directory demonstrating the newesttemporalio[google-adk]integration with Google's Agent Development Kit (Gemini models).Three sub-examples:
basic/— Hello world agent + activity-backed tools viaactivity_toolorchestration/— Sequential pipeline, parallel fan-out, and iterative loop patternshuman_in_the_loop/— Signal-based approval before sensitive tool executionAlso updated:
pyproject.toml— addedgoogle-adkdependency groupREADME.md— addedgoogle_adkto the samples listWhy?
The
openai_agents/sample demonstrates the OpenAI Agents SDK integration, but there's no equivalent for the Google ADK integration (temporalio.contrib.google_adk_agents). This fills that gap, showing users how to useTemporalModel,activity_tool,GoogleAdkPlugin, and workflow primitives (signals, queries) with ADK agents.Checklist
Closes no existing issue, happy to open one if preferred
How was this tested:
uv run ruff check google_adk/— passesuv run ruff format --check google_adk/— passesuv run mypy --check-untyped-defs --namespace-packages google_adk/— passes (0 errors, 19 files)GOOGLE_API_KEYset:Any docs updates needed?
google_adk/README.mdis included with full instructionsREADME.mdupdated with one-line listing