Skip to content

AI-283: Add @temporalio/google-adk-agents sample suite - #486

Draft
xumaple wants to merge 1 commit into
mainfrom
maplexu/AI-283-google-adk-samples
Draft

AI-283: Add @temporalio/google-adk-agents sample suite#486
xumaple wants to merge 1 commit into
mainfrom
maplexu/AI-283-google-adk-samples

Conversation

@xumaple

@xumaple xumaple commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Six samples demonstrating how to run Google ADK (@google/adk) agents as durable Temporal Workflows with the @temporalio/google-adk-agents integration: a basic single-agent model call, Activity-backed tools, a multi-agent coordinator, MCP toolsets, token streaming, and human-in-the-loop via Signals and Updates. Each scenario has a fake-model/mock-MCP Worker test that runs without an API key.

@temporalio/google-adk-agents isn't published to npm yet, so CI (pnpm install) 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 force-pushed the maplexu/AI-283-google-adk-samples branch from 0e60fac to 4199b3f Compare August 20, 2026 17:10
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.

1 participant