Google Gen AI Python SDK provides an interface for developers to integrate Google's generative models into their Python applications.
This report presents the forensic synthetic code analysis of googleapis/python-genai, a Python project with 3,946 GitHub stars. SynthScan v2.0 examined 168,499 lines of code across 572 source files, recording 3690 pattern matches distributed across 22 syntactic categories. The overall adjusted score of 27.7 places this repository in the Moderate AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 3690 distinct pattern matches across 22 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | google/genai/types.py | 0 | the `status` type defines a logical error model that is suitable for different programming environments, including rest | STRING |
| HIGH | …ogle/genai/_gaos/types/interactions/modeloutputstep.py | 0 | the `status` type defines a logical error model that is suitable for different programming environments, including rest | STRING |
| HIGH | google/genai/_gaos/types/interactions/status.py | 0 | the `status` type defines a logical error model that is suitable for different programming environments, including rest | STRING |
| HIGH | google/genai/_gaos/files.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | google/genai/_gaos/httpclient.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | google/genai/_gaos/sdk.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | google/genai/_gaos/triggers.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | google/genai/_gaos/sdkconfiguration.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | google/genai/_gaos/_version.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | google/genai/_gaos/__init__.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | google/genai/_gaos/agents.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | google/genai/_gaos/environments.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | google/genai/_gaos/interactions.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | google/genai/_gaos/webhooks.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | google/genai/_gaos/basesdk.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | google/genai/_gaos/types/basemodel.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | google/genai/_gaos/types/security.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | google/genai/_gaos/types/__init__.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | google/genai/_gaos/types/base64fileinput.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | …nai/_gaos/types/interactions/antigravityagentconfig.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | …ai/_gaos/types/interactions/deepresearchagentconfig.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | …genai/_gaos/types/interactions/retrievalresultdelta.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | google/genai/_gaos/types/interactions/filecitation.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | …e/genai/_gaos/types/interactions/retrievalcalldelta.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | google/genai/_gaos/types/interactions/documentdelta.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | google/genai/_gaos/types/interactions/ragstoreconfig.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | google/genai/_gaos/types/interactions/speakerconfig.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | …e/genai/_gaos/types/interactions/textresponseformat.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | …/genai/_gaos/types/interactions/processingcalldelta.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | google/genai/_gaos/types/interactions/annotation.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | …genai/_gaos/types/interactions/vertexaisearchconfig.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | …nai/_gaos/types/interactions/createagentinteraction.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | …le/genai/_gaos/types/interactions/interactionsinput.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | google/genai/_gaos/types/interactions/argumentsdelta.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | …ogle/genai/_gaos/types/interactions/documentcontent.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | …le/genai/_gaos/types/interactions/transcriptionmode.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | …ypes/interactions/environmentnetworkegressallowlist.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | …e/genai/_gaos/types/interactions/dynamicagentconfig.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | google/genai/_gaos/types/interactions/textcontent.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | …/_gaos/types/interactions/interactioncompletedevent.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | google/genai/_gaos/types/interactions/stepstart.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | …ogle/genai/_gaos/types/interactions/mediaresolution.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | google/genai/_gaos/types/interactions/ragresource.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | google/genai/_gaos/types/interactions/thoughtstep.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | google/genai/_gaos/types/interactions/error.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | …/genai/_gaos/types/interactions/imageresponseformat.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | …nai/_gaos/types/interactions/parallelaisearchconfig.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | google/genai/_gaos/types/interactions/interaction.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | …/genai/_gaos/types/interactions/filesearchcalldelta.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | google/genai/_gaos/types/interactions/videodelta.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | google/genai/_gaos/types/interactions/fixrequest.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | …nai/_gaos/types/interactions/retrievalcallarguments.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | …/genai/_gaos/types/interactions/videoresponseformat.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | …nai/_gaos/types/interactions/smarttranscriptionmode.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | …_gaos/types/interactions/codeexecutioncallarguments.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | …ai/_gaos/types/interactions/googlesearchresultdelta.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | …ogle/genai/_gaos/types/interactions/mediaprocessing.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | …genai/_gaos/types/interactions/filesearchresultstep.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | google/genai/_gaos/types/interactions/placecitation.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | …/_gaos/types/interactions/verbatimtranscriptionmode.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| 291 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | google/genai/_test_api_client.py | 25 | def test_request_streamed_non_blocking(mock_request, mock_build_request): | CODE |
| LOW | google/genai/_test_api_client.py | 105 | async def test_async_request_streamed_non_blocking( | CODE |
| LOW | google/genai/_local_tokenizer_loader.py | 217 | def get_huggingface_tokenizer(tokenizer_name: str) -> Any: | CODE |
| LOW⚡ | google/genai/_extra_utils.py | 327 | def invoke_function_from_dict_args( | CODE |
| LOW⚡ | google/genai/_extra_utils.py | 341 | async def invoke_function_from_dict_args_async( | CODE |
| LOW⚡ | google/genai/_extra_utils.py | 355 | def get_function_response_parts( | CODE |
| LOW | google/genai/_extra_utils.py | 59 | def _create_generate_content_config_model( | CODE |
| LOW | google/genai/_extra_utils.py | 120 | def find_afc_incompatible_tool_indexes( | CODE |
| LOW | google/genai/_extra_utils.py | 145 | def log_afc_incompatible_tools_warning( | CODE |
| LOW | google/genai/_extra_utils.py | 208 | def convert_number_values_for_dict_function_call_args( | CODE |
| LOW | google/genai/_extra_utils.py | 218 | def convert_number_values_for_function_call_args( | CODE |
| LOW | google/genai/_extra_utils.py | 236 | def is_annotation_pydantic_model(annotation: Any) -> bool: | CODE |
| LOW | google/genai/_extra_utils.py | 248 | def convert_if_exist_pydantic_model( | CODE |
| LOW | google/genai/_extra_utils.py | 310 | def convert_argument_from_function( | CODE |
| LOW | google/genai/_extra_utils.py | 390 | async def get_function_response_parts_async( | CODE |
| LOW | google/genai/_extra_utils.py | 522 | def raise_error_for_afc_incompatible_config(config: Optional[types.GenerateContentConfig] | CODE |
| LOW | google/genai/_extra_utils.py | 547 | def should_append_afc_history( | CODE |
| LOW | google/genai/_extra_utils.py | 558 | def parse_config_for_mcp_usage( | CODE |
| LOW | google/genai/_extra_utils.py | 579 | async def parse_config_for_mcp_sessions( | CODE |
| LOW | google/genai/_extra_utils.py | 720 | def has_agent_platform_mcp_servers( | CODE |
| LOW | google/genai/file_search_stores.py | 608 | def _upload_to_file_search_store( | CODE |
| LOW | google/genai/file_search_stores.py | 789 | def upload_to_file_search_store( | CODE |
| LOW | google/genai/file_search_stores.py | 1238 | async def _upload_to_file_search_store( | CODE |
| LOW | google/genai/file_search_stores.py | 1419 | async def upload_to_file_search_store( | CODE |
| LOW | google/genai/local_tokenizer.py | 147 | def _function_declaration_traverse( | CODE |
| LOW | google/genai/live_music.py | 69 | async def set_music_generation_config( | CODE |
| LOW | google/genai/_common.py | 583 | def _check_field_type_mismatches(cls, data: Any) -> Any: | CODE |
| LOW | google/genai/_common.py | 691 | def encode_unserializable_types(data: dict[str, object]) -> dict[str, object]: | CODE |
| LOW | google/genai/_common.py | 754 | def _normalize_key_for_matching(key_str: str) -> str: | CODE |
| LOW | google/genai/_automatic_function_calling_util.py | 58 | def _raise_for_unsupported_param( | CODE |
| LOW | google/genai/_automatic_function_calling_util.py | 69 | def _handle_params_as_deferred_annotations(param: inspect.Parameter, annotation_under_future: dict[str, Any], name: str) | CODE |
| LOW | google/genai/_automatic_function_calling_util.py | 76 | def _add_unevaluated_items_to_fixed_len_tuple_schema( | CODE |
| LOW | google/genai/_automatic_function_calling_util.py | 91 | def _is_builtin_primitive_or_compound( | CODE |
| LOW | google/genai/_automatic_function_calling_util.py | 97 | def _is_default_value_compatible( | CODE |
| LOW | google/genai/_automatic_function_calling_util.py | 142 | def _parse_schema_from_parameter( # type: ignore[return] | CODE |
| LOW | google/genai/_automatic_function_calling_util.py | 330 | def _get_required_fields_from_json_schema(json_schema: dict[str, Any]) -> Optional[list[str]]: | CODE |
| LOW | google/genai/_automatic_function_calling_util.py | 345 | def parse_function_declaration_json_schema( | CODE |
| LOW | google/genai/tokens.py | 44 | def _convert_bidi_setup_to_token_setup( | CODE |
| LOW | google/genai/types.py | 2497 | def from_code_execution_result( | CODE |
| LOW | google/genai/types.py | 3255 | def normalize_json_schema_type( | CODE |
| LOW | google/genai/types.py | 3281 | def raise_error_if_cannot_convert( | CODE |
| LOW | google/genai/types.py | 4832 | def from_callable_with_api_option( | CODE |
| LOW | google/genai/types.py | 19909 | def _validate_mask_image_config(self, values: Any) -> Any: | CODE |
| LOW | google/genai/types.py | 19971 | def _validate_mask_image_config(self, values: Any) -> Any: | CODE |
| LOW | google/genai/types.py | 20042 | def _validate_mask_image_config(self, values: Any) -> Any: | CODE |
| LOW | google/genai/types.py | 20113 | def _validate_mask_image_config(self, values: Any) -> Any: | CODE |
| LOW | google/genai/types.py | 20180 | def _validate_mask_image_config(self, values: Any) -> Any: | CODE |
| LOW | google/genai/types.py | 20239 | def _validate_mask_image_config(self, values: Any) -> Any: | CODE |
| LOW | google/genai/_mcp_utils.py | 68 | def agent_platform_to_gemini_tool(tool: McpTool) -> types.Tool: | CODE |
| LOW | google/genai/_mcp_utils.py | 138 | def _filter_to_supported_schema( | CODE |
| LOW | google/genai/_mcp_utils.py | 175 | async def _connect_agent_platform_mcp(api_client: Any, toolset_name: str) -> typing.AsyncIterator[Any]: | CODE |
| LOW⚡ | google/genai/_transformers.py | 638 | def _raise_for_unsupported_schema_type(origin: Any) -> None: | CODE |
| LOW⚡ | google/genai/_transformers.py | 643 | def _raise_for_unsupported_mldev_properties( | CODE |
| LOW | google/genai/_transformers.py | 527 | def _append_accumulated_parts_as_content( | CODE |
| LOW | google/genai/_transformers.py | 1070 | def t_embedding_batch_job_source( | CODE |
| LOW | google/genai/_transformers.py | 1118 | def t_recv_batch_job_destination(dest: dict[str, Any]) -> dict[str, Any]: | CODE |
| LOW | google/genai/_transformers.py | 1389 | def t_is_vertex_embed_content_model(model: str) -> bool: | CODE |
| LOW | google/genai/operations.py | 144 | def _fetch_predict_videos_operation( | CODE |
| LOW | google/genai/operations.py | 401 | async def _fetch_predict_videos_operation( | CODE |
| LOW⚡ | google/genai/_api_client.py | 2544 | def get_token_from_credentials( | CODE |
| 1059 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | google/genai/_extra_utils.py | 26 | CODE | |
| LOW | google/genai/client.py | 16 | CODE | |
| LOW | google/genai/client.py | 26 | CODE | |
| LOW | google/genai/client.py | 40 | CODE | |
| LOW | google/genai/__init__.py | 21 | CODE | |
| LOW | google/genai/__init__.py | 23 | CODE | |
| LOW | google/genai/tokens.py | 20 | CODE | |
| LOW | google/genai/tokens.py | 20 | CODE | |
| LOW | google/genai/types.py | 28 | CODE | |
| LOW | google/genai/types.py | 28 | CODE | |
| LOW | google/genai/types.py | 51 | CODE | |
| LOW | google/genai/types.py | 69 | CODE | |
| LOW | google/genai/_transformers.py | 18 | CODE | |
| LOW | google/genai/_transformers.py | 29 | CODE | |
| LOW | google/genai/live.py | 23 | CODE | |
| LOW | google/genai/_api_client.py | 88 | CODE | |
| LOW | google/genai/_adapters.py | 22 | CODE | |
| LOW | google/genai/_adapters.py | 23 | CODE | |
| LOW | google/genai/errors.py | 31 | CODE | |
| LOW | google/genai/errors.py | 33 | CODE | |
| LOW | google/genai/interactions.py | 17 | CODE | |
| LOW | google/genai/interactions.py | 27 | CODE | |
| LOW | google/genai/interactions.py | 29 | CODE | |
| LOW | google/genai/interactions.py | 31 | CODE | |
| LOW | google/genai/interactions.py | 33 | CODE | |
| LOW | google/genai/interactions.py | 34 | CODE | |
| LOW | google/genai/interactions.py | 35 | CODE | |
| LOW | google/genai/interactions.py | 37 | CODE | |
| LOW | google/genai/interactions.py | 37 | CODE | |
| LOW | google/genai/interactions.py | 38 | CODE | |
| LOW | google/genai/interactions.py | 44 | CODE | |
| LOW | google/genai/interactions.py | 45 | CODE | |
| LOW | google/genai/interactions.py | 48 | CODE | |
| LOW | google/genai/interactions.py | 51 | CODE | |
| LOW | google/genai/interactions.py | 52 | CODE | |
| LOW | google/genai/interactions.py | 52 | CODE | |
| LOW | google/genai/interactions.py | 53 | CODE | |
| LOW | google/genai/interactions.py | 54 | CODE | |
| LOW | google/genai/interactions.py | 55 | CODE | |
| LOW | google/genai/_gaos/sdk.py | 41 | CODE | |
| LOW | google/genai/_gaos/sdk.py | 41 | CODE | |
| LOW | google/genai/_gaos/sdk.py | 42 | CODE | |
| LOW | google/genai/_gaos/sdk.py | 42 | CODE | |
| LOW | google/genai/_gaos/sdk.py | 43 | CODE | |
| LOW | google/genai/_gaos/sdk.py | 43 | CODE | |
| LOW | google/genai/_gaos/sdk.py | 44 | CODE | |
| LOW | google/genai/_gaos/sdk.py | 44 | CODE | |
| LOW | google/genai/_gaos/sdk.py | 45 | CODE | |
| LOW | google/genai/_gaos/sdk.py | 45 | CODE | |
| LOW | google/genai/_gaos/__init__.py | 19 | CODE | |
| LOW | google/genai/_gaos/__init__.py | 26 | CODE | |
| LOW | google/genai/_gaos/__init__.py | 27 | CODE | |
| LOW | google/genai/_gaos/__init__.py | 28 | CODE | |
| LOW | google/genai/_gaos/google_genai.py | 24 | CODE | |
| LOW | google/genai/_gaos/google_genai.py | 48 | CODE | |
| LOW | google/genai/_gaos/types/security.py | 19 | CODE | |
| LOW | google/genai/_gaos/types/__init__.py | 19 | CODE | |
| LOW | google/genai/_gaos/types/__init__.py | 19 | CODE | |
| LOW | google/genai/_gaos/types/__init__.py | 19 | CODE | |
| LOW | google/genai/_gaos/types/__init__.py | 19 | CODE | |
| 1173 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | google/genai/_test_api_client.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/files.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/caches.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/_base_url.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/_local_tokenizer_loader.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/_live_converters.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/version.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/_extra_utils.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/_api_module.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/_tokens_converters.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/file_search_stores.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/models.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/local_tokenizer.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/documents.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/client.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/live_music.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/_common.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/__init__.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/_automatic_function_calling_util.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/tokens.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/types.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/_mcp_utils.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/_transformers.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/_base_transformers.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/operations.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/_operations_converters.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/pagers.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/live.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/_api_client.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | google/genai/chats.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/_adapters.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/errors.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/interactions.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/batches.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/_replay_api_client.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/tunings.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/_gaos/files.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | google/genai/_gaos/httpclient.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | google/genai/_gaos/sdk.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | google/genai/_gaos/triggers.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | google/genai/_gaos/sdkconfiguration.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | google/genai/_gaos/_version.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | google/genai/_gaos/__init__.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | google/genai/_gaos/google_genai.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | google/genai/_gaos/agents.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | google/genai/_gaos/environments.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | google/genai/_gaos/interactions.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | google/genai/_gaos/webhooks.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | google/genai/_gaos/basesdk.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | google/genai/_gaos/types/basemodel.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | google/genai/_gaos/types/security.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | google/genai/_gaos/types/__init__.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | google/genai/_gaos/types/base64fileinput.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | …nai/_gaos/types/interactions/antigravityagentconfig.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | …ai/_gaos/types/interactions/deepresearchagentconfig.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | …genai/_gaos/types/interactions/retrievalresultdelta.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | google/genai/_gaos/types/interactions/filecitation.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | …e/genai/_gaos/types/interactions/retrievalcalldelta.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | google/genai/_gaos/types/interactions/documentdelta.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | google/genai/_gaos/types/interactions/ragstoreconfig.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| 465 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | google/genai/_extra_utils.py | 333 | except Exception as e: | CODE |
| LOW⚡ | google/genai/_extra_utils.py | 347 | except Exception as e: | CODE |
| LOW | google/genai/_extra_utils.py | 381 | except Exception as e: # pylint: disable=broad-except | CODE |
| LOW | google/genai/_extra_utils.py | 438 | except Exception as e: # pylint: disable=broad-except | CODE |
| LOW | google/genai/client.py | 237 | except Exception: | CODE |
| LOW | google/genai/client.py | 607 | except Exception: | CODE |
| MEDIUM | google/genai/client.py | 234 | def __del__(self) -> None: | CODE |
| MEDIUM | google/genai/client.py | 604 | def __del__(self) -> None: | CODE |
| LOW | google/genai/_common.py | 622 | except Exception: | CODE |
| MEDIUM | google/genai/_common.py | 619 | def __repr__(self) -> str: | CODE |
| LOW | google/genai/_automatic_function_calling_util.py | 389 | except Exception as e: | CODE |
| LOW | google/genai/_automatic_function_calling_util.py | 444 | except Exception as e: | CODE |
| LOW | google/genai/types.py | 4928 | except Exception as e: | CODE |
| LOW | google/genai/types.py | 4995 | except Exception as e: | CODE |
| LOW | google/genai/_transformers.py | 1292 | except Exception as e: | CODE |
| LOW | google/genai/_transformers.py | 1312 | except Exception as e: | CODE |
| MEDIUM | google/genai/_api_client.py | 309 | def __anext__(self) -> Any: | CODE |
| MEDIUM | google/genai/_api_client.py | 626 | def __del__(self) -> None: | CODE |
| MEDIUM | google/genai/_api_client.py | 925 | def _use_google_auth_async(self) -> bool: | CODE |
| LOW⚡ | google/genai/_api_client.py | 2535 | except Exception: # pylint: disable=broad-except | CODE |
| LOW⚡ | google/genai/_api_client.py | 2540 | except Exception: # pylint: disable=broad-except | CODE |
| LOW | google/genai/_api_client.py | 610 | except Exception: | CODE |
| LOW | google/genai/_api_client.py | 614 | except Exception: | CODE |
| LOW | google/genai/_api_client.py | 630 | except Exception: | CODE |
| LOW | google/genai/_api_client.py | 634 | except Exception: | CODE |
| LOW | google/genai/_api_client.py | 1107 | except Exception as e: # pylint: disable=broad-except | CODE |
| LOW | google/genai/_api_client.py | 1174 | except Exception as e: # pylint: disable=broad-except | CODE |
| LOW | google/genai/_api_client.py | 1245 | except Exception as e: # pylint: disable=broad-except | CODE |
| LOW | google/genai/_gaos/files.py | 167 | except Exception as parse_exc_: | STRING |
| LOW | google/genai/_gaos/files.py | 192 | except Exception as parse_exc_: | STRING |
| LOW | google/genai/_gaos/files.py | 353 | except Exception as parse_exc_: | STRING |
| LOW | google/genai/_gaos/files.py | 380 | except Exception as parse_exc_: | STRING |
| LOW | google/genai/_gaos/httpclient.py | 124 | except Exception: | CODE |
| LOW | google/genai/_gaos/triggers.py | 165 | except Exception as parse_exc_: | STRING |
| LOW | google/genai/_gaos/triggers.py | 190 | except Exception as parse_exc_: | STRING |
| LOW | google/genai/_gaos/triggers.py | 348 | except Exception as parse_exc_: | STRING |
| LOW | google/genai/_gaos/triggers.py | 373 | except Exception as parse_exc_: | STRING |
| LOW | google/genai/_gaos/triggers.py | 498 | except Exception as parse_exc_: | STRING |
| LOW | google/genai/_gaos/triggers.py | 523 | except Exception as parse_exc_: | STRING |
| LOW | google/genai/_gaos/triggers.py | 648 | except Exception as parse_exc_: | STRING |
| LOW | google/genai/_gaos/triggers.py | 673 | except Exception as parse_exc_: | STRING |
| LOW | google/genai/_gaos/triggers.py | 816 | except Exception as parse_exc_: | STRING |
| LOW | google/genai/_gaos/triggers.py | 841 | except Exception as parse_exc_: | STRING |
| LOW | google/genai/_gaos/triggers.py | 972 | except Exception as parse_exc_: | STRING |
| LOW | google/genai/_gaos/triggers.py | 997 | except Exception as parse_exc_: | STRING |
| LOW | google/genai/_gaos/triggers.py | 1122 | except Exception as parse_exc_: | STRING |
| LOW | google/genai/_gaos/triggers.py | 1147 | except Exception as parse_exc_: | STRING |
| LOW | google/genai/_gaos/triggers.py | 1334 | except Exception as parse_exc_: | STRING |
| LOW | google/genai/_gaos/triggers.py | 1361 | except Exception as parse_exc_: | STRING |
| LOW | google/genai/_gaos/triggers.py | 1520 | except Exception as parse_exc_: | STRING |
| LOW | google/genai/_gaos/triggers.py | 1547 | except Exception as parse_exc_: | STRING |
| LOW | google/genai/_gaos/triggers.py | 1673 | except Exception as parse_exc_: | STRING |
| LOW | google/genai/_gaos/triggers.py | 1700 | except Exception as parse_exc_: | STRING |
| LOW | google/genai/_gaos/triggers.py | 1826 | except Exception as parse_exc_: | STRING |
| LOW | google/genai/_gaos/triggers.py | 1853 | except Exception as parse_exc_: | STRING |
| LOW | google/genai/_gaos/triggers.py | 1997 | except Exception as parse_exc_: | STRING |
| LOW | google/genai/_gaos/triggers.py | 2024 | except Exception as parse_exc_: | STRING |
| LOW | google/genai/_gaos/triggers.py | 2156 | except Exception as parse_exc_: | STRING |
| LOW | google/genai/_gaos/triggers.py | 2183 | except Exception as parse_exc_: | STRING |
| LOW | google/genai/_gaos/triggers.py | 2309 | except Exception as parse_exc_: | STRING |
| 99 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | google/genai/_extra_utils.py | 172 | CODE | |
| LOW | google/genai/_extra_utils.py | 248 | CODE | |
| LOW | google/genai/_extra_utils.py | 355 | CODE | |
| LOW | google/genai/_extra_utils.py | 390 | CODE | |
| LOW | google/genai/_extra_utils.py | 579 | CODE | |
| LOW | google/genai/_extra_utils.py | 736 | CODE | |
| LOW | google/genai/models.py | 6316 | CODE | |
| LOW | google/genai/models.py | 6695 | CODE | |
| LOW | google/genai/models.py | 8289 | CODE | |
| LOW | google/genai/models.py | 8501 | CODE | |
| LOW | google/genai/models.py | 9018 | CODE | |
| LOW | google/genai/models.py | 8580 | CODE | |
| LOW | google/genai/_common.py | 54 | CODE | |
| LOW | google/genai/_common.py | 128 | CODE | |
| LOW | google/genai/_common.py | 170 | CODE | |
| LOW | google/genai/_common.py | 206 | CODE | |
| LOW | google/genai/_common.py | 329 | CODE | |
| LOW | google/genai/_common.py | 373 | CODE | |
| LOW | google/genai/_common.py | 499 | CODE | |
| LOW | google/genai/_common.py | 691 | CODE | |
| LOW | google/genai/_automatic_function_calling_util.py | 142 | CODE | |
| LOW | google/genai/_automatic_function_calling_util.py | 345 | CODE | |
| LOW | google/genai/tokens.py | 44 | CODE | |
| LOW | google/genai/types.py | 2325 | CODE | |
| LOW | google/genai/types.py | 3015 | CODE | |
| LOW | google/genai/types.py | 3116 | CODE | |
| LOW | google/genai/types.py | 4832 | CODE | |
| LOW | google/genai/types.py | 8791 | CODE | |
| LOW | google/genai/types.py | 22824 | CODE | |
| LOW | google/genai/types.py | 3064 | CODE | |
| LOW | google/genai/types.py | 3325 | CODE | |
| LOW | google/genai/_mcp_utils.py | 138 | CODE | |
| LOW | google/genai/_mcp_utils.py | 175 | CODE | |
| LOW | google/genai/_transformers.py | 71 | CODE | |
| LOW | google/genai/_transformers.py | 445 | CODE | |
| LOW | google/genai/_transformers.py | 471 | CODE | |
| LOW | google/genai/_transformers.py | 579 | CODE | |
| LOW | google/genai/_transformers.py | 978 | CODE | |
| LOW | google/genai/_transformers.py | 1011 | CODE | |
| LOW | google/genai/_transformers.py | 1093 | CODE | |
| LOW | google/genai/_transformers.py | 1153 | CODE | |
| LOW | google/genai/_transformers.py | 1208 | CODE | |
| LOW | google/genai/_transformers.py | 1242 | CODE | |
| LOW | google/genai/_transformers.py | 1319 | CODE | |
| LOW | google/genai/live.py | 1149 | CODE | |
| LOW | google/genai/live.py | 584 | CODE | |
| LOW | google/genai/live.py | 903 | CODE | |
| LOW | google/genai/_api_client.py | 272 | CODE | |
| LOW | google/genai/_api_client.py | 369 | CODE | |
| LOW | google/genai/_api_client.py | 424 | CODE | |
| LOW | google/genai/_api_client.py | 644 | CODE | |
| LOW | google/genai/_api_client.py | 969 | CODE | |
| LOW | google/genai/_api_client.py | 1070 | CODE | |
| LOW | google/genai/_api_client.py | 1149 | CODE | |
| LOW | google/genai/_api_client.py | 1214 | CODE | |
| LOW | google/genai/_api_client.py | 1539 | CODE | |
| LOW | google/genai/_api_client.py | 2142 | CODE | |
| LOW | google/genai/_api_client.py | 2367 | CODE | |
| LOW | google/genai/_api_client.py | 2504 | CODE | |
| LOW | google/genai/chats.py | 65 | CODE | |
| 47 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | google/genai/local_tokenizer.py | 31 | __all__ = [ | CODE |
| LOW | google/genai/__init__.py | 28 | __all__ = ['Client', 'interactions', 'types'] | CODE |
| LOW | google/genai/_automatic_function_calling_util.py | 34 | __all__ = [ | CODE |
| LOW | google/genai/_mcp_utils.py | 124 | def set_mcp_usage_header(headers: dict[str, str]) -> None: | CODE |
| LOW | google/genai/interactions.py | 113 | __all__ = [ | CODE |
| LOW | google/genai/_gaos/types/__init__.py | 37 | __all__ = [ | CODE |
| LOW | google/genai/_gaos/types/interactions/__init__.py | 436 | __all__ = [ | CODE |
| LOW | google/genai/_gaos/types/triggers/__init__.py | 46 | __all__ = [ | CODE |
| LOW | google/genai/_gaos/types/environments/__init__.py | 49 | __all__ = [ | CODE |
| LOW | google/genai/_gaos/types/agents/__init__.py | 35 | __all__ = [ | CODE |
| LOW | google/genai/_gaos/types/webhooks/__init__.py | 52 | __all__ = [ | CODE |
| LOW | google/genai/_gaos/resources/__init__.py | 25 | __all__ = ["agents", "environments", "interactions", "triggers", "webhooks"] | CODE |
| LOW | google/genai/_gaos/resources/interactions/__init__.py | 136 | __all__ = [ | CODE |
| LOW | …ai/_gaos/resources/interactions/errorevent/__init__.py | 21 | __all__ = ["Error"] | CODE |
| LOW | …/_gaos/resources/interactions/videocontent/__init__.py | 21 | __all__ = ["Static"] | CODE |
| LOW | …esources/interactions/googlesearchcallstep/__init__.py | 23 | __all__ = ["Arguments"] | CODE |
| LOW | …os/resources/interactions/googlemapsresult/__init__.py | 24 | __all__ = ["Place", "place"] | CODE |
| LOW | …ources/interactions/googlemapsresult/place/__init__.py | 21 | __all__ = ["ReviewSnippet"] | CODE |
| LOW | …/resources/interactions/retrievalcalldelta/__init__.py | 23 | __all__ = ["Arguments"] | CODE |
| LOW | …_gaos/resources/interactions/placecitation/__init__.py | 21 | __all__ = ["ReviewSnippet"] | CODE |
| LOW | …sources/interactions/codemenderagentconfig/__init__.py | 25 | __all__ = ["FindRequest", "FixRequest", "SessionConfig", "findrequest", "fixrequest"] | CODE |
| LOW | …ractions/codemenderagentconfig/findrequest/__init__.py | 21 | __all__ = ["SourceFile"] | CODE |
| LOW | …eractions/codemenderagentconfig/fixrequest/__init__.py | 21 | __all__ = ["SourceFile"] | CODE |
| LOW | …/resources/interactions/urlcontextcallstep/__init__.py | 23 | __all__ = ["Arguments"] | CODE |
| LOW | …sources/interactions/codeexecutioncallstep/__init__.py | 23 | __all__ = ["Arguments"] | CODE |
| LOW | …ources/interactions/googlesearchresultstep/__init__.py | 21 | __all__ = ["Result"] | CODE |
| LOW | …/resources/interactions/googlemapscallstep/__init__.py | 23 | __all__ = ["Arguments"] | CODE |
| LOW | …e/genai/_gaos/resources/interactions/usage/__init__.py | 27 | __all__ = [ | CODE |
| LOW | …i/_gaos/resources/interactions/environment/__init__.py | 22 | __all__ = ["Allowlist", "Source"] | CODE |
| LOW | …esources/interactions/googlemapsresultstep/__init__.py | 22 | __all__ = ["Result", "result"] | CODE |
| LOW | …s/interactions/googlemapsresultstep/result/__init__.py | 24 | __all__ = ["Place", "place"] | CODE |
| LOW | …ractions/googlemapsresultstep/result/place/__init__.py | 21 | __all__ = ["ReviewSnippet"] | CODE |
| LOW | …nai/_gaos/resources/interactions/stepdelta/__init__.py | 79 | __all__ = [ | CODE |
| LOW | …le/genai/_gaos/resources/interactions/tool/__init__.py | 29 | __all__ = [ | CODE |
| LOW | …gaos/resources/interactions/tool/retrieval/__init__.py | 21 | __all__ = ["VertexAISearchConfig"] | CODE |
| LOW | …s/resources/interactions/transcriptionmode/__init__.py | 26 | __all__ = ["Smart", "Verbatim"] | CODE |
| LOW | …esources/interactions/urlcontextresultstep/__init__.py | 21 | __all__ = ["Result"] | CODE |
| LOW | google/genai/_gaos/resources/triggers/__init__.py | 41 | __all__ = [ | CODE |
| LOW | google/genai/_gaos/resources/environments/__init__.py | 32 | __all__ = [ | CODE |
| LOW | …rces/environments/createenvironmentrequest/__init__.py | 21 | __all__ = ["Allowlist"] | CODE |
| LOW | …i/_gaos/resources/environments/environment/__init__.py | 21 | __all__ = ["Allowlist"] | CODE |
| LOW | google/genai/_gaos/resources/agents/__init__.py | 28 | __all__ = [ | CODE |
| LOW | google/genai/_gaos/resources/webhooks/__init__.py | 44 | __all__ = [ | CODE |
| LOW | google/genai/_gaos/utils/__init__.py | 81 | __all__ = [ | CODE |
| LOW | google/genai/_gaos/utils/response_helpers.py | 681 | def _set_response_mode(kwargs: Dict[str, Any], mode: str, header_kwarg: str) -> None: | CODE |
| LOW | google/genai/_gaos/models/__init__.py | 194 | __all__ = [ | CODE |
| LOW | google/genai/_gaos/models/internal/__init__.py | 26 | __all__ = ["Globals", "GlobalsTypedDict"] | CODE |
| LOW | google/genai/_gaos/lib/compat_errors.py | 585 | __all__ = [ | CODE |
| LOW | google/genai/_gaos/errors/__init__.py | 53 | __all__ = [ | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | google/genai/_extra_utils.py | 565 | # Create a copy of the config model with the tools field cleared since some | COMMENT |
| MEDIUM | google/genai/_extra_utils.py | 594 | # Create a copy of the config model with the tools field cleared as they will | COMMENT |
| MEDIUM | google/genai/_common.py | 670 | # Creating a enum instance based on the value | COMMENT |
| MEDIUM | google/genai/types.py | 18325 | """This class is experimental and may change in future versions. | STRING |
| MEDIUM | google/genai/types.py | 18341 | """This class is experimental and may change in future versions. | STRING |
| MEDIUM | google/genai/live.py | 1173 | # Create a copy of the config model with the tools field cleared as they will | COMMENT |
| MEDIUM⚡ | google/genai/_gaos/utils/enums.py | 105 | # Create a validator that only accepts known enum values (for strict mode) | COMMENT |
| MEDIUM⚡ | google/genai/_gaos/utils/enums.py | 112 | # Create a lax validator that accepts unknown values | COMMENT |
| MEDIUM | google/genai/_gaos/_hooks/registration.py | 20 | # This file is only ever generated once on the first generation and then is free to be modified. | COMMENT |
| MEDIUM | google/genai/_gaos/_hooks/asyncregistration.py | 29 | # This file is only ever generated once on the first generation and then is free to be modified. | COMMENT |
| MEDIUM | google/genai/tests/common/test_common.py | 801 | # Create an instance of ModelB (wrong type) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | google/genai/file_search_stores.py | 916 | CODE | |
| LOW | google/genai/file_search_stores.py | 1545 | CODE | |
| LOW | google/genai/models.py | 6557 | CODE | |
| LOW | google/genai/models.py | 8942 | CODE | |
| LOW | google/genai/client.py | 325 | CODE | |
| LOW | google/genai/types.py | 2325 | CODE | |
| LOW | google/genai/_replay_api_client.py | 157 | CODE | |
| LOW | google/genai/_replay_api_client.py | 296 | CODE | |
| LOW | google/genai/_gaos/httpclient.py | 42 | CODE | |
| LOW | google/genai/_gaos/httpclient.py | 81 | CODE | |
| LOW | google/genai/_gaos/sdk.py | 72 | CODE | |
| LOW | google/genai/_gaos/sdk.py | 283 | CODE | |
| LOW | google/genai/_gaos/triggers.py | 198 | CODE | |
| LOW | google/genai/_gaos/triggers.py | 1370 | CODE | |
| LOW | google/genai/_gaos/agents.py | 221 | CODE | |
| LOW | google/genai/_gaos/agents.py | 1036 | CODE | |
| LOW | google/genai/_gaos/interactions.py | 64 | CODE | |
| LOW | google/genai/_gaos/interactions.py | 119 | CODE | |
| LOW | google/genai/_gaos/interactions.py | 174 | CODE | |
| LOW | google/genai/_gaos/interactions.py | 229 | CODE | |
| LOW | google/genai/_gaos/interactions.py | 1522 | CODE | |
| LOW | google/genai/_gaos/interactions.py | 1577 | CODE | |
| LOW | google/genai/_gaos/interactions.py | 1632 | CODE | |
| LOW | google/genai/_gaos/interactions.py | 1687 | CODE | |
| LOW | google/genai/_gaos/webhooks.py | 679 | CODE | |
| LOW | google/genai/_gaos/webhooks.py | 1911 | CODE | |
| LOW | google/genai/_gaos/basesdk.py | 84 | CODE | |
| LOW | google/genai/_gaos/basesdk.py | 132 | CODE | |
| LOW | google/genai/_gaos/basesdk.py | 351 | CODE | |
| LOW | google/genai/_gaos/basesdk.py | 399 | CODE | |
| LOW | google/genai/_gaos/types/basemodel.py | 36 | CODE | |
| LOW | google/genai/_gaos/types/basemodel.py | 75 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | google/genai/_gaos/types/interactions/model.py | 26 | # Our first hybrid reasoning model which supports a 1M token context window and has thinking budgets. | COMMENT |
| MEDIUM⚡ | google/genai/_gaos/types/interactions/model.py | 50 | # Our most cost-efficient model, optimized for high-volume agentic tasks, translation, and simple data processin | COMMENT |
| MEDIUM⚡ | google/genai/_gaos/types/interactions/model.py | 58 | # Our most intelligent model for sustained frontier performance in agentic and coding tasks. | COMMENT |
| MEDIUM⚡ | google/genai/_gaos/types/interactions/model.py | 60 | # Our most intelligent model for sustained frontier performance in agentic and coding tasks. | COMMENT |
| MEDIUM⚡ | google/genai/_gaos/types/interactions/model.py | 62 | # Our most intelligent model for sustained frontier performance in agentic and coding tasks. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | google/genai/live.py | 943 | 'google.genai.client.aio.live.connect() does not support' | CODE |
| CRITICAL | google/genai/tests/gaos/test_environments_lifecycle.py | 304 | raw_files_res = await client.aio.environments.with_raw_response.files.list( | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH⚡ | google/genai/_transformers.py | 632 | # If there is only one type left after removing null, remove the anyOf field. | COMMENT |
| HIGH⚡ | google/genai/_gaos/interactions.py | 668 | "source": 'import com.google.genai.Client;\nimport com.google.genai.gaos.models.interactions.Age | STRING |
| HIGH⚡ | google/genai/_gaos/interactions.py | 2126 | "source": 'import com.google.genai.Client;\nimport com.google.genai.gaos.models.interactions.Age | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | google/genai/types.py | 8853 | parsed = {'placeholder': json.loads(result_text)} | CODE |
| LOW | google/genai/types.py | 8886 | parsed = {'placeholder': json.loads(result_text)} | CODE |
| LOW | google/genai/_transformers.py | 856 | enum_schema = enum_schema['properties']['placeholder'] | CODE |
| LOW | google/genai/_transformers.py | 911 | schema = schema['properties']['placeholder'] | CODE |
| LOW | google/genai/tests/interactions/test_httpx_compat.py | 71 | api_key="fake-key", | CODE |
| LOW | google/genai/tests/interactions/test_auth.py | 173 | mock.patch.object(BaseApiClient, "_access_token", return_value="fake-token") as mock_access_token, | CODE |
| LOW | google/genai/tests/interactions/test_auth.py | 398 | mock.patch.object(BaseApiClient, "_access_token", return_value="fake-token") as mock_access_token, | CODE |
| LOW | google/genai/tests/interactions/test_integration.py | 34 | api_key="placeholder", | CODE |
| LOW | google/genai/tests/interactions/test_integration.py | 61 | api_key="placeholder", | CODE |
| LOW | google/genai/tests/files/test_register.py | 34 | def __init__(self, token="fake_token", expired=False, quota_project_id=None): | CODE |
| LOW | google/genai/tests/files/test_register.py | 57 | client = Client(api_key="dummy_key") | CODE |
| LOW | google/genai/tests/files/test_register.py | 83 | client = Client(api_key="dummy_key") | CODE |
| LOW | google/genai/tests/files/test_register.py | 110 | client = Client(api_key="dummy_key") | CODE |
| LOW | google/genai/tests/files/test_register.py | 136 | client = Client(api_key="dummy_key") | CODE |
| LOW | google/genai/tests/files/test_register.py | 166 | client = Client(api_key="dummy_key") | CODE |
| LOW | google/genai/tests/files/test_register.py | 191 | client = Client(api_key="dummy_key") | CODE |
| LOW | google/genai/tests/files/test_register.py | 221 | client = Client(api_key="dummy_key") | CODE |
| LOW | google/genai/tests/files/test_register.py | 250 | client = Client(api_key="dummy_key") | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | google/genai/types.py | 4433 | description="""Optional. Currently only supported for Gemini Multimodal Live API. In Gemini Multimodal Live API, i | CODE |
| LOW | google/genai/types.py | 8865 | # want the result converted to. So just return json. | COMMENT |
| MEDIUM | google/genai/types.py | 4460 | """Optional. Currently only supported for Gemini Multimodal Live API. In Gemini Multimodal Live API, if `store_context | STRING |
| MEDIUM | google/genai/chats.py | 68 | """Extracts the curated (valid) history from a comprehensive history. | STRING |
| MEDIUM | google/genai/_gaos/types/interactions/model.py | 28 | # Our state-of-the-art multipurpose model, which excels at coding and complex reasoning tasks. | COMMENT |
| MEDIUM | google/genai/tests/models/test_edit_image.py | 120 | # Test comprehensive configs | COMMENT |
| MEDIUM | google/genai/tests/models/test_edit_image.py | 263 | # Test comprehensive configs | COMMENT |
| MEDIUM | google/genai/tests/live/test_live.py | 217 | # comprehensive coverage for proj/location and api key precedence. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | google/genai/_gaos/_hooks/adapters.py | 39 | # ============================================================================ | COMMENT |
| MEDIUM | google/genai/_gaos/_hooks/adapters.py | 41 | # ============================================================================ | COMMENT |
| MEDIUM | google/genai/_gaos/_hooks/adapters.py | 53 | # ============================================================================ | COMMENT |
| MEDIUM | google/genai/_gaos/_hooks/adapters.py | 139 | # ============================================================================ | COMMENT |
| MEDIUM | google/genai/_gaos/_hooks/adapters.py | 141 | # ============================================================================ | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | google/genai/_gaos/agents.py | 404 | "source": '# Step 1: Set up the environment interactively\nRESPONSE=$(curl -s -X POST https://ge | STRING |
| LOW⚡ | google/genai/_gaos/agents.py | 409 | "source": 'import uuid\nfrom google import genai\n\nclient = genai.Client()\n\n# Step 1: Set up | STRING |
| LOW⚡ | google/genai/_gaos/agents.py | 414 | "source": "import {GoogleGenAI} from '@google/genai';\n\nconst ai = new GoogleGenAI({});\n\n// S | STRING |
| LOW⚡ | google/genai/_gaos/agents.py | 419 | "source": 'import com.google.genai.Client;\nimport com.google.genai.gaos.models.agents.Agent;\ni | STRING |
| LOW⚡ | google/genai/_gaos/agents.py | 1219 | "source": '# Step 1: Set up the environment interactively\nRESPONSE=$(curl -s -X POST https://ge | STRING |
| LOW⚡ | google/genai/_gaos/agents.py | 1224 | "source": 'import uuid\nfrom google import genai\n\nclient = genai.Client()\n\n# Step 1: Set up | STRING |
| LOW⚡ | google/genai/_gaos/agents.py | 1229 | "source": "import {GoogleGenAI} from '@google/genai';\n\nconst ai = new GoogleGenAI({});\n\n// S | STRING |
| LOW⚡ | google/genai/_gaos/agents.py | 1234 | "source": 'import com.google.genai.Client;\nimport com.google.genai.gaos.models.agents.Agent;\ni | STRING |
| LOW⚡ | google/genai/_gaos/interactions.py | 653 | "source": '# Step 1: Create an interaction with a fresh remote environment.\nRESPONSE=$(curl -s | STRING |
| LOW⚡ | google/genai/_gaos/interactions.py | 658 | "source": 'from google import genai\n\nclient = genai.Client()\n\n# Step 1: Create an interactio | STRING |
| LOW⚡ | google/genai/_gaos/interactions.py | 663 | "source": "import {GoogleGenAI} from '@google/genai';\n\nconst ai = new GoogleGenAI({});\n\n// S | STRING |
| LOW⚡ | google/genai/_gaos/interactions.py | 668 | "source": 'import com.google.genai.Client;\nimport com.google.genai.gaos.models.interactions.Age | STRING |
| LOW⚡ | google/genai/_gaos/interactions.py | 693 | "source": '# Step 1: Create a custom agent.\ncurl -X POST https://generativelanguage.googleapis. | STRING |
| LOW⚡ | google/genai/_gaos/interactions.py | 698 | "source": 'import uuid\nfrom google import genai\n\nclient = genai.Client()\n\n# Step 1: Create | STRING |
| LOW⚡ | google/genai/_gaos/interactions.py | 703 | "source": "import {GoogleGenAI} from '@google/genai';\n\nconst ai = new GoogleGenAI({});\n\n// S | STRING |
| LOW⚡ | google/genai/_gaos/interactions.py | 708 | "source": 'import com.google.genai.Client;\nimport com.google.genai.gaos.models.agents.Agent;\ni | STRING |
| LOW⚡ | google/genai/_gaos/interactions.py | 2111 | "source": '# Step 1: Create an interaction with a fresh remote environment.\nRESPONSE=$(curl -s | STRING |
| LOW⚡ | google/genai/_gaos/interactions.py | 2116 | "source": 'from google import genai\n\nclient = genai.Client()\n\n# Step 1: Create an interactio | STRING |
| LOW⚡ | google/genai/_gaos/interactions.py | 2121 | "source": "import {GoogleGenAI} from '@google/genai';\n\nconst ai = new GoogleGenAI({});\n\n// S | STRING |
| LOW⚡ | google/genai/_gaos/interactions.py | 2126 | "source": 'import com.google.genai.Client;\nimport com.google.genai.gaos.models.interactions.Age | STRING |
| LOW⚡ | google/genai/_gaos/interactions.py | 2151 | "source": '# Step 1: Create a custom agent.\ncurl -X POST https://generativelanguage.googleapis. | STRING |
| LOW⚡ | google/genai/_gaos/interactions.py | 2156 | "source": 'import uuid\nfrom google import genai\n\nclient = genai.Client()\n\n# Step 1: Create | STRING |
| LOW⚡ | google/genai/_gaos/interactions.py | 2161 | "source": "import {GoogleGenAI} from '@google/genai';\n\nconst ai = new GoogleGenAI({});\n\n// S | STRING |
| LOW⚡ | google/genai/_gaos/interactions.py | 2166 | "source": 'import com.google.genai.Client;\nimport com.google.genai.gaos.models.agents.Agent;\ni | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | google/genai/_gaos/agents.py | 404 | "source": '# Step 1: Set up the environment interactively\nRESPONSE=$(curl -s -X POST https://ge | STRING |
| LOW⚡ | google/genai/_gaos/agents.py | 409 | "source": 'import uuid\nfrom google import genai\n\nclient = genai.Client()\n\n# Step 1: Set up | STRING |
| LOW⚡ | google/genai/_gaos/agents.py | 414 | "source": "import {GoogleGenAI} from '@google/genai';\n\nconst ai = new GoogleGenAI({});\n\n// S | STRING |
| LOW⚡ | google/genai/_gaos/agents.py | 419 | "source": 'import com.google.genai.Client;\nimport com.google.genai.gaos.models.agents.Agent;\ni | STRING |
| LOW⚡ | google/genai/_gaos/agents.py | 1219 | "source": '# Step 1: Set up the environment interactively\nRESPONSE=$(curl -s -X POST https://ge | STRING |
| LOW⚡ | google/genai/_gaos/agents.py | 1224 | "source": 'import uuid\nfrom google import genai\n\nclient = genai.Client()\n\n# Step 1: Set up | STRING |
| LOW⚡ | google/genai/_gaos/agents.py | 1229 | "source": "import {GoogleGenAI} from '@google/genai';\n\nconst ai = new GoogleGenAI({});\n\n// S | STRING |
| LOW⚡ | google/genai/_gaos/agents.py | 1234 | "source": 'import com.google.genai.Client;\nimport com.google.genai.gaos.models.agents.Agent;\ni | STRING |
| LOW⚡ | google/genai/_gaos/interactions.py | 653 | "source": '# Step 1: Create an interaction with a fresh remote environment.\nRESPONSE=$(curl -s | STRING |
| LOW⚡ | google/genai/_gaos/interactions.py | 658 | "source": 'from google import genai\n\nclient = genai.Client()\n\n# Step 1: Create an interactio | STRING |
| LOW⚡ | google/genai/_gaos/interactions.py | 663 | "source": "import {GoogleGenAI} from '@google/genai';\n\nconst ai = new GoogleGenAI({});\n\n// S | STRING |
| LOW⚡ | google/genai/_gaos/interactions.py | 668 | "source": 'import com.google.genai.Client;\nimport com.google.genai.gaos.models.interactions.Age | STRING |
| LOW⚡ | google/genai/_gaos/interactions.py | 693 | "source": '# Step 1: Create a custom agent.\ncurl -X POST https://generativelanguage.googleapis. | STRING |
| LOW⚡ | google/genai/_gaos/interactions.py | 698 | "source": 'import uuid\nfrom google import genai\n\nclient = genai.Client()\n\n# Step 1: Create | STRING |
| LOW⚡ | google/genai/_gaos/interactions.py | 703 | "source": "import {GoogleGenAI} from '@google/genai';\n\nconst ai = new GoogleGenAI({});\n\n// S | STRING |
| LOW⚡ | google/genai/_gaos/interactions.py | 708 | "source": 'import com.google.genai.Client;\nimport com.google.genai.gaos.models.agents.Agent;\ni | STRING |
| LOW⚡ | google/genai/_gaos/interactions.py | 2111 | "source": '# Step 1: Create an interaction with a fresh remote environment.\nRESPONSE=$(curl -s | STRING |
| LOW⚡ | google/genai/_gaos/interactions.py | 2116 | "source": 'from google import genai\n\nclient = genai.Client()\n\n# Step 1: Create an interactio | STRING |
| LOW⚡ | google/genai/_gaos/interactions.py | 2121 | "source": "import {GoogleGenAI} from '@google/genai';\n\nconst ai = new GoogleGenAI({});\n\n// S | STRING |
| LOW⚡ | google/genai/_gaos/interactions.py | 2126 | "source": 'import com.google.genai.Client;\nimport com.google.genai.gaos.models.interactions.Age | STRING |
| LOW⚡ | google/genai/_gaos/interactions.py | 2151 | "source": '# Step 1: Create a custom agent.\ncurl -X POST https://generativelanguage.googleapis. | STRING |
| LOW⚡ | google/genai/_gaos/interactions.py | 2156 | "source": 'import uuid\nfrom google import genai\n\nclient = genai.Client()\n\n# Step 1: Create | STRING |
| LOW⚡ | google/genai/_gaos/interactions.py | 2161 | "source": "import {GoogleGenAI} from '@google/genai';\n\nconst ai = new GoogleGenAI({});\n\n// S | STRING |
| LOW⚡ | google/genai/_gaos/interactions.py | 2166 | "source": 'import com.google.genai.Client;\nimport com.google.genai.gaos.models.agents.Agent;\ni | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | README.md | 135 | export GEMINI_API_KEY='your-api-key' | CODE |
| HIGH | google/genai/client.py | 266 | `api_key="your-api-key"` or by defining `GOOGLE_API_KEY="your-api-key"` as an | STRING |
| HIGH | docs/_sources/index.rst.txt | 81 | export GEMINI_API_KEY='your-api-key' | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | google/genai/types.py | 3125 | Converts a JSONSchema object to a Schema object. Note: Conversion of fields that are not included in the JSONSchem | STRING |
| HIGH | google/genai/_gaos/utils/annotations.py | 24 | Recursively search for the discriminator attribute in a model. Args: model (Any): The model to search | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | google/genai/_common.py | 324 | # Check if the dict arguments are str and typing.Any | COMMENT |
| LOW | google/genai/_common.py | 446 | # Check if the next level of recursion for keys/values will exceed the depth limit. | COMMENT |
| LOW | google/genai/_common.py | 854 | # Check if the object has all of the Pydantic model's defined fields. | COMMENT |
| LOW | google/genai/_common.py | 858 | # Check if the Pydantic model has all of the object's defined fields. | COMMENT |
| LOW | google/genai/_transformers.py | 141 | # Check if prepending the collection identifier won't violate the | COMMENT |
| LOW | google/genai/tests/live/test_live.py | 651 | # Check if the first message contains the VAD signal | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | pyproject.toml | 86 | # Auto-generated code in _gaos has type errors; ignore them but keep type info | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | google/genai/tests/models/test_generate_content.py | 2219 | def test_function(client): | STRING |
| LOW | google/genai/tests/transformers/test_t_tool.py | 57 | def test_function(client): | CODE |
| LOW | google/genai/tests/transformers/test_t_tools.py | 59 | def test_function(client): | CODE |