Skip to content

AI-283: Add Google ADK samples - #512

Open
xumaple wants to merge 2 commits into
mainfrom
maplexu/AI-283-google-adk-samples-v2
Open

AI-283: Add Google ADK samples#512
xumaple wants to merge 2 commits into
mainfrom
maplexu/AI-283-google-adk-samples-v2

Conversation

@xumaple

@xumaple xumaple commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Eight samples demonstrating how to run Google ADK (@google/adk) agents as durable Temporal Workflows with @temporalio/google-adk-agents: multi-turn agent chat, deterministic and Activity-backed tools, multi-agent orchestration, stateless MCP, token streaming, human-in-the-loop, structured output, and observability. Each model-dependent scenario has an API-key-free local mode, and all scenarios have Worker tests that run without an API key.

Note: @temporalio/google-adk-agents is not published yet, so CI installation will fail until it ships.

Seven scenarios under google-adk-agents/src/, each with its own README, all
against @temporalio/google-adk-agents: basic (an LlmAgent whose model is a
TemporalModel), tools (a Temporal Activity exposed to the agent with
activityAsTool), agent-patterns (a transfer_to_agent relay across three
agents), mcp (a TemporalMCPToolset backed by a filesystem MCP server the Worker
opens over stdio), streaming (token streaming over a Workflow Stream from a
direct TemporalModel call), human-approval (a LongRunningFunctionTool gated by
a Signal or Update), and observability (agent-loop token usage and latency, by
composing OpenTelemetryPlugin onto the Worker alongside GoogleAdkPlugin).

One package.json and one set of configs at google-adk-agents/ rather than a
project per scenario: one dependency set and one toolchain cover all seven, and
the handful of packages only one or two scenarios import don't earn a project
boundary. Registered in CI and CODEOWNERS, and excluded from the shared
.post-create copy since the suite has its own.

Every scenario is tested against a real Worker on TestWorkflowEnvironment, six
of them driving a BaseLlm double and human-approval needing no model at all, so
the suite runs in CI without a GEMINI_API_KEY.
@xumaple
xumaple marked this pull request as ready for review August 24, 2026 17:09
@xumaple
xumaple requested a review from a team as a code owner August 24, 2026 17:09
@xumaple xumaple changed the title AI-283: Conform Google ADK samples to standard scenarios AI-283: Add Google ADK samples Aug 24, 2026

@DABH DABH left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LG once CI passes

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.

3 participants