google-genai 1.57.0__tar.gz → 1.58.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (364) hide show
  1. {google_genai-1.57.0/google_genai.egg-info → google_genai-1.58.0}/PKG-INFO +6 -11
  2. {google_genai-1.57.0 → google_genai-1.58.0}/README.md +4 -9
  3. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_api_client.py +12 -8
  4. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/__init__.py +3 -0
  5. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/_client.py +57 -3
  6. google_genai-1.58.0/google/genai/_interactions/_client_adapter.py +48 -0
  7. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/__init__.py +4 -0
  8. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/audio_content.py +2 -0
  9. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/audio_content_param.py +2 -0
  10. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/content.py +2 -0
  11. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/content_delta.py +10 -2
  12. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/content_param.py +2 -0
  13. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/content_start.py +1 -2
  14. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/content_stop.py +1 -2
  15. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/document_content.py +2 -0
  16. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/document_content_param.py +2 -0
  17. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/error_event.py +1 -2
  18. google_genai-1.58.0/google/genai/_interactions/types/file_search_call_content.py +32 -0
  19. google_genai-1.58.0/google/genai/_interactions/types/file_search_call_content_param.py +31 -0
  20. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/generation_config.py +4 -0
  21. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/generation_config_param.py +4 -0
  22. google_genai-1.58.0/google/genai/_interactions/types/image_config.py +31 -0
  23. google_genai-1.58.0/google/genai/_interactions/types/image_config_param.py +30 -0
  24. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/image_content.py +2 -0
  25. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/image_content_param.py +2 -0
  26. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/interaction.py +2 -0
  27. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/interaction_create_params.py +2 -0
  28. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/interaction_event.py +1 -2
  29. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/interaction_sse_event.py +5 -3
  30. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/interaction_status_update.py +1 -2
  31. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/video_content.py +2 -0
  32. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/video_content_param.py +2 -0
  33. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_live_converters.py +84 -0
  34. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_transformers.py +15 -21
  35. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/client.py +61 -55
  36. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/live.py +1 -1
  37. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/client/test_custom_client.py +27 -0
  38. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/client/test_http_options.py +1 -1
  39. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/interactions/test_auth.py +1 -4
  40. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/interactions/test_integration.py +2 -0
  41. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/transformers/test_blobs.py +16 -3
  42. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/types.py +58 -2
  43. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/version.py +1 -1
  44. {google_genai-1.57.0 → google_genai-1.58.0/google_genai.egg-info}/PKG-INFO +6 -11
  45. {google_genai-1.57.0 → google_genai-1.58.0}/google_genai.egg-info/SOURCES.txt +5 -0
  46. {google_genai-1.57.0 → google_genai-1.58.0}/google_genai.egg-info/requires.txt +1 -1
  47. {google_genai-1.57.0 → google_genai-1.58.0}/pyproject.toml +2 -2
  48. {google_genai-1.57.0 → google_genai-1.58.0}/LICENSE +0 -0
  49. {google_genai-1.57.0 → google_genai-1.58.0}/MANIFEST.in +0 -0
  50. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/__init__.py +0 -0
  51. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_adapters.py +0 -0
  52. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_api_module.py +0 -0
  53. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_automatic_function_calling_util.py +0 -0
  54. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_base_transformers.py +0 -0
  55. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_base_url.py +0 -0
  56. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_common.py +0 -0
  57. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_extra_utils.py +0 -0
  58. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/_base_client.py +0 -0
  59. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/_compat.py +0 -0
  60. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/_constants.py +0 -0
  61. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/_exceptions.py +0 -0
  62. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/_files.py +0 -0
  63. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/_models.py +0 -0
  64. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/_qs.py +0 -0
  65. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/_resource.py +0 -0
  66. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/_response.py +0 -0
  67. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/_streaming.py +0 -0
  68. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/_types.py +0 -0
  69. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/_utils/__init__.py +0 -0
  70. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/_utils/_compat.py +0 -0
  71. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/_utils/_datetime_parse.py +0 -0
  72. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/_utils/_logs.py +0 -0
  73. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/_utils/_proxy.py +0 -0
  74. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/_utils/_reflection.py +0 -0
  75. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/_utils/_resources_proxy.py +0 -0
  76. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/_utils/_streams.py +0 -0
  77. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/_utils/_sync.py +0 -0
  78. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/_utils/_transform.py +0 -0
  79. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/_utils/_typing.py +0 -0
  80. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/_utils/_utils.py +0 -0
  81. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/_version.py +0 -0
  82. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/resources/__init__.py +0 -0
  83. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/resources/interactions.py +0 -0
  84. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/allowed_tools.py +0 -0
  85. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/allowed_tools_param.py +0 -0
  86. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/annotation.py +0 -0
  87. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/annotation_param.py +0 -0
  88. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/audio_mime_type.py +0 -0
  89. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/audio_mime_type_param.py +0 -0
  90. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/code_execution_call_arguments.py +0 -0
  91. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/code_execution_call_arguments_param.py +0 -0
  92. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/code_execution_call_content.py +0 -0
  93. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/code_execution_call_content_param.py +0 -0
  94. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/code_execution_result_content.py +0 -0
  95. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/code_execution_result_content_param.py +0 -0
  96. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/deep_research_agent_config.py +0 -0
  97. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/deep_research_agent_config_param.py +0 -0
  98. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/document_mime_type.py +0 -0
  99. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/document_mime_type_param.py +0 -0
  100. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/dynamic_agent_config.py +0 -0
  101. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/dynamic_agent_config_param.py +0 -0
  102. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/file_search_result_content.py +0 -0
  103. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/file_search_result_content_param.py +0 -0
  104. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/function.py +0 -0
  105. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/function_call_content.py +0 -0
  106. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/function_call_content_param.py +0 -0
  107. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/function_param.py +0 -0
  108. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/function_result_content.py +0 -0
  109. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/function_result_content_param.py +0 -0
  110. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/google_search_call_arguments.py +0 -0
  111. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/google_search_call_arguments_param.py +0 -0
  112. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/google_search_call_content.py +0 -0
  113. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/google_search_call_content_param.py +0 -0
  114. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/google_search_result.py +0 -0
  115. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/google_search_result_content.py +0 -0
  116. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/google_search_result_content_param.py +0 -0
  117. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/google_search_result_param.py +0 -0
  118. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/image_mime_type.py +0 -0
  119. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/image_mime_type_param.py +0 -0
  120. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/interaction_get_params.py +0 -0
  121. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/mcp_server_tool_call_content.py +0 -0
  122. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/mcp_server_tool_call_content_param.py +0 -0
  123. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/mcp_server_tool_result_content.py +0 -0
  124. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/mcp_server_tool_result_content_param.py +0 -0
  125. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/model.py +0 -0
  126. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/model_param.py +0 -0
  127. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/speech_config.py +0 -0
  128. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/speech_config_param.py +0 -0
  129. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/text_content.py +0 -0
  130. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/text_content_param.py +0 -0
  131. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/thinking_level.py +0 -0
  132. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/thought_content.py +0 -0
  133. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/thought_content_param.py +0 -0
  134. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/tool.py +0 -0
  135. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/tool_choice.py +0 -0
  136. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/tool_choice_config.py +0 -0
  137. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/tool_choice_config_param.py +0 -0
  138. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/tool_choice_param.py +0 -0
  139. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/tool_choice_type.py +0 -0
  140. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/tool_param.py +0 -0
  141. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/turn.py +0 -0
  142. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/turn_param.py +0 -0
  143. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/url_context_call_arguments.py +0 -0
  144. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/url_context_call_arguments_param.py +0 -0
  145. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/url_context_call_content.py +0 -0
  146. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/url_context_call_content_param.py +0 -0
  147. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/url_context_result.py +0 -0
  148. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/url_context_result_content.py +0 -0
  149. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/url_context_result_content_param.py +0 -0
  150. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/url_context_result_param.py +0 -0
  151. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/usage.py +0 -0
  152. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/usage_param.py +0 -0
  153. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/video_mime_type.py +0 -0
  154. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_interactions/types/video_mime_type_param.py +0 -0
  155. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_local_tokenizer_loader.py +0 -0
  156. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_mcp_utils.py +0 -0
  157. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_operations_converters.py +0 -0
  158. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_replay_api_client.py +0 -0
  159. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_test_api_client.py +0 -0
  160. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/_tokens_converters.py +0 -0
  161. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/batches.py +0 -0
  162. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/caches.py +0 -0
  163. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/chats.py +0 -0
  164. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/documents.py +0 -0
  165. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/errors.py +0 -0
  166. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/file_search_stores.py +0 -0
  167. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/files.py +0 -0
  168. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/interactions.py +0 -0
  169. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/live_music.py +0 -0
  170. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/local_tokenizer.py +0 -0
  171. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/models.py +0 -0
  172. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/operations.py +0 -0
  173. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/pagers.py +0 -0
  174. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/py.typed +0 -0
  175. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/__init__.py +0 -0
  176. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/afc/__init__.py +0 -0
  177. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/afc/test_convert_if_exist_pydantic_model.py +0 -0
  178. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/afc/test_convert_number_values_for_function_call_args.py +0 -0
  179. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/afc/test_find_afc_incompatible_tool_indexes.py +0 -0
  180. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/afc/test_generate_content_stream_afc.py +0 -0
  181. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/afc/test_generate_content_stream_afc_thoughts.py +0 -0
  182. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/afc/test_get_function_map.py +0 -0
  183. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/afc/test_get_function_response_parts.py +0 -0
  184. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/afc/test_get_max_remote_calls_for_afc.py +0 -0
  185. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/afc/test_invoke_function_from_dict_args.py +0 -0
  186. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/afc/test_raise_error_for_afc_incompatible_config.py +0 -0
  187. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/afc/test_should_append_afc_history.py +0 -0
  188. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/afc/test_should_disable_afc.py +0 -0
  189. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/batches/__init__.py +0 -0
  190. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/batches/test_cancel.py +0 -0
  191. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/batches/test_create.py +0 -0
  192. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/batches/test_create_with_bigquery.py +0 -0
  193. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/batches/test_create_with_file.py +0 -0
  194. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/batches/test_create_with_gcs.py +0 -0
  195. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/batches/test_create_with_inlined_requests.py +0 -0
  196. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/batches/test_delete.py +0 -0
  197. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/batches/test_embedding.py +0 -0
  198. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/batches/test_get.py +0 -0
  199. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/batches/test_list.py +0 -0
  200. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/caches/__init__.py +0 -0
  201. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/caches/constants.py +0 -0
  202. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/caches/test_create.py +0 -0
  203. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/caches/test_create_custom_url.py +0 -0
  204. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/caches/test_delete.py +0 -0
  205. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/caches/test_delete_custom_url.py +0 -0
  206. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/caches/test_get.py +0 -0
  207. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/caches/test_get_custom_url.py +0 -0
  208. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/caches/test_list.py +0 -0
  209. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/caches/test_update.py +0 -0
  210. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/caches/test_update_custom_url.py +0 -0
  211. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/chats/__init__.py +0 -0
  212. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/chats/test_get_history.py +0 -0
  213. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/chats/test_send_message.py +0 -0
  214. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/chats/test_validate_response.py +0 -0
  215. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/client/__init__.py +0 -0
  216. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/client/test_async_stream.py +0 -0
  217. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/client/test_client_close.py +0 -0
  218. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/client/test_client_initialization.py +0 -0
  219. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/client/test_client_requests.py +0 -0
  220. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/client/test_replay_client_equality.py +0 -0
  221. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/client/test_retries.py +0 -0
  222. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/client/test_upload_errors.py +0 -0
  223. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/common/__init__.py +0 -0
  224. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/common/test_common.py +0 -0
  225. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/conftest.py +0 -0
  226. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/documents/__init__.py +0 -0
  227. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/documents/test_delete.py +0 -0
  228. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/documents/test_get.py +0 -0
  229. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/documents/test_list.py +0 -0
  230. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/errors/__init__.py +0 -0
  231. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/errors/test_api_error.py +0 -0
  232. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/file_search_stores/__init__.py +0 -0
  233. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/file_search_stores/test_create.py +0 -0
  234. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/file_search_stores/test_delete.py +0 -0
  235. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/file_search_stores/test_get.py +0 -0
  236. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/file_search_stores/test_import_file.py +0 -0
  237. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/file_search_stores/test_list.py +0 -0
  238. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/file_search_stores/test_upload_to_file_search_store.py +0 -0
  239. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/files/__init__.py +0 -0
  240. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/files/test_delete.py +0 -0
  241. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/files/test_download.py +0 -0
  242. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/files/test_get.py +0 -0
  243. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/files/test_list.py +0 -0
  244. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/files/test_register.py +0 -0
  245. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/files/test_register_table.py +0 -0
  246. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/files/test_upload.py +0 -0
  247. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/imports/test_no_optional_imports.py +0 -0
  248. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/interactions/__init__.py +0 -0
  249. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/interactions/test_paths.py +0 -0
  250. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/live/__init__.py +0 -0
  251. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/live/test_live.py +0 -0
  252. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/live/test_live_music.py +0 -0
  253. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/live/test_live_response.py +0 -0
  254. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/live/test_send_client_content.py +0 -0
  255. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/live/test_send_realtime_input.py +0 -0
  256. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/live/test_send_tool_response.py +0 -0
  257. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/local_tokenizer/__init__.py +0 -0
  258. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/local_tokenizer/test_local_tokenizer.py +0 -0
  259. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/local_tokenizer/test_local_tokenizer_loader.py +0 -0
  260. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/mcp/__init__.py +0 -0
  261. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/mcp/test_has_mcp_tool_usage.py +0 -0
  262. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/mcp/test_mcp_to_gemini_tools.py +0 -0
  263. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/mcp/test_parse_config_for_mcp_sessions.py +0 -0
  264. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/mcp/test_parse_config_for_mcp_usage.py +0 -0
  265. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/mcp/test_set_mcp_usage_header.py +0 -0
  266. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/models/__init__.py +0 -0
  267. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/models/constants.py +0 -0
  268. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/models/test_compute_tokens.py +0 -0
  269. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/models/test_count_tokens.py +0 -0
  270. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/models/test_delete.py +0 -0
  271. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/models/test_edit_image.py +0 -0
  272. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/models/test_embed_content.py +0 -0
  273. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/models/test_function_call_streaming.py +0 -0
  274. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/models/test_generate_content.py +0 -0
  275. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/models/test_generate_content_cached_content.py +0 -0
  276. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/models/test_generate_content_config_zero_value.py +0 -0
  277. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/models/test_generate_content_from_apikey.py +0 -0
  278. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/models/test_generate_content_http_options.py +0 -0
  279. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/models/test_generate_content_image_generation.py +0 -0
  280. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/models/test_generate_content_mcp.py +0 -0
  281. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/models/test_generate_content_media_resolution.py +0 -0
  282. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/models/test_generate_content_model.py +0 -0
  283. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/models/test_generate_content_part.py +0 -0
  284. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/models/test_generate_content_thought.py +0 -0
  285. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/models/test_generate_content_tools.py +0 -0
  286. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/models/test_generate_images.py +0 -0
  287. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/models/test_generate_videos.py +0 -0
  288. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/models/test_get.py +0 -0
  289. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/models/test_list.py +0 -0
  290. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/models/test_recontext_image.py +0 -0
  291. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/models/test_segment_image.py +0 -0
  292. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/models/test_update.py +0 -0
  293. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/models/test_upscale_image.py +0 -0
  294. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/operations/__init__.py +0 -0
  295. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/operations/test_get.py +0 -0
  296. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/public_samples/__init__.py +0 -0
  297. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/public_samples/test_gemini_text_only.py +0 -0
  298. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/pytest_helper.py +0 -0
  299. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/shared/__init__.py +0 -0
  300. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/shared/batches/__init__.py +0 -0
  301. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/shared/batches/test_create_delete.py +0 -0
  302. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/shared/batches/test_create_get_cancel.py +0 -0
  303. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/shared/batches/test_list.py +0 -0
  304. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/shared/caches/__init__.py +0 -0
  305. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/shared/caches/test_create_get_delete.py +0 -0
  306. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/shared/caches/test_create_update_get.py +0 -0
  307. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/shared/caches/test_list.py +0 -0
  308. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/shared/chats/__init__.py +0 -0
  309. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/shared/chats/test_send_message.py +0 -0
  310. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/shared/chats/test_send_message_stream.py +0 -0
  311. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/shared/files/__init__.py +0 -0
  312. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/shared/files/test_list.py +0 -0
  313. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/shared/files/test_upload_get_delete.py +0 -0
  314. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/shared/models/__init__.py +0 -0
  315. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/shared/models/test_compute_tokens.py +0 -0
  316. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/shared/models/test_count_tokens.py +0 -0
  317. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/shared/models/test_edit_image.py +0 -0
  318. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/shared/models/test_embed.py +0 -0
  319. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/shared/models/test_generate_content.py +0 -0
  320. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/shared/models/test_generate_content_stream.py +0 -0
  321. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/shared/models/test_generate_images.py +0 -0
  322. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/shared/models/test_generate_videos.py +0 -0
  323. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/shared/models/test_list.py +0 -0
  324. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/shared/models/test_recontext_image.py +0 -0
  325. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/shared/models/test_segment_image.py +0 -0
  326. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/shared/models/test_upscale_image.py +0 -0
  327. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/shared/tunings/__init__.py +0 -0
  328. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/shared/tunings/test_create.py +0 -0
  329. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/shared/tunings/test_create_get_cancel.py +0 -0
  330. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/shared/tunings/test_list.py +0 -0
  331. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/tokens/__init__.py +0 -0
  332. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/tokens/test_create.py +0 -0
  333. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/transformers/__init__.py +0 -0
  334. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/transformers/test_bytes.py +0 -0
  335. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/transformers/test_duck_type.py +0 -0
  336. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/transformers/test_function_responses.py +0 -0
  337. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/transformers/test_schema.py +0 -0
  338. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/transformers/test_t_batch.py +0 -0
  339. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/transformers/test_t_content.py +0 -0
  340. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/transformers/test_t_contents.py +0 -0
  341. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/transformers/test_t_part.py +0 -0
  342. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/transformers/test_t_parts.py +0 -0
  343. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/transformers/test_t_tool.py +0 -0
  344. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/transformers/test_t_tools.py +0 -0
  345. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/tunings/__init__.py +0 -0
  346. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/tunings/test_cancel.py +0 -0
  347. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/tunings/test_end_to_end.py +0 -0
  348. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/tunings/test_get.py +0 -0
  349. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/tunings/test_list.py +0 -0
  350. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/tunings/test_tune.py +0 -0
  351. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/types/__init__.py +0 -0
  352. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/types/test_bytes_internal.py +0 -0
  353. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/types/test_bytes_type.py +0 -0
  354. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/types/test_future.py +0 -0
  355. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/types/test_optional_types.py +0 -0
  356. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/types/test_part_type.py +0 -0
  357. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/types/test_schema_from_json_schema.py +0 -0
  358. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/types/test_schema_json_schema.py +0 -0
  359. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tests/types/test_types.py +0 -0
  360. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tokens.py +0 -0
  361. {google_genai-1.57.0 → google_genai-1.58.0}/google/genai/tunings.py +0 -0
  362. {google_genai-1.57.0 → google_genai-1.58.0}/google_genai.egg-info/dependency_links.txt +0 -0
  363. {google_genai-1.57.0 → google_genai-1.58.0}/google_genai.egg-info/top_level.txt +0 -0
  364. {google_genai-1.57.0 → google_genai-1.58.0}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: google-genai
3
- Version: 1.57.0
3
+ Version: 1.58.0
4
4
  Summary: GenAI Python SDK
5
5
  Author-email: Google LLC <googleapis-packages@google.com>
6
6
  License-Expression: Apache-2.0
@@ -20,7 +20,7 @@ Requires-Python: >=3.10
20
20
  Description-Content-Type: text/markdown
21
21
  License-File: LICENSE
22
22
  Requires-Dist: anyio<5.0.0,>=4.8.0
23
- Requires-Dist: google-auth[requests]<3.0.0,>=2.46.0
23
+ Requires-Dist: google-auth[requests]<3.0.0,>=2.47.0
24
24
  Requires-Dist: httpx<1.0.0,>=0.28.1
25
25
  Requires-Dist: pydantic<3.0.0,>=2.9.0
26
26
  Requires-Dist: requests<3.0.0,>=2.28.1
@@ -112,7 +112,7 @@ Below is an example `generate_content()` call using types from the types module:
112
112
 
113
113
  ```python
114
114
  response = client.models.generate_content(
115
- model='gemini-2.0-flash-001',
115
+ model='gemini-2.5-flash',
116
116
  contents=types.Part.from_text(text='Why is the sky blue?'),
117
117
  config=types.GenerateContentConfig(
118
118
  temperature=0,
@@ -127,7 +127,7 @@ types:
127
127
 
128
128
  ```python
129
129
  response = client.models.generate_content(
130
- model='gemini-2.0-flash-001',
130
+ model='gemini-2.5-flash',
131
131
  contents={'text': 'Why is the sky blue?'},
132
132
  config={
133
133
  'temperature': 0,
@@ -621,7 +621,7 @@ and [Gemini API docs](https://ai.google.dev/gemini-api/docs/models) respectively
621
621
  from google.genai import types
622
622
 
623
623
  response = client.models.generate_content(
624
- model='gemini-2.0-flash-001',
624
+ model='gemini-2.5-flash',
625
625
  contents='high',
626
626
  config=types.GenerateContentConfig(
627
627
  system_instruction='I say high, you say low',
@@ -1238,7 +1238,6 @@ print(response)
1238
1238
  ```python
1239
1239
  from google.genai import types
1240
1240
 
1241
- # multiple contents with config
1242
1241
  response = client.models.embed_content(
1243
1242
  model='gemini-embedding-001',
1244
1243
  contents=['why is the sky blue?', 'What is your age?'],
@@ -1252,12 +1251,9 @@ print(response)
1252
1251
 
1253
1252
  #### Generate Images
1254
1253
 
1255
- Support for generate images in Gemini Developer API is behind an allowlist
1256
-
1257
1254
  ```python
1258
1255
  from google.genai import types
1259
1256
 
1260
- # Generate Image
1261
1257
  response1 = client.models.generate_images(
1262
1258
  model='imagen-4.0-generate-001',
1263
1259
  prompt='An umbrella in the foreground, and a rainy night sky in the background',
@@ -1277,7 +1273,6 @@ Upscale image is only supported in Vertex AI.
1277
1273
  ```python
1278
1274
  from google.genai import types
1279
1275
 
1280
- # Upscale the generated image from above
1281
1276
  response2 = client.models.upscale_image(
1282
1277
  model='imagen-4.0-upscale-preview',
1283
1278
  image=response1.generated_images[0].image,
@@ -1977,7 +1972,7 @@ file = client.files.upload(
1977
1972
 
1978
1973
  # Create a batch job with file name
1979
1974
  batch_job = client.batches.create(
1980
- model="gemini-2.0-flash",
1975
+ model="gemini-2.5-flash",
1981
1976
  src="files/test-json",
1982
1977
  )
1983
1978
  ```
@@ -74,7 +74,7 @@ Below is an example `generate_content()` call using types from the types module:
74
74
 
75
75
  ```python
76
76
  response = client.models.generate_content(
77
- model='gemini-2.0-flash-001',
77
+ model='gemini-2.5-flash',
78
78
  contents=types.Part.from_text(text='Why is the sky blue?'),
79
79
  config=types.GenerateContentConfig(
80
80
  temperature=0,
@@ -89,7 +89,7 @@ types:
89
89
 
90
90
  ```python
91
91
  response = client.models.generate_content(
92
- model='gemini-2.0-flash-001',
92
+ model='gemini-2.5-flash',
93
93
  contents={'text': 'Why is the sky blue?'},
94
94
  config={
95
95
  'temperature': 0,
@@ -583,7 +583,7 @@ and [Gemini API docs](https://ai.google.dev/gemini-api/docs/models) respectively
583
583
  from google.genai import types
584
584
 
585
585
  response = client.models.generate_content(
586
- model='gemini-2.0-flash-001',
586
+ model='gemini-2.5-flash',
587
587
  contents='high',
588
588
  config=types.GenerateContentConfig(
589
589
  system_instruction='I say high, you say low',
@@ -1200,7 +1200,6 @@ print(response)
1200
1200
  ```python
1201
1201
  from google.genai import types
1202
1202
 
1203
- # multiple contents with config
1204
1203
  response = client.models.embed_content(
1205
1204
  model='gemini-embedding-001',
1206
1205
  contents=['why is the sky blue?', 'What is your age?'],
@@ -1214,12 +1213,9 @@ print(response)
1214
1213
 
1215
1214
  #### Generate Images
1216
1215
 
1217
- Support for generate images in Gemini Developer API is behind an allowlist
1218
-
1219
1216
  ```python
1220
1217
  from google.genai import types
1221
1218
 
1222
- # Generate Image
1223
1219
  response1 = client.models.generate_images(
1224
1220
  model='imagen-4.0-generate-001',
1225
1221
  prompt='An umbrella in the foreground, and a rainy night sky in the background',
@@ -1239,7 +1235,6 @@ Upscale image is only supported in Vertex AI.
1239
1235
  ```python
1240
1236
  from google.genai import types
1241
1237
 
1242
- # Upscale the generated image from above
1243
1238
  response2 = client.models.upscale_image(
1244
1239
  model='imagen-4.0-upscale-preview',
1245
1240
  image=response1.generated_images[0].image,
@@ -1939,7 +1934,7 @@ file = client.files.upload(
1939
1934
 
1940
1935
  # Create a batch job with file name
1941
1936
  batch_job = client.batches.create(
1942
- model="gemini-2.0-flash",
1937
+ model="gemini-2.5-flash",
1943
1938
  src="files/test-json",
1944
1939
  )
1945
1940
  ```
@@ -715,19 +715,23 @@ class BaseApiClient:
715
715
  self._async_httpx_client = self._http_options.httpx_async_client
716
716
  else:
717
717
  self._async_httpx_client = AsyncHttpxClient(**async_client_args)
718
+
719
+ # Initialize the aiohttp client session.
720
+ self._aiohttp_session: Optional[aiohttp.ClientSession] = None
718
721
  if self._use_aiohttp():
719
722
  try:
720
723
  import aiohttp # pylint: disable=g-import-not-at-top
721
- # Do it once at the genai.Client level. Share among all requests.
722
- self._async_client_session_request_args = self._ensure_aiohttp_ssl_ctx(
723
- self._http_options
724
- )
724
+
725
+ if self._http_options.aiohttp_client:
726
+ self._aiohttp_session = self._http_options.aiohttp_client
727
+ else:
728
+ # Do it once at the genai.Client level. Share among all requests.
729
+ self._async_client_session_request_args = (
730
+ self._ensure_aiohttp_ssl_ctx(self._http_options)
731
+ )
725
732
  except ImportError:
726
733
  pass
727
734
 
728
- # Initialize the aiohttp client session.
729
- self._aiohttp_session: Optional[aiohttp.ClientSession] = None
730
-
731
735
  retry_kwargs = retry_args(self._http_options.retry_options)
732
736
  self._websocket_ssl_ctx = self._ensure_websocket_ssl_ctx(self._http_options)
733
737
  self._retry = tenacity.Retrying(**retry_kwargs)
@@ -1892,7 +1896,7 @@ class BaseApiClient:
1892
1896
  # close the client when the object is garbage collected.
1893
1897
  if not self._http_options.httpx_async_client:
1894
1898
  await self._async_httpx_client.aclose()
1895
- if self._aiohttp_session:
1899
+ if self._aiohttp_session and not self._http_options.aiohttp_client:
1896
1900
  await self._aiohttp_session.close()
1897
1901
 
1898
1902
  def __del__(self) -> None:
@@ -53,6 +53,7 @@ from ._exceptions import (
53
53
  )
54
54
  from ._base_client import DefaultHttpxClient, DefaultAioHttpClient, DefaultAsyncHttpxClient
55
55
  from ._utils._logs import setup_logging as _setup_logging
56
+ from ._client_adapter import GeminiNextGenAPIClientAdapter, AsyncGeminiNextGenAPIClientAdapter
56
57
 
57
58
  __all__ = [
58
59
  "types",
@@ -96,6 +97,8 @@ __all__ = [
96
97
  "DefaultHttpxClient",
97
98
  "DefaultAsyncHttpxClient",
98
99
  "DefaultAioHttpClient",
100
+ "AsyncGeminiNextGenAPIClientAdapter",
101
+ "GeminiNextGenAPIClientAdapter"
99
102
  ]
100
103
 
101
104
  if not _t.TYPE_CHECKING:
@@ -37,6 +37,7 @@ from ._types import (
37
37
  )
38
38
  from ._utils import is_given, get_async_library
39
39
  from ._compat import cached_property
40
+ from ._models import FinalRequestOptions
40
41
  from ._version import __version__
41
42
  from ._streaming import Stream as Stream, AsyncStream as AsyncStream
42
43
  from ._exceptions import APIStatusError
@@ -45,6 +46,7 @@ from ._base_client import (
45
46
  SyncAPIClient,
46
47
  AsyncAPIClient,
47
48
  )
49
+ from ._client_adapter import GeminiNextGenAPIClientAdapter, AsyncGeminiNextGenAPIClientAdapter
48
50
 
49
51
  if TYPE_CHECKING:
50
52
  from .resources import interactions
@@ -66,6 +68,7 @@ class GeminiNextGenAPIClient(SyncAPIClient):
66
68
  # client options
67
69
  api_key: str | None
68
70
  api_version: str
71
+ client_adapter: GeminiNextGenAPIClientAdapter | None
69
72
 
70
73
  def __init__(
71
74
  self,
@@ -81,6 +84,7 @@ class GeminiNextGenAPIClient(SyncAPIClient):
81
84
  # We provide a `DefaultHttpxClient` class that you can pass to retain the default values we use for `limits`, `timeout` & `follow_redirects`.
82
85
  # See the [httpx documentation](https://www.python-httpx.org/api/#client) for more details.
83
86
  http_client: httpx.Client | None = None,
87
+ client_adapter: GeminiNextGenAPIClientAdapter | None = None,
84
88
  # Enable or disable schema validation for data returned by the API.
85
89
  # When enabled an error APIResponseValidationError is raised
86
90
  # if the API responds with invalid data for the expected schema.
@@ -108,6 +112,8 @@ class GeminiNextGenAPIClient(SyncAPIClient):
108
112
  if base_url is None:
109
113
  base_url = f"https://generativelanguage.googleapis.com"
110
114
 
115
+ self.client_adapter = client_adapter
116
+
111
117
  super().__init__(
112
118
  version=__version__,
113
119
  base_url=base_url,
@@ -159,15 +165,35 @@ class GeminiNextGenAPIClient(SyncAPIClient):
159
165
 
160
166
  @override
161
167
  def _validate_headers(self, headers: Headers, custom_headers: Headers) -> None:
168
+ if headers.get("Authorization") or custom_headers.get("Authorization") or isinstance(custom_headers.get("Authorization"), Omit):
169
+ return
162
170
  if self.api_key and headers.get("x-goog-api-key"):
163
171
  return
164
- if isinstance(custom_headers.get("x-goog-api-key"), Omit):
172
+ if custom_headers.get("x-goog-api-key") or isinstance(custom_headers.get("x-goog-api-key"), Omit):
165
173
  return
166
174
 
167
175
  raise TypeError(
168
176
  '"Could not resolve authentication method. Expected the api_key to be set. Or for the `x-goog-api-key` headers to be explicitly omitted"'
169
177
  )
170
-
178
+
179
+ @override
180
+ def _prepare_options(self, options: FinalRequestOptions) -> FinalRequestOptions:
181
+ if not self.client_adapter or not self.client_adapter.is_vertex_ai():
182
+ return options
183
+
184
+ headers = options.headers or {}
185
+ has_auth = headers.get("Authorization") or headers.get("x-goog-api-key") # pytype: disable=attribute-error
186
+ if has_auth:
187
+ return options
188
+
189
+ adapted_headers = self.client_adapter.get_auth_headers()
190
+ if adapted_headers:
191
+ options.headers = {
192
+ **adapted_headers,
193
+ **headers
194
+ }
195
+ return options
196
+
171
197
  def copy(
172
198
  self,
173
199
  *,
@@ -181,6 +207,7 @@ class GeminiNextGenAPIClient(SyncAPIClient):
181
207
  set_default_headers: Mapping[str, str] | None = None,
182
208
  default_query: Mapping[str, object] | None = None,
183
209
  set_default_query: Mapping[str, object] | None = None,
210
+ client_adapter: GeminiNextGenAPIClientAdapter | None = None,
184
211
  _extra_kwargs: Mapping[str, Any] = {},
185
212
  ) -> Self:
186
213
  """
@@ -214,6 +241,7 @@ class GeminiNextGenAPIClient(SyncAPIClient):
214
241
  max_retries=max_retries if is_given(max_retries) else self.max_retries,
215
242
  default_headers=headers,
216
243
  default_query=params,
244
+ client_adapter=self.client_adapter or client_adapter,
217
245
  **_extra_kwargs,
218
246
  )
219
247
 
@@ -262,6 +290,7 @@ class AsyncGeminiNextGenAPIClient(AsyncAPIClient):
262
290
  # client options
263
291
  api_key: str | None
264
292
  api_version: str
293
+ client_adapter: AsyncGeminiNextGenAPIClientAdapter | None
265
294
 
266
295
  def __init__(
267
296
  self,
@@ -277,6 +306,7 @@ class AsyncGeminiNextGenAPIClient(AsyncAPIClient):
277
306
  # We provide a `DefaultAsyncHttpxClient` class that you can pass to retain the default values we use for `limits`, `timeout` & `follow_redirects`.
278
307
  # See the [httpx documentation](https://www.python-httpx.org/api/#asyncclient) for more details.
279
308
  http_client: httpx.AsyncClient | None = None,
309
+ client_adapter: AsyncGeminiNextGenAPIClientAdapter | None = None,
280
310
  # Enable or disable schema validation for data returned by the API.
281
311
  # When enabled an error APIResponseValidationError is raised
282
312
  # if the API responds with invalid data for the expected schema.
@@ -304,6 +334,8 @@ class AsyncGeminiNextGenAPIClient(AsyncAPIClient):
304
334
  if base_url is None:
305
335
  base_url = f"https://generativelanguage.googleapis.com"
306
336
 
337
+ self.client_adapter = client_adapter
338
+
307
339
  super().__init__(
308
340
  version=__version__,
309
341
  base_url=base_url,
@@ -355,14 +387,34 @@ class AsyncGeminiNextGenAPIClient(AsyncAPIClient):
355
387
 
356
388
  @override
357
389
  def _validate_headers(self, headers: Headers, custom_headers: Headers) -> None:
390
+ if headers.get("Authorization") or custom_headers.get("Authorization") or isinstance(custom_headers.get("Authorization"), Omit):
391
+ return
358
392
  if self.api_key and headers.get("x-goog-api-key"):
359
393
  return
360
- if isinstance(custom_headers.get("x-goog-api-key"), Omit):
394
+ if custom_headers.get("x-goog-api-key") or isinstance(custom_headers.get("x-goog-api-key"), Omit):
361
395
  return
362
396
 
363
397
  raise TypeError(
364
398
  '"Could not resolve authentication method. Expected the api_key to be set. Or for the `x-goog-api-key` headers to be explicitly omitted"'
365
399
  )
400
+
401
+ @override
402
+ async def _prepare_options(self, options: FinalRequestOptions) -> FinalRequestOptions:
403
+ if not self.client_adapter or not self.client_adapter.is_vertex_ai():
404
+ return options
405
+
406
+ headers = options.headers or {}
407
+ has_auth = headers.get("Authorization") or headers.get("x-goog-api-key") # pytype: disable=attribute-error
408
+ if has_auth:
409
+ return options
410
+
411
+ adapted_headers = await self.client_adapter.async_get_auth_headers()
412
+ if adapted_headers:
413
+ options.headers = {
414
+ **adapted_headers,
415
+ **headers
416
+ }
417
+ return options
366
418
 
367
419
  def copy(
368
420
  self,
@@ -377,6 +429,7 @@ class AsyncGeminiNextGenAPIClient(AsyncAPIClient):
377
429
  set_default_headers: Mapping[str, str] | None = None,
378
430
  default_query: Mapping[str, object] | None = None,
379
431
  set_default_query: Mapping[str, object] | None = None,
432
+ client_adapter: AsyncGeminiNextGenAPIClientAdapter | None = None,
380
433
  _extra_kwargs: Mapping[str, Any] = {},
381
434
  ) -> Self:
382
435
  """
@@ -410,6 +463,7 @@ class AsyncGeminiNextGenAPIClient(AsyncAPIClient):
410
463
  max_retries=max_retries if is_given(max_retries) else self.max_retries,
411
464
  default_headers=headers,
412
465
  default_query=params,
466
+ client_adapter=self.client_adapter or client_adapter,
413
467
  **_extra_kwargs,
414
468
  )
415
469
 
@@ -0,0 +1,48 @@
1
+ # Copyright 2025 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+ #
15
+
16
+ from __future__ import annotations
17
+
18
+ from abc import ABC, abstractmethod
19
+
20
+ __all__ = [
21
+ "GeminiNextGenAPIClientAdapter",
22
+ "AsyncGeminiNextGenAPIClientAdapter"
23
+ ]
24
+
25
+ class BaseGeminiNextGenAPIClientAdapter(ABC):
26
+ @abstractmethod
27
+ def is_vertex_ai(self) -> bool:
28
+ ...
29
+
30
+ @abstractmethod
31
+ def get_project(self) -> str | None:
32
+ ...
33
+
34
+ @abstractmethod
35
+ def get_location(self) -> str | None:
36
+ ...
37
+
38
+
39
+ class AsyncGeminiNextGenAPIClientAdapter(BaseGeminiNextGenAPIClientAdapter):
40
+ @abstractmethod
41
+ async def async_get_auth_headers(self) -> dict[str, str] | None:
42
+ ...
43
+
44
+
45
+ class GeminiNextGenAPIClientAdapter(BaseGeminiNextGenAPIClientAdapter):
46
+ @abstractmethod
47
+ def get_auth_headers(self) -> dict[str, str] | None:
48
+ ...
@@ -32,6 +32,7 @@ from .model_param import ModelParam as ModelParam
32
32
  from .tool_choice import ToolChoice as ToolChoice
33
33
  from .usage_param import UsageParam as UsageParam
34
34
  from .content_stop import ContentStop as ContentStop
35
+ from .image_config import ImageConfig as ImageConfig
35
36
  from .text_content import TextContent as TextContent
36
37
  from .allowed_tools import AllowedTools as AllowedTools
37
38
  from .audio_content import AudioContent as AudioContent
@@ -54,6 +55,7 @@ from .generation_config import GenerationConfig as GenerationConfig
54
55
  from .interaction_event import InteractionEvent as InteractionEvent
55
56
  from .tool_choice_param import ToolChoiceParam as ToolChoiceParam
56
57
  from .document_mime_type import DocumentMimeType as DocumentMimeType
58
+ from .image_config_param import ImageConfigParam as ImageConfigParam
57
59
  from .text_content_param import TextContentParam as TextContentParam
58
60
  from .tool_choice_config import ToolChoiceConfig as ToolChoiceConfig
59
61
  from .url_context_result import URLContextResult as URLContextResult
@@ -75,6 +77,7 @@ from .interaction_get_params import InteractionGetParams as InteractionGetParams
75
77
  from .function_result_content import FunctionResultContent as FunctionResultContent
76
78
  from .generation_config_param import GenerationConfigParam as GenerationConfigParam
77
79
  from .document_mime_type_param import DocumentMimeTypeParam as DocumentMimeTypeParam
80
+ from .file_search_call_content import FileSearchCallContent as FileSearchCallContent
78
81
  from .tool_choice_config_param import ToolChoiceConfigParam as ToolChoiceConfigParam
79
82
  from .url_context_call_content import URLContextCallContent as URLContextCallContent
80
83
  from .url_context_result_param import URLContextResultParam as URLContextResultParam
@@ -95,6 +98,7 @@ from .mcp_server_tool_call_content import MCPServerToolCallContent as MCPServerT
95
98
  from .code_execution_call_arguments import CodeExecutionCallArguments as CodeExecutionCallArguments
96
99
  from .code_execution_result_content import CodeExecutionResultContent as CodeExecutionResultContent
97
100
  from .function_result_content_param import FunctionResultContentParam as FunctionResultContentParam
101
+ from .file_search_call_content_param import FileSearchCallContentParam as FileSearchCallContentParam
98
102
  from .mcp_server_tool_result_content import MCPServerToolResultContent as MCPServerToolResultContent
99
103
  from .url_context_call_content_param import URLContextCallContentParam as URLContextCallContentParam
100
104
  from .deep_research_agent_config_param import DeepResearchAgentConfigParam as DeepResearchAgentConfigParam
@@ -30,8 +30,10 @@ class AudioContent(BaseModel):
30
30
  type: Literal["audio"]
31
31
 
32
32
  data: Optional[str] = None
33
+ """The audio content."""
33
34
 
34
35
  mime_type: Optional[AudioMimeType] = None
35
36
  """The mime type of the audio."""
36
37
 
37
38
  uri: Optional[str] = None
39
+ """The URI of the audio."""
@@ -34,11 +34,13 @@ class AudioContentParam(TypedDict, total=False):
34
34
  type: Required[Literal["audio"]]
35
35
 
36
36
  data: Annotated[Union[str, Base64FileInput], PropertyInfo(format="base64")]
37
+ """The audio content."""
37
38
 
38
39
  mime_type: AudioMimeTypeParam
39
40
  """The mime type of the audio."""
40
41
 
41
42
  uri: str
43
+ """The URI of the audio."""
42
44
 
43
45
 
44
46
  set_pydantic_config(AudioContentParam, {"arbitrary_types_allowed": True})
@@ -27,6 +27,7 @@ from .thought_content import ThoughtContent
27
27
  from .document_content import DocumentContent
28
28
  from .function_call_content import FunctionCallContent
29
29
  from .function_result_content import FunctionResultContent
30
+ from .file_search_call_content import FileSearchCallContent
30
31
  from .url_context_call_content import URLContextCallContent
31
32
  from .file_search_result_content import FileSearchResultContent
32
33
  from .google_search_call_content import GoogleSearchCallContent
@@ -57,6 +58,7 @@ Content: TypeAlias = Annotated[
57
58
  GoogleSearchResultContent,
58
59
  MCPServerToolCallContent,
59
60
  MCPServerToolResultContent,
61
+ FileSearchCallContent,
60
62
  FileSearchResultContent,
61
63
  ],
62
64
  PropertyInfo(discriminator="type"),
@@ -60,6 +60,7 @@ __all__ = [
60
60
  "DeltaMCPServerToolResultDeltaResult",
61
61
  "DeltaMCPServerToolResultDeltaResultItems",
62
62
  "DeltaMCPServerToolResultDeltaResultItemsItem",
63
+ "DeltaFileSearchCallDelta",
63
64
  "DeltaFileSearchResultDelta",
64
65
  "DeltaFileSearchResultDeltaResult",
65
66
  ]
@@ -284,6 +285,13 @@ class DeltaMCPServerToolResultDelta(BaseModel):
284
285
  server_name: Optional[str] = None
285
286
 
286
287
 
288
+ class DeltaFileSearchCallDelta(BaseModel):
289
+ type: Literal["file_search_call"]
290
+
291
+ id: Optional[str] = None
292
+ """A unique ID for this specific tool call."""
293
+
294
+
287
295
  class DeltaFileSearchResultDeltaResult(BaseModel):
288
296
  """The result of the File Search."""
289
297
 
@@ -322,6 +330,7 @@ Delta: TypeAlias = Annotated[
322
330
  DeltaGoogleSearchResultDelta,
323
331
  DeltaMCPServerToolCallDelta,
324
332
  DeltaMCPServerToolResultDelta,
333
+ DeltaFileSearchCallDelta,
325
334
  DeltaFileSearchResultDelta,
326
335
  ],
327
336
  PropertyInfo(discriminator="type"),
@@ -333,8 +342,7 @@ class ContentDelta(BaseModel):
333
342
 
334
343
  event_id: Optional[str] = None
335
344
  """
336
- The event_id token to be used to resume the interaction stream, from
337
- this event.
345
+ The event_id token to be used to resume the interaction stream, from this event.
338
346
  """
339
347
 
340
348
  event_type: Optional[Literal["content.delta"]] = None
@@ -28,6 +28,7 @@ from .thought_content_param import ThoughtContentParam
28
28
  from .document_content_param import DocumentContentParam
29
29
  from .function_call_content_param import FunctionCallContentParam
30
30
  from .function_result_content_param import FunctionResultContentParam
31
+ from .file_search_call_content_param import FileSearchCallContentParam
31
32
  from .url_context_call_content_param import URLContextCallContentParam
32
33
  from .file_search_result_content_param import FileSearchResultContentParam
33
34
  from .google_search_call_content_param import GoogleSearchCallContentParam
@@ -57,5 +58,6 @@ ContentParam: TypeAlias = Union[
57
58
  GoogleSearchResultContentParam,
58
59
  MCPServerToolCallContentParam,
59
60
  MCPServerToolResultContentParam,
61
+ FileSearchCallContentParam,
60
62
  FileSearchResultContentParam,
61
63
  ]
@@ -30,8 +30,7 @@ class ContentStart(BaseModel):
30
30
 
31
31
  event_id: Optional[str] = None
32
32
  """
33
- The event_id token to be used to resume the interaction stream, from
34
- this event.
33
+ The event_id token to be used to resume the interaction stream, from this event.
35
34
  """
36
35
 
37
36
  event_type: Optional[Literal["content.start"]] = None
@@ -26,8 +26,7 @@ __all__ = ["ContentStop"]
26
26
  class ContentStop(BaseModel):
27
27
  event_id: Optional[str] = None
28
28
  """
29
- The event_id token to be used to resume the interaction stream, from
30
- this event.
29
+ The event_id token to be used to resume the interaction stream, from this event.
31
30
  """
32
31
 
33
32
  event_type: Optional[Literal["content.stop"]] = None
@@ -30,8 +30,10 @@ class DocumentContent(BaseModel):
30
30
  type: Literal["document"]
31
31
 
32
32
  data: Optional[str] = None
33
+ """The document content."""
33
34
 
34
35
  mime_type: Optional[DocumentMimeType] = None
35
36
  """The mime type of the document."""
36
37
 
37
38
  uri: Optional[str] = None
39
+ """The URI of the document."""
@@ -34,11 +34,13 @@ class DocumentContentParam(TypedDict, total=False):
34
34
  type: Required[Literal["document"]]
35
35
 
36
36
  data: Annotated[Union[str, Base64FileInput], PropertyInfo(format="base64")]
37
+ """The document content."""
37
38
 
38
39
  mime_type: DocumentMimeTypeParam
39
40
  """The mime type of the document."""
40
41
 
41
42
  uri: str
43
+ """The URI of the document."""
42
44
 
43
45
 
44
46
  set_pydantic_config(DocumentContentParam, {"arbitrary_types_allowed": True})
@@ -39,8 +39,7 @@ class ErrorEvent(BaseModel):
39
39
 
40
40
  event_id: Optional[str] = None
41
41
  """
42
- The event_id token to be used to resume the interaction stream, from
43
- this event.
42
+ The event_id token to be used to resume the interaction stream, from this event.
44
43
  """
45
44
 
46
45
  event_type: Optional[Literal["error"]] = None
@@ -0,0 +1,32 @@
1
+ # Copyright 2025 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+ #
15
+
16
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
17
+
18
+ from typing import Optional
19
+ from typing_extensions import Literal
20
+
21
+ from .._models import BaseModel
22
+
23
+ __all__ = ["FileSearchCallContent"]
24
+
25
+
26
+ class FileSearchCallContent(BaseModel):
27
+ """File Search content."""
28
+
29
+ type: Literal["file_search_call"]
30
+
31
+ id: Optional[str] = None
32
+ """A unique ID for this specific tool call."""
@@ -0,0 +1,31 @@
1
+ # Copyright 2025 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+ #
15
+
16
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
17
+
18
+ from __future__ import annotations
19
+
20
+ from typing_extensions import Literal, Required, TypedDict
21
+
22
+ __all__ = ["FileSearchCallContentParam"]
23
+
24
+
25
+ class FileSearchCallContentParam(TypedDict, total=False):
26
+ """File Search content."""
27
+
28
+ type: Required[Literal["file_search_call"]]
29
+
30
+ id: str
31
+ """A unique ID for this specific tool call."""