class documentation
class GoogleAdkPlugin(SimplePlugin): (source)
Constructor: GoogleAdkPlugin(toolset_providers)
A Temporal Worker Plugin configured for ADK.
Warning
This class is experimental and may change in future versions. Use with caution in production environments.
This plugin configures:
- Pydantic Payload Converter (required for ADK objects).
- Sandbox Passthrough for google.adk, google.genai, and OpenTelemetry modules.
- ADK's time, id, and random providers, so ADK-generated ids and retry
jitter come from the workflow's deterministic clock and a
workflow-private deterministic random stream
(see
setup_deterministic_runtime).
At worker and replayer configuration time it also warns when the global OpenTelemetry meter or tracer provider is not replay-safe, since ADK telemetry recorded from workflow code would duplicate on replay.
| Method | __init__ |
Initializes the Temporal ADK Plugin. |
| Method | configure |
See base class. Also warns when the global OpenTelemetry meter or tracer provider is not replay-safe, since every replayed workflow would re-emit ADK telemetry. |
| Method | configure |
See base class. Also warns when the global OpenTelemetry meter or tracer provider is not replay-safe, since ADK telemetry would duplicate on replay. |
| Method | _configure |
Undocumented |
Inherited from SimplePlugin:
| Method | configure |
See base class. |
| Async Method | connect |
See base class. |
| Method | name |
See base class. |
| Async Method | run |
See base class. |
| Async Method | run |
See base class. |
| Instance Variable | activities |
Undocumented |
| Instance Variable | data |
Undocumented |
| Instance Variable | interceptors |
Undocumented |
| Instance Variable | nexus |
Undocumented |
| Instance Variable | run |
Undocumented |
| Instance Variable | workflow |
Undocumented |
| Instance Variable | workflow |
Undocumented |
| Instance Variable | workflows |
Undocumented |
| Instance Variable | _name |
Undocumented |
def __init__(self, toolset_providers:
list[ TemporalMcpToolSetProvider | TemporalStatefulMcpToolSetProvider] | None = None):
(source)
¶
overrides
temporalio.plugin.SimplePlugin.__init__Initializes the Temporal ADK Plugin.
| Parameters | |
toolsetlist[ | Optional list of stateless
(TemporalMcpToolSetProvider) or stateful
(TemporalStatefulMcpToolSetProvider) toolset providers
for MCP integration. |
See base class. Also warns when the global OpenTelemetry meter or tracer provider is not replay-safe, since every replayed workflow would re-emit ADK telemetry.