module documentation

Temporal plugin for Google Gemini SDK integration.

Function _data_converter Undocumented
Function _reject_sdk_retries Raise if the client enables the SDK's own retry loop.
Constant _RETRY_OPTIONS_MESSAGE Undocumented
def _data_converter(converter: DataConverter | None) -> DataConverter: (source)

Undocumented

def _reject_sdk_retries(client: GeminiClient): (source)

Raise if the client enables the SDK's own retry loop.

Temporal must own retries so each attempt is a separate, observable activity attempt; an SDK-internal retry loop would hide retries inside one activity and compound with Temporal's retry policy.

_RETRY_OPTIONS_MESSAGE: str = (source)

Undocumented

Value
'genai.Client is configured with http_options.retry_options, but Temporal owns r
etries for durable execution. Remove retry_options from the client and configure
 retries with the activity retry_policy instead — e.g. TemporalAsyncClient(activ
ity_config=ActivityConfig(retry_policy=...)) or activity_as_tool(fn, activity_co
nfig=ActivityConfig(retry_policy=...)).'