module documentation
Temporal-aware BaseApiClient that routes SDK calls through activities.
This module provides _TemporalApiClient, a BaseApiClient subclass whose HTTP methods dispatch through Temporal activities instead of making direct calls. The real genai.Client with real credentials only exists on the worker side inside the activity.
This ensures:
- No credential fetching or refreshing happens in the workflow.
- No auth material (tokens, API keys) appears in Temporal event history.
- The SDK's AFC (automatic function calling) loop runs in the workflow, so activity_as_tool() wrappers work naturally.
| Class | _ |
A BaseApiClient that routes all API calls through Temporal activities. |
| Function | _validate |
Raise if http_options contains non-serializable fields. |
| Constant | _REJECTED |
Undocumented |