module documentation

Temporal-aware agents resource shim.

TemporalAsyncAgents exposes the same surface as google-genai's AsyncClient.agents resource, but each operation is dispatched through a Temporal activity holding the real genai.Client on the worker. Agents are server-side managed agent definitions (created once, then referenced by id in interactions.create(agent=...)); like the Interactions API, the resource lives in the vendored Stainless client that bypasses BaseApiClient, so each operation is routed as a whole through an activity instead.

The shim depends only on the public google.genai.interactions surface, not on google-genai internals.

Class TemporalAsyncAgents Agents resource shim that routes calls through activities.