Skip to main content

Interface: GoogleAdkPluginOptions

googleAdkAgents.GoogleAdkPluginOptions

Worker-side configuration for GoogleAdkPlugin.

API keys are NOT configured here — the model Activities read them from the worker environment (e.g. GOOGLE_GENAI_API_KEY / GEMINI_API_KEY) or via a custom modelProvider. The plugin never puts them in workflow or activity inputs.

Properties​

autoRouteModels​

• Optional autoRouteModels: boolean

Whether a raw model string on an agent (model: 'gemini-2.5-flash') resolves to a TemporalModel inside a Workflow instead of ADK's own network-calling model class, which cannot run in the sandbox. Default true. Auto-routed models use TemporalModel's default Activity options; wrap the string explicitly (new TemporalModel(name, options)) to customize them. Set false only if you register your own sandbox-safe BaseLlm for a built-in model pattern.

Workflow-side only: it selects the Workflow bundle's interceptor modules, so it affects every Workflow the Worker runs (including replays) and never changes how the model Activity resolves a name on the Worker.


mcpToolsets​

• Optional mcpToolsets: Record<string, MCPToolsetFactory>

Named MCP toolset factories. Each key name becomes the <name>-listTools / <name>-callTool / <name>-listResources / <name>-readResource Activities; the factory opens the real MCP session on the worker. The matching workflow-side handle is new TemporalMCPToolset({ name }).


modelProvider​

• Optional modelProvider: (model: string) => BaseLlm

Reconstructs a BaseLlm from a model name inside the model Activities. Defaults to the ADK LLMRegistry. Use this to inject API keys, point at a proxy, or supply a test double.

Type declaration​

▸ (model): BaseLlm

Parameters​
NameType
modelstring
Returns​

BaseLlm