Temporal Integration for ADK.
This module provides the necessary components to run ADK Agents within Temporal Workflows.
| Module | workflow |
Workflow utilities for Google ADK agents integration with Temporal. |
| Module | _hitl |
Human-in-the-loop helpers for Google ADK agents running in Temporal workflows. |
| Module | _mcp |
No module docstring; 1/1 function, 1/9 class documented |
| Module | _model |
No module docstring; 3/3 functions, 1/1 class documented |
| Module | _plugin |
No module docstring; 2/4 functions, 1/1 class documented |
From __init__.py:
| Class | |
A Temporal Worker Plugin configured for ADK. |
| Class | |
A pending human-in-the-loop request extracted from an ADK event. |
| Class | |
Temporal-aware MCP toolset implementation. |
| Class | |
Provider for creating Temporal-aware MCP toolsets. |
| Class | |
A Temporal-based LLM model that executes model invocations as activities. |
| Class | |
Workflow-side handle for a stateful MCP toolset. |
| Class | |
Provider for a stateful, pooled MCP toolset backed by a dedicated worker. |
| Function | hitl |
Builds the message part answering a tool-confirmation request. |
| Function | hitl |
Builds the message part answering a human-input (RequestInput) request. |
| Function | pending |
Extracts pending human-in-the-loop requests from an ADK event. |
str, *, confirmed: bool, payload: Any | None = None) -> types.Part:
(source)
¶
Builds the message part answering a tool-confirmation request.
Warning
This function is experimental and may change in future versions. Use with caution in production environments.
Compose one or more parts into types.Content(role="user", parts=[...]) and pass it as new_message to runner.run_async to resume the paused run. If confirmed is false the gated tool is not executed and the model receives a rejection response instead.
| Parameters | |
interruptstr | The HitlRequest.interrupt_id being answered. |
confirmed:bool | Whether the human approved running the tool. |
payload:Any | None | Optional custom payload made available to the tool via tool_context.tool_confirmation.payload. |
| Returns | |
types.Part | Undocumented |
Builds the message part answering a human-input (RequestInput) request.
Warning
This function is experimental and may change in future versions. Use with caution in production environments.
Compose one or more parts into types.Content(role="user", parts=[...]) and pass it as new_message to runner.run_async to resume the paused run. Non-mapping values are wrapped as {"result": value} per ADK's convention and unwrapped on delivery to the node.
| Parameters | |
interruptstr | The HitlRequest.interrupt_id being answered. |
response:Any | The human's response value. |
| Returns | |
types.Part | Undocumented |
Extracts pending human-in-the-loop requests from an ADK event.
Warning
This function is experimental and may change in future versions. Use with caution in production environments.
Call this on each event yielded by runner.run_async. A non-empty
result means the run is pausing for the returned requests; once
run_async completes, resume by sending a new user message whose parts
answer them (see hitl_input_response and
hitl_confirmation_response). Auth requests
(adk_request_credential) are not surfaced; see the module docstring.
| Parameters | |
event:Event | An event yielded by runner.run_async. |
| Returns | |
list[ | The requests carried by this event; empty for ordinary events. |