class documentation

class _TemporalAsyncModels(AsyncModels): (source)

View In Hierarchy

AsyncModels that closure-wraps bound-method tools before each call.

This shields workflow-method tools from google-genai's internal deep-copy of the config (>= 2.8.0), which would otherwise clone the workflow instance and silently drop the tool's in-workflow state mutations.

Async Method generate_content Undocumented
Async Method generate_content_stream Undocumented
async def generate_content(self, *, model: str, contents: types.ContentListUnion | types.ContentListUnionDict, config: types.GenerateContentConfigOrDict | None = None) -> types.GenerateContentResponse: (source)

Undocumented

async def generate_content_stream(self, *, model: str, contents: types.ContentListUnion | types.ContentListUnionDict, config: types.GenerateContentConfigOrDict | None = None) -> AsyncIterator[types.GenerateContentResponse]: (source)

Undocumented