AI Slop Code RIsk Monitor

googleapis/python-genai

Google Gen AI Python SDK provides an interface for developers to integrate Google's generative models into their Python applications.

32.2 High pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for googleapis/python-genai, a Python project with 4,017 GitHub stars. SynthScan examined 187,838 lines of code across 633 source files, recording 4371 pattern matches distributed across 21 syntactic categories. The legacy adjusted pattern signal is 32.2 (High pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

32.2
Adjusted Signal
32.2
Raw Pattern Score
100%
Time Factor
2026-10-11
Last Push
4.0K
Stars
Python
Language
187.8K
Lines of Code
633
Files
4.4K
Pattern Hits
2026-10-12
Scan Date
0.88
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 39.4/100 · MEDIUM

Can maintainers explain intent, assumptions, and trade-offs? 2006 finding(s).

Hallucinated Dependency & Supply Chain Risk 27.9/100 · MEDIUM

Are imports declared and package/API names verified? 1543 finding(s).

Agent Over-Engineering Ratio 66.1/100 · HIGH

Are wrappers, guards, and repeated structures necessary? 2097 finding(s).

PR Review Velocity Impact 85.4/100 · CRITICAL

Which changes need focused human review? 4371 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 2HIGH 555MEDIUM 33LOW 3781

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 4371 distinct pattern matches across 21 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Cross-File Repetition417 hits · 2085 pts
SeverityFileLineSnippetContext
HIGHREADME.md0returns the current weather. args: location: the city and state, e.g. san francisco, ca.STRING
HIGHdocs/_sources/index.rst.txt0returns the current weather. args: location: the city and state, e.g. san francisco, ca.STRING
HIGH…e/genai/tests/afc/test_get_max_remote_calls_for_afc.py0returns the current weather. args: location: the city and state, e.g. san francisco, ca.STRING
HIGHgoogle/genai/types.py0the `status` type defines a logical error model that is suitable for different programming environments, including rest STRING
HIGH…ogle/genai/_gaos/types/interactions/modeloutputstep.py0the `status` type defines a logical error model that is suitable for different programming environments, including rest STRING
HIGHgoogle/genai/_gaos/types/interactions/status.py0the `status` type defines a logical error model that is suitable for different programming environments, including rest STRING
HIGHgoogle/genai/_gaos/files.py0code generated by speakeasy (https://speakeasy.com). do not edit.STRING
HIGHgoogle/genai/_gaos/httpclient.py0code generated by speakeasy (https://speakeasy.com). do not edit.STRING
HIGHgoogle/genai/_gaos/sdk.py0code generated by speakeasy (https://speakeasy.com). do not edit.STRING
HIGHgoogle/genai/_gaos/triggers.py0code generated by speakeasy (https://speakeasy.com). do not edit.STRING
HIGHgoogle/genai/_gaos/_internal.py0code generated by speakeasy (https://speakeasy.com). do not edit.STRING
HIGHgoogle/genai/_gaos/sdkconfiguration.py0code generated by speakeasy (https://speakeasy.com). do not edit.STRING
HIGHgoogle/genai/_gaos/_version.py0code generated by speakeasy (https://speakeasy.com). do not edit.STRING
HIGHgoogle/genai/_gaos/credentials.py0code generated by speakeasy (https://speakeasy.com). do not edit.STRING
HIGHgoogle/genai/_gaos/__init__.py0code generated by speakeasy (https://speakeasy.com). do not edit.STRING
HIGHgoogle/genai/_gaos/agents.py0code generated by speakeasy (https://speakeasy.com). do not edit.STRING
HIGHgoogle/genai/_gaos/voices.py0code generated by speakeasy (https://speakeasy.com). do not edit.STRING
HIGHgoogle/genai/_gaos/environments.py0code generated by speakeasy (https://speakeasy.com). do not edit.STRING
HIGHgoogle/genai/_gaos/interactions.py0code generated by speakeasy (https://speakeasy.com). do not edit.STRING
HIGHgoogle/genai/_gaos/webhooks.py0code generated by speakeasy (https://speakeasy.com). do not edit.STRING
HIGHgoogle/genai/_gaos/basesdk.py0code generated by speakeasy (https://speakeasy.com). do not edit.STRING
HIGHgoogle/genai/_gaos/types/basemodel.py0code generated by speakeasy (https://speakeasy.com). do not edit.STRING
HIGHgoogle/genai/_gaos/types/security.py0code generated by speakeasy (https://speakeasy.com). do not edit.STRING
HIGHgoogle/genai/_gaos/types/__init__.py0code generated by speakeasy (https://speakeasy.com). do not edit.STRING
HIGHgoogle/genai/_gaos/types/base64fileinput.py0code generated by speakeasy (https://speakeasy.com). do not edit.STRING
HIGH…nai/_gaos/types/interactions/antigravityagentconfig.py0code generated by speakeasy (https://speakeasy.com). do not edit.STRING
HIGH…ai/_gaos/types/interactions/deepresearchagentconfig.py0code generated by speakeasy (https://speakeasy.com). do not edit.STRING
HIGH…genai/_gaos/types/interactions/retrievalresultdelta.py0code generated by speakeasy (https://speakeasy.com). do not edit.STRING
HIGHgoogle/genai/_gaos/types/interactions/filecitation.py0code generated by speakeasy (https://speakeasy.com). do not edit.STRING
HIGH…e/genai/_gaos/types/interactions/retrievalcalldelta.py0code generated by speakeasy (https://speakeasy.com). do not edit.STRING
HIGHgoogle/genai/_gaos/types/interactions/documentdelta.py0code generated by speakeasy (https://speakeasy.com). do not edit.STRING
HIGHgoogle/genai/_gaos/types/interactions/ragstoreconfig.py0code generated by speakeasy (https://speakeasy.com). do not edit.STRING
HIGHgoogle/genai/_gaos/types/interactions/speakerconfig.py0code generated by speakeasy (https://speakeasy.com). do not edit.STRING
HIGH…e/genai/_gaos/types/interactions/textresponseformat.py0code generated by speakeasy (https://speakeasy.com). do not edit.STRING
HIGH…/genai/_gaos/types/interactions/processingcalldelta.py0code generated by speakeasy (https://speakeasy.com). do not edit.STRING
HIGHgoogle/genai/_gaos/types/interactions/annotation.py0code generated by speakeasy (https://speakeasy.com). do not edit.STRING
HIGH…genai/_gaos/types/interactions/vertexaisearchconfig.py0code generated by speakeasy (https://speakeasy.com). do not edit.STRING
HIGH…nai/_gaos/types/interactions/createagentinteraction.py0code generated by speakeasy (https://speakeasy.com). do not edit.STRING
HIGH…le/genai/_gaos/types/interactions/interactionsinput.py0code generated by speakeasy (https://speakeasy.com). do not edit.STRING
HIGHgoogle/genai/_gaos/types/interactions/argumentsdelta.py0code generated by speakeasy (https://speakeasy.com). do not edit.STRING
HIGH…ogle/genai/_gaos/types/interactions/documentcontent.py0code generated by speakeasy (https://speakeasy.com). do not edit.STRING
HIGH…le/genai/_gaos/types/interactions/transcriptionmode.py0code generated by speakeasy (https://speakeasy.com). do not edit.STRING
HIGH…ypes/interactions/environmentnetworkegressallowlist.py0code generated by speakeasy (https://speakeasy.com). do not edit.STRING
HIGH…e/genai/_gaos/types/interactions/dynamicagentconfig.py0code generated by speakeasy (https://speakeasy.com). do not edit.STRING
HIGHgoogle/genai/_gaos/types/interactions/textcontent.py0code generated by speakeasy (https://speakeasy.com). do not edit.STRING
HIGH…/_gaos/types/interactions/interactioncompletedevent.py0code generated by speakeasy (https://speakeasy.com). do not edit.STRING
HIGHgoogle/genai/_gaos/types/interactions/stepstart.py0code generated by speakeasy (https://speakeasy.com). do not edit.STRING
HIGH…ogle/genai/_gaos/types/interactions/mediaresolution.py0code generated by speakeasy (https://speakeasy.com). do not edit.STRING
HIGHgoogle/genai/_gaos/types/interactions/ragresource.py0code generated by speakeasy (https://speakeasy.com). do not edit.STRING
HIGHgoogle/genai/_gaos/types/interactions/thoughtstep.py0code generated by speakeasy (https://speakeasy.com). do not edit.STRING
HIGHgoogle/genai/_gaos/types/interactions/error.py0code generated by speakeasy (https://speakeasy.com). do not edit.STRING
HIGH…/genai/_gaos/types/interactions/imageresponseformat.py0code generated by speakeasy (https://speakeasy.com). do not edit.STRING
HIGH…nai/_gaos/types/interactions/parallelaisearchconfig.py0code generated by speakeasy (https://speakeasy.com). do not edit.STRING
HIGHgoogle/genai/_gaos/types/interactions/interaction.py0code generated by speakeasy (https://speakeasy.com). do not edit.STRING
HIGH…/genai/_gaos/types/interactions/filesearchcalldelta.py0code generated by speakeasy (https://speakeasy.com). do not edit.STRING
HIGHgoogle/genai/_gaos/types/interactions/videodelta.py0code generated by speakeasy (https://speakeasy.com). do not edit.STRING
HIGHgoogle/genai/_gaos/types/interactions/fixrequest.py0code generated by speakeasy (https://speakeasy.com). do not edit.STRING
HIGH…nai/_gaos/types/interactions/retrievalcallarguments.py0code generated by speakeasy (https://speakeasy.com). do not edit.STRING
HIGH…/genai/_gaos/types/interactions/videoresponseformat.py0code generated by speakeasy (https://speakeasy.com). do not edit.STRING
HIGH…nai/_gaos/types/interactions/smarttranscriptionmode.py0code generated by speakeasy (https://speakeasy.com). do not edit.STRING
357 more matches not shown…
Unused Imports1517 hits · 1166 pts
SeverityFileLineSnippetContext
LOWgoogle/genai/_extra_utils.py26CODE
LOWgoogle/genai/triggers.py17CODE
LOWgoogle/genai/triggers.py20CODE
LOWgoogle/genai/triggers.py23CODE
LOWgoogle/genai/triggers.py26CODE
LOWgoogle/genai/triggers.py27CODE
LOWgoogle/genai/triggers.py27CODE
LOWgoogle/genai/triggers.py31CODE
LOWgoogle/genai/triggers.py31CODE
LOWgoogle/genai/triggers.py35CODE
LOWgoogle/genai/triggers.py35CODE
LOWgoogle/genai/triggers.py39CODE
LOWgoogle/genai/triggers.py39CODE
LOWgoogle/genai/triggers.py43CODE
LOWgoogle/genai/triggers.py43CODE
LOWgoogle/genai/triggers.py47CODE
LOWgoogle/genai/triggers.py47CODE
LOWgoogle/genai/triggers.py47CODE
LOWgoogle/genai/triggers.py47CODE
LOWgoogle/genai/credentials.py17CODE
LOWgoogle/genai/credentials.py20CODE
LOWgoogle/genai/credentials.py21CODE
LOWgoogle/genai/credentials.py22CODE
LOWgoogle/genai/credentials.py25CODE
LOWgoogle/genai/credentials.py28CODE
LOWgoogle/genai/credentials.py28CODE
LOWgoogle/genai/credentials.py28CODE
LOWgoogle/genai/credentials.py28CODE
LOWgoogle/genai/credentials.py34CODE
LOWgoogle/genai/credentials.py34CODE
LOWgoogle/genai/credentials.py34CODE
LOWgoogle/genai/credentials.py34CODE
LOWgoogle/genai/credentials.py40CODE
LOWgoogle/genai/credentials.py40CODE
LOWgoogle/genai/credentials.py44CODE
LOWgoogle/genai/credentials.py44CODE
LOWgoogle/genai/credentials.py48CODE
LOWgoogle/genai/credentials.py51CODE
LOWgoogle/genai/credentials.py51CODE
LOWgoogle/genai/credentials.py55CODE
LOWgoogle/genai/credentials.py55CODE
LOWgoogle/genai/credentials.py59CODE
LOWgoogle/genai/client.py16CODE
LOWgoogle/genai/client.py26CODE
LOWgoogle/genai/client.py40CODE
LOWgoogle/genai/__init__.py21CODE
LOWgoogle/genai/__init__.py23CODE
LOWgoogle/genai/tokens.py20CODE
LOWgoogle/genai/tokens.py20CODE
LOWgoogle/genai/types.py28CODE
LOWgoogle/genai/types.py28CODE
LOWgoogle/genai/types.py51CODE
LOWgoogle/genai/types.py69CODE
LOWgoogle/genai/agents.py17CODE
LOWgoogle/genai/agents.py20CODE
LOWgoogle/genai/agents.py23CODE
LOWgoogle/genai/agents.py23CODE
LOWgoogle/genai/agents.py23CODE
LOWgoogle/genai/agents.py23CODE
LOWgoogle/genai/agents.py23CODE
1457 more matches not shown…
Hyper-Verbose Identifiers1233 hits · 1082 pts
SeverityFileLineSnippetContext
LOWgoogle/genai/_test_api_client.py25def test_request_streamed_non_blocking(mock_request, mock_build_request):CODE
LOWgoogle/genai/_test_api_client.py105async def test_async_request_streamed_non_blocking(CODE
LOWgoogle/genai/_local_tokenizer_loader.py217def get_huggingface_tokenizer(tokenizer_name: str) -> Any:CODE
LOW⚡google/genai/_extra_utils.py326def invoke_function_from_dict_args(CODE
LOW⚡google/genai/_extra_utils.py340async def invoke_function_from_dict_args_async(CODE
LOW⚡google/genai/_extra_utils.py354def get_function_response_parts(CODE
LOWgoogle/genai/_extra_utils.py59def _create_generate_content_config_model(CODE
LOWgoogle/genai/_extra_utils.py120def find_afc_incompatible_tool_indexes(CODE
LOWgoogle/genai/_extra_utils.py145def log_afc_incompatible_tools_warning(CODE
LOWgoogle/genai/_extra_utils.py207def convert_number_values_for_dict_function_call_args(CODE
LOWgoogle/genai/_extra_utils.py217def convert_number_values_for_function_call_args(CODE
LOWgoogle/genai/_extra_utils.py235def is_annotation_pydantic_model(annotation: Any) -> bool:CODE
LOWgoogle/genai/_extra_utils.py247def convert_if_exist_pydantic_model(CODE
LOWgoogle/genai/_extra_utils.py309def convert_argument_from_function(CODE
LOWgoogle/genai/_extra_utils.py389async def get_function_response_parts_async(CODE
LOWgoogle/genai/_extra_utils.py521def raise_error_for_afc_incompatible_config(config: Optional[types.GenerateContentConfig]CODE
LOWgoogle/genai/_extra_utils.py546def should_append_afc_history(CODE
LOWgoogle/genai/_extra_utils.py557def parse_config_for_mcp_usage(CODE
LOWgoogle/genai/_extra_utils.py578async def parse_config_for_mcp_sessions(CODE
LOWgoogle/genai/_extra_utils.py719def has_agent_platform_mcp_servers(CODE
LOWgoogle/genai/_extra_utils.py781def should_enable_automatic_continuation(CODE
LOWgoogle/genai/_extra_utils.py798def is_resumable_finish_reason(CODE
LOWgoogle/genai/_extra_utils.py826def clear_intermediate_finish_reason(CODE
LOWgoogle/genai/_extra_utils.py846def should_continue_generation(CODE
LOWgoogle/genai/_extra_utils.py860def prepare_continuation_config(CODE
LOWgoogle/genai/_extra_utils.py899def merge_modality_token_counts(CODE
LOWgoogle/genai/_extra_utils.py1022def merge_continuation_responses(CODE
LOWgoogle/genai/file_search_stores.py608 def _upload_to_file_search_store(CODE
LOWgoogle/genai/file_search_stores.py789 def upload_to_file_search_store(CODE
LOWgoogle/genai/file_search_stores.py1238 async def _upload_to_file_search_store(CODE
LOWgoogle/genai/file_search_stores.py1419 async def upload_to_file_search_store(CODE
LOWgoogle/genai/models.py6111 def _generate_content_with_continuation(CODE
LOWgoogle/genai/models.py6137 def _generate_content_stream_with_continuation(CODE
LOWgoogle/genai/models.py8369 async def _generate_content_with_continuation(CODE
LOWgoogle/genai/models.py8395 async def _generate_content_stream_with_continuation(CODE
LOWgoogle/genai/local_tokenizer.py147 def _function_declaration_traverse(CODE
LOWgoogle/genai/live_music.py69 async def set_music_generation_config(CODE
LOWgoogle/genai/_common.py591 def _check_field_type_mismatches(cls, data: Any) -> Any:CODE
LOWgoogle/genai/_common.py699def encode_unserializable_types(data: dict[str, object]) -> dict[str, object]:CODE
LOWgoogle/genai/_common.py762def _normalize_key_for_matching(key_str: str) -> str:CODE
LOWgoogle/genai/_automatic_function_calling_util.py58def _raise_for_unsupported_param(CODE
LOWgoogle/genai/_automatic_function_calling_util.py69def _handle_params_as_deferred_annotations(param: inspect.Parameter, annotation_under_future: dict[str, Any], name: str)CODE
LOWgoogle/genai/_automatic_function_calling_util.py76def _add_unevaluated_items_to_fixed_len_tuple_schema(CODE
LOWgoogle/genai/_automatic_function_calling_util.py91def _is_builtin_primitive_or_compound(CODE
LOWgoogle/genai/_automatic_function_calling_util.py97def _is_default_value_compatible(CODE
LOWgoogle/genai/_automatic_function_calling_util.py142def _parse_schema_from_parameter( # type: ignore[return]CODE
LOWgoogle/genai/_automatic_function_calling_util.py330def _get_required_fields_from_json_schema(json_schema: dict[str, Any]) -> Optional[list[str]]:CODE
LOWgoogle/genai/_automatic_function_calling_util.py345def parse_function_declaration_json_schema(CODE
LOWgoogle/genai/tokens.py44def _convert_bidi_setup_to_token_setup(CODE
LOWgoogle/genai/types.py2554 def from_code_execution_result(CODE
LOWgoogle/genai/types.py3316 def normalize_json_schema_type(CODE
LOWgoogle/genai/types.py3342 def raise_error_if_cannot_convert(CODE
LOWgoogle/genai/types.py4893 def from_callable_with_api_option(CODE
LOWgoogle/genai/types.py8607 def initial_prompt_token_count(self) -> Optional[int]:CODE
LOWgoogle/genai/types.py8907 def initial_prompt_token_count(self) -> Optional[int]:CODE
LOWgoogle/genai/types.py20059 def _validate_mask_image_config(self, values: Any) -> Any:CODE
LOWgoogle/genai/types.py20121 def _validate_mask_image_config(self, values: Any) -> Any:CODE
LOWgoogle/genai/types.py20192 def _validate_mask_image_config(self, values: Any) -> Any:CODE
LOWgoogle/genai/types.py20263 def _validate_mask_image_config(self, values: Any) -> Any:CODE
LOWgoogle/genai/types.py20330 def _validate_mask_image_config(self, values: Any) -> Any:CODE
1173 more matches not shown…
Empty Error Handlers131 hits · 655 pts
SeverityFileLineSnippetContext
HIGHgoogle/genai/_local_tokenizer_loader.py99except OSError:CODE
HIGHgoogle/genai/_local_tokenizer_loader.py130except OSError:CODE
HIGHgoogle/genai/client.py270except Exception:CODE
HIGHgoogle/genai/client.py666except Exception:CODE
HIGHgoogle/genai/types.py141except ImportError:CODE
HIGHgoogle/genai/types.py8945except pydantic.ValidationError:CODE
HIGHgoogle/genai/types.py8947except json.decoder.JSONDecodeError:CODE
HIGHgoogle/genai/types.py8964except ValueError:CODE
HIGHgoogle/genai/types.py8979except json.decoder.JSONDecodeError:CODE
HIGHgoogle/genai/types.py8981except pydantic.ValidationError:CODE
HIGHgoogle/genai/types.py8995except json.decoder.JSONDecodeError:CODE
HIGHgoogle/genai/types.py9012except json.decoder.JSONDecodeError:CODE
HIGHgoogle/genai/types.py9014except pydantic.ValidationError:CODE
HIGHgoogle/genai/types.py9022except json.decoder.JSONDecodeError:CODE
HIGHgoogle/genai/_transformers.py971except ImportError:CODE
HIGHgoogle/genai/_transformers.py1338except pydantic.ValidationError:CODE
HIGHgoogle/genai/live.py546except asyncio.CancelledError:CODE
HIGHgoogle/genai/_api_client.py76except ImportError:CODE
HIGHgoogle/genai/_api_client.py629except Exception:CODE
HIGHgoogle/genai/_api_client.py633except Exception:CODE
HIGHgoogle/genai/_api_client.py649except Exception:CODE
HIGHgoogle/genai/_api_client.py653except Exception:CODE
HIGHgoogle/genai/_api_client.py2599except Exception: # pylint: disable=broad-exceptCODE
HIGHgoogle/genai/_api_client.py2604except Exception: # pylint: disable=broad-exceptCODE
HIGHgoogle/genai/_api_client.py912except ImportError:CODE
HIGHgoogle/genai/_api_client.py1098except ImportError:CODE
HIGHgoogle/genai/_api_client.py2586except RuntimeError:CODE
HIGHgoogle/genai/_gaos/httpclient.py125except Exception:CODE
HIGHgoogle/genai/_gaos/httpclient.py150except RuntimeError:CODE
HIGHgoogle/genai/_gaos/_version.py34except importlib.metadata.PackageNotFoundError:CODE
HIGHgoogle/genai/_gaos/types/security.py97except NameError:CODE
HIGH…nai/_gaos/types/interactions/antigravityagentconfig.py86except NameError:CODE
HIGH…ai/_gaos/types/interactions/deepresearchagentconfig.py109except NameError:CODE
HIGH…genai/_gaos/types/interactions/retrievalresultdelta.py82except NameError:CODE
HIGHgoogle/genai/_gaos/types/interactions/filecitation.py122except NameError:CODE
HIGH…e/genai/_gaos/types/interactions/retrievalcalldelta.py97except NameError:CODE
HIGHgoogle/genai/_gaos/types/interactions/documentdelta.py77except NameError:CODE
HIGH…e/genai/_gaos/types/interactions/textresponseformat.py87except NameError:CODE
HIGH…/genai/_gaos/types/interactions/processingcalldelta.py71except NameError:CODE
HIGHgoogle/genai/_gaos/types/interactions/argumentsdelta.py65except NameError:CODE
HIGH…ogle/genai/_gaos/types/interactions/documentcontent.py94except NameError:CODE
HIGH…e/genai/_gaos/types/interactions/dynamicagentconfig.py60except NameError:CODE
HIGHgoogle/genai/_gaos/types/interactions/textcontent.py74except NameError:CODE
HIGH…/_gaos/types/interactions/interactioncompletedevent.py98except NameError:CODE
HIGHgoogle/genai/_gaos/types/interactions/stepstart.py77except NameError:CODE
HIGHgoogle/genai/_gaos/types/interactions/thoughtstep.py74except NameError:CODE
HIGH…/genai/_gaos/types/interactions/imageresponseformat.py131except NameError:CODE
HIGH…/genai/_gaos/types/interactions/filesearchcalldelta.py67except NameError:CODE
HIGHgoogle/genai/_gaos/types/interactions/videodelta.py89except NameError:CODE
HIGH…/genai/_gaos/types/interactions/videoresponseformat.py126except NameError:CODE
HIGH…nai/_gaos/types/interactions/smarttranscriptionmode.py46except NameError:CODE
HIGH…ai/_gaos/types/interactions/googlesearchresultdelta.py74except NameError:CODE
HIGH…genai/_gaos/types/interactions/filesearchresultstep.py76except NameError:CODE
HIGHgoogle/genai/_gaos/types/interactions/placecitation.py108except NameError:CODE
HIGH…/_gaos/types/interactions/verbatimtranscriptionmode.py77except NameError:CODE
HIGH…genai/_gaos/types/interactions/googlesearchcallstep.py107except NameError:CODE
HIGHgoogle/genai/_gaos/types/interactions/audiocontent.py115except NameError:CODE
HIGHgoogle/genai/_gaos/types/interactions/imagecontent.py104except NameError:CODE
HIGH…/genai/_gaos/types/interactions/urlcontextcalldelta.py76except NameError:CODE
HIGH…e/genai/_gaos/types/interactions/googlemapscallstep.py85except NameError:CODE
71 more matches not shown…
Over-Commented Block584 hits · 577 pts
SeverityFileLineSnippetContext
LOWgoogle/genai/_test_api_client.py1# Copyright 2025 Google LLCCOMMENT
LOWgoogle/genai/files.py1# Copyright 2025 Google LLCCOMMENT
LOWgoogle/genai/caches.py1# Copyright 2025 Google LLCCOMMENT
LOWgoogle/genai/_base_url.py1# Copyright 2025 Google LLCCOMMENT
LOWgoogle/genai/_local_tokenizer_loader.py1# Copyright 2025 Google LLCCOMMENT
LOWgoogle/genai/_live_converters.py1# Copyright 2025 Google LLCCOMMENT
LOWgoogle/genai/version.py1# Copyright 2025 Google LLCCOMMENT
LOWgoogle/genai/_extra_utils.py1# Copyright 2025 Google LLCCOMMENT
LOWgoogle/genai/triggers.py1# Copyright 2026 Google LLCCOMMENT
LOWgoogle/genai/_api_module.py1# Copyright 2025 Google LLCCOMMENT
LOWgoogle/genai/_tokens_converters.py1# Copyright 2025 Google LLCCOMMENT
LOWgoogle/genai/file_search_stores.py1# Copyright 2025 Google LLCCOMMENT
LOWgoogle/genai/models.py1# Copyright 2025 Google LLCCOMMENT
LOWgoogle/genai/credentials.py1# Copyright 2026 Google LLCCOMMENT
LOWgoogle/genai/local_tokenizer.py1# Copyright 2025 Google LLCCOMMENT
LOWgoogle/genai/documents.py1# Copyright 2025 Google LLCCOMMENT
LOWgoogle/genai/client.py1# Copyright 2025 Google LLCCOMMENT
LOWgoogle/genai/live_music.py1# Copyright 2025 Google LLCCOMMENT
LOWgoogle/genai/_common.py1# Copyright 2025 Google LLCCOMMENT
LOWgoogle/genai/__init__.py1# Copyright 2025 Google LLCCOMMENT
LOWgoogle/genai/_automatic_function_calling_util.py1# Copyright 2025 Google LLCCOMMENT
LOWgoogle/genai/tokens.py1# Copyright 2025 Google LLCCOMMENT
LOWgoogle/genai/types.py1# Copyright 2025 Google LLCCOMMENT
LOWgoogle/genai/_mcp_utils.py1# Copyright 2025 Google LLCCOMMENT
LOWgoogle/genai/agents.py1# Copyright 2026 Google LLCCOMMENT
LOWgoogle/genai/voices.py1# Copyright 2026 Google LLCCOMMENT
LOWgoogle/genai/_transformers.py1# Copyright 2025 Google LLCCOMMENT
LOWgoogle/genai/_base_transformers.py1# Copyright 2025 Google LLCCOMMENT
LOWgoogle/genai/operations.py1# Copyright 2025 Google LLCCOMMENT
LOWgoogle/genai/_operations_converters.py1# Copyright 2025 Google LLCCOMMENT
LOWgoogle/genai/pagers.py1# Copyright 2025 Google LLCCOMMENT
LOWgoogle/genai/environments.py1# Copyright 2026 Google LLCCOMMENT
LOWgoogle/genai/live.py1# Copyright 2025 Google LLCCOMMENT
LOWgoogle/genai/_api_client.py1# Copyright 2026 Google LLCCOMMENT
LOWgoogle/genai/chats.py1# Copyright 2025 Google LLCCOMMENT
LOWgoogle/genai/_adapters.py1# Copyright 2025 Google LLCCOMMENT
LOWgoogle/genai/errors.py1# Copyright 2025 Google LLCCOMMENT
LOWgoogle/genai/interactions.py1# Copyright 2025 Google LLCCOMMENT
LOWgoogle/genai/webhooks.py1# Copyright 2026 Google LLCCOMMENT
LOWgoogle/genai/batches.py1# Copyright 2025 Google LLCCOMMENT
LOWgoogle/genai/_replay_api_client.py1# Copyright 2025 Google LLCCOMMENT
LOWgoogle/genai/tunings.py1# Copyright 2025 Google LLCCOMMENT
LOWgoogle/genai/_gaos/files.py1# Copyright 2026 Google LLCCOMMENT
LOWgoogle/genai/_gaos/httpclient.py1# Copyright 2026 Google LLCCOMMENT
LOWgoogle/genai/_gaos/sdk.py1# Copyright 2026 Google LLCCOMMENT
LOWgoogle/genai/_gaos/triggers.py1# Copyright 2026 Google LLCCOMMENT
LOWgoogle/genai/_gaos/_internal.py1# Copyright 2026 Google LLCCOMMENT
LOWgoogle/genai/_gaos/sdkconfiguration.py1# Copyright 2026 Google LLCCOMMENT
LOWgoogle/genai/_gaos/_version.py1# Copyright 2026 Google LLCCOMMENT
LOWgoogle/genai/_gaos/credentials.py1# Copyright 2026 Google LLCCOMMENT
LOWgoogle/genai/_gaos/__init__.py1# Copyright 2026 Google LLCCOMMENT
LOWgoogle/genai/_gaos/google_genai.py1# Copyright 2026 Google LLCCOMMENT
LOWgoogle/genai/_gaos/agents.py1# Copyright 2026 Google LLCCOMMENT
LOWgoogle/genai/_gaos/voices.py1# Copyright 2026 Google LLCCOMMENT
LOWgoogle/genai/_gaos/environments.py1# Copyright 2026 Google LLCCOMMENT
LOWgoogle/genai/_gaos/interactions.py1# Copyright 2026 Google LLCCOMMENT
LOWgoogle/genai/_gaos/webhooks.py1# Copyright 2026 Google LLCCOMMENT
LOWgoogle/genai/_gaos/basesdk.py1# Copyright 2026 Google LLCCOMMENT
LOWgoogle/genai/_gaos/types/basemodel.py1# Copyright 2026 Google LLCCOMMENT
LOWgoogle/genai/_gaos/types/security.py1# Copyright 2026 Google LLCCOMMENT
524 more matches not shown…
Excessive Try-Catch Wrapping207 hits · 121 pts
SeverityFileLineSnippetContext
LOW⚡google/genai/_extra_utils.py332 except Exception as e:CODE
LOW⚡google/genai/_extra_utils.py346 except Exception as e:CODE
LOWgoogle/genai/_extra_utils.py380 except Exception as e: # pylint: disable=broad-exceptCODE
LOWgoogle/genai/_extra_utils.py437 except Exception as e: # pylint: disable=broad-exceptCODE
LOWgoogle/genai/models.py6189 except Exception: # pylint: disable=broad-exception-caughtCODE
LOWgoogle/genai/models.py8448 except Exception: # pylint: disable=broad-exception-caughtCODE
LOWgoogle/genai/client.py270 except Exception:CODE
LOWgoogle/genai/client.py666 except Exception:CODE
MEDIUMgoogle/genai/client.py267def __del__(self) -> None:CODE
MEDIUMgoogle/genai/client.py663def __del__(self) -> None:CODE
LOWgoogle/genai/_common.py630 except Exception:CODE
MEDIUMgoogle/genai/_common.py627def __repr__(self) -> str:CODE
LOWgoogle/genai/_automatic_function_calling_util.py389 except Exception as e:CODE
LOWgoogle/genai/_automatic_function_calling_util.py444 except Exception as e:CODE
LOWgoogle/genai/types.py4989 except Exception as e:CODE
LOWgoogle/genai/types.py5056 except Exception as e:CODE
LOWgoogle/genai/_transformers.py1292 except Exception as e:CODE
LOWgoogle/genai/_transformers.py1312 except Exception as e:CODE
MEDIUMgoogle/genai/_api_client.py328def __anext__(self) -> Any:CODE
MEDIUMgoogle/genai/_api_client.py645def __del__(self) -> None:CODE
MEDIUMgoogle/genai/_api_client.py986def _use_google_auth_async(self) -> bool:CODE
LOW⚡google/genai/_api_client.py2599 except Exception: # pylint: disable=broad-exceptCODE
LOW⚡google/genai/_api_client.py2604 except Exception: # pylint: disable=broad-exceptCODE
LOWgoogle/genai/_api_client.py629 except Exception:CODE
LOWgoogle/genai/_api_client.py633 except Exception:CODE
LOWgoogle/genai/_api_client.py649 except Exception:CODE
LOWgoogle/genai/_api_client.py653 except Exception:CODE
LOWgoogle/genai/_api_client.py1183 except Exception as e: # pylint: disable=broad-exceptCODE
LOWgoogle/genai/_api_client.py1250 except Exception as e: # pylint: disable=broad-exceptCODE
LOWgoogle/genai/_api_client.py1321 except Exception as e: # pylint: disable=broad-exceptCODE
LOWgoogle/genai/_gaos/files.py168 except Exception as parse_exc_:STRING
LOWgoogle/genai/_gaos/files.py193 except Exception as parse_exc_:STRING
LOWgoogle/genai/_gaos/files.py354 except Exception as parse_exc_:STRING
LOWgoogle/genai/_gaos/files.py381 except Exception as parse_exc_:STRING
LOWgoogle/genai/_gaos/httpclient.py125 except Exception:CODE
LOWgoogle/genai/_gaos/triggers.py166 except Exception as parse_exc_:STRING
LOWgoogle/genai/_gaos/triggers.py191 except Exception as parse_exc_:STRING
LOWgoogle/genai/_gaos/triggers.py354 except Exception as parse_exc_:STRING
LOWgoogle/genai/_gaos/triggers.py379 except Exception as parse_exc_:STRING
LOWgoogle/genai/_gaos/triggers.py504 except Exception as parse_exc_:STRING
LOWgoogle/genai/_gaos/triggers.py529 except Exception as parse_exc_:STRING
LOWgoogle/genai/_gaos/triggers.py654 except Exception as parse_exc_:STRING
LOWgoogle/genai/_gaos/triggers.py679 except Exception as parse_exc_:STRING
LOWgoogle/genai/_gaos/triggers.py822 except Exception as parse_exc_:STRING
LOWgoogle/genai/_gaos/triggers.py847 except Exception as parse_exc_:STRING
LOWgoogle/genai/_gaos/triggers.py978 except Exception as parse_exc_:STRING
LOWgoogle/genai/_gaos/triggers.py1003 except Exception as parse_exc_:STRING
LOWgoogle/genai/_gaos/triggers.py1128 except Exception as parse_exc_:STRING
LOWgoogle/genai/_gaos/triggers.py1153 except Exception as parse_exc_:STRING
LOWgoogle/genai/_gaos/triggers.py1340 except Exception as parse_exc_:STRING
LOWgoogle/genai/_gaos/triggers.py1367 except Exception as parse_exc_:STRING
LOWgoogle/genai/_gaos/triggers.py1531 except Exception as parse_exc_:STRING
LOWgoogle/genai/_gaos/triggers.py1558 except Exception as parse_exc_:STRING
LOWgoogle/genai/_gaos/triggers.py1684 except Exception as parse_exc_:STRING
LOWgoogle/genai/_gaos/triggers.py1711 except Exception as parse_exc_:STRING
LOWgoogle/genai/_gaos/triggers.py1837 except Exception as parse_exc_:STRING
LOWgoogle/genai/_gaos/triggers.py1864 except Exception as parse_exc_:STRING
LOWgoogle/genai/_gaos/triggers.py2008 except Exception as parse_exc_:STRING
LOWgoogle/genai/_gaos/triggers.py2035 except Exception as parse_exc_:STRING
LOWgoogle/genai/_gaos/triggers.py2167 except Exception as parse_exc_:STRING
147 more matches not shown…
Deep Nesting112 hits · 92 pts
SeverityFileLineSnippetContext
LOWgoogle/genai/_extra_utils.py171CODE
LOWgoogle/genai/_extra_utils.py247CODE
LOWgoogle/genai/_extra_utils.py354CODE
LOWgoogle/genai/_extra_utils.py389CODE
LOWgoogle/genai/_extra_utils.py578CODE
LOWgoogle/genai/_extra_utils.py735CODE
LOWgoogle/genai/_extra_utils.py951CODE
LOWgoogle/genai/models.py6137CODE
LOWgoogle/genai/models.py6379CODE
LOWgoogle/genai/models.py6775CODE
LOWgoogle/genai/models.py8395CODE
LOWgoogle/genai/models.py8459CODE
LOWgoogle/genai/models.py8683CODE
LOWgoogle/genai/models.py9215CODE
LOWgoogle/genai/models.py8771CODE
LOWgoogle/genai/_common.py54CODE
LOWgoogle/genai/_common.py128CODE
LOWgoogle/genai/_common.py170CODE
LOWgoogle/genai/_common.py206CODE
LOWgoogle/genai/_common.py329CODE
LOWgoogle/genai/_common.py381CODE
LOWgoogle/genai/_common.py507CODE
LOWgoogle/genai/_common.py699CODE
LOWgoogle/genai/_automatic_function_calling_util.py142CODE
LOWgoogle/genai/_automatic_function_calling_util.py345CODE
LOWgoogle/genai/tokens.py44CODE
LOWgoogle/genai/types.py2382CODE
LOWgoogle/genai/types.py3076CODE
LOWgoogle/genai/types.py3177CODE
LOWgoogle/genai/types.py4893CODE
LOWgoogle/genai/types.py8914CODE
LOWgoogle/genai/types.py22988CODE
LOWgoogle/genai/types.py3125CODE
LOWgoogle/genai/types.py3386CODE
LOWgoogle/genai/_mcp_utils.py138CODE
LOWgoogle/genai/_mcp_utils.py175CODE
LOWgoogle/genai/_transformers.py71CODE
LOWgoogle/genai/_transformers.py445CODE
LOWgoogle/genai/_transformers.py471CODE
LOWgoogle/genai/_transformers.py579CODE
LOWgoogle/genai/_transformers.py978CODE
LOWgoogle/genai/_transformers.py1011CODE
LOWgoogle/genai/_transformers.py1093CODE
LOWgoogle/genai/_transformers.py1153CODE
LOWgoogle/genai/_transformers.py1208CODE
LOWgoogle/genai/_transformers.py1242CODE
LOWgoogle/genai/_transformers.py1319CODE
LOWgoogle/genai/live.py1164CODE
LOWgoogle/genai/live.py599CODE
LOWgoogle/genai/live.py918CODE
LOWgoogle/genai/_api_client.py291CODE
LOWgoogle/genai/_api_client.py388CODE
LOWgoogle/genai/_api_client.py443CODE
LOWgoogle/genai/_api_client.py663CODE
LOWgoogle/genai/_api_client.py1044CODE
LOWgoogle/genai/_api_client.py1146CODE
LOWgoogle/genai/_api_client.py1225CODE
LOWgoogle/genai/_api_client.py1290CODE
LOWgoogle/genai/_api_client.py1623CODE
LOWgoogle/genai/_api_client.py2211CODE
52 more matches not shown…
Modern Structural Boilerplate62 hits · 62 pts
SeverityFileLineSnippetContext
LOWgoogle/genai/triggers.py54__all__ = [CODE
LOWgoogle/genai/credentials.py61__all__ = [CODE
LOWgoogle/genai/local_tokenizer.py31__all__ = [CODE
LOWgoogle/genai/__init__.py28__all__ = [CODE
LOWgoogle/genai/_automatic_function_calling_util.py34__all__ = [CODE
LOWgoogle/genai/_mcp_utils.py124def set_mcp_usage_header(headers: dict[str, str]) -> None:CODE
LOWgoogle/genai/agents.py41__all__ = [CODE
LOWgoogle/genai/voices.py23__all__ = [CODE
LOWgoogle/genai/environments.py50__all__ = [CODE
LOWgoogle/genai/interactions.py113__all__ = [CODE
LOWgoogle/genai/webhooks.py57__all__ = [CODE
LOWgoogle/genai/_gaos/types/__init__.py46__all__ = [CODE
LOWgoogle/genai/_gaos/types/interactions/__init__.py448__all__ = [CODE
LOWgoogle/genai/_gaos/types/triggers/__init__.py42__all__ = [CODE
LOWgoogle/genai/_gaos/types/environments/__init__.py50__all__ = [CODE
LOWgoogle/genai/_gaos/types/agents/__init__.py36__all__ = [CODE
LOWgoogle/genai/_gaos/types/voices/__init__.py36__all__ = [CODE
LOWgoogle/genai/_gaos/types/webhooks/__init__.py53__all__ = [CODE
LOWgoogle/genai/_gaos/types/credentials/__init__.py56__all__ = [CODE
LOWgoogle/genai/_gaos/resources/__init__.py28__all__ = [CODE
LOWgoogle/genai/_gaos/resources/interactions/__init__.py140__all__ = [CODE
LOW…ai/_gaos/resources/interactions/errorevent/__init__.py22__all__ = ["Error"]CODE
LOW…/_gaos/resources/interactions/videocontent/__init__.py22__all__ = ["Static"]CODE
LOW…esources/interactions/googlesearchcallstep/__init__.py24__all__ = ["Arguments"]CODE
LOW…os/resources/interactions/googlemapsresult/__init__.py25__all__ = ["Place", "place"]CODE
LOW…ources/interactions/googlemapsresult/place/__init__.py22__all__ = ["ReviewSnippet"]CODE
LOW…/resources/interactions/retrievalcalldelta/__init__.py24__all__ = ["Arguments"]CODE
LOW…_gaos/resources/interactions/placecitation/__init__.py22__all__ = ["ReviewSnippet"]CODE
LOW…sources/interactions/codemenderagentconfig/__init__.py26__all__ = ["FindRequest", "FixRequest", "SessionConfig", "findrequest", "fixrequest"]CODE
LOW…ractions/codemenderagentconfig/findrequest/__init__.py22__all__ = ["SourceFile"]CODE
LOW…eractions/codemenderagentconfig/fixrequest/__init__.py22__all__ = ["SourceFile"]CODE
LOW…/resources/interactions/urlcontextcallstep/__init__.py24__all__ = ["Arguments"]CODE
LOW…sources/interactions/codeexecutioncallstep/__init__.py24__all__ = ["Arguments"]CODE
LOW…ources/interactions/googlesearchresultstep/__init__.py22__all__ = ["Result"]CODE
LOW…/resources/interactions/googlemapscallstep/__init__.py24__all__ = ["Arguments"]CODE
LOW…ai/_gaos/resources/interactions/annotation/__init__.py22__all__ = ["SpeechMetadata"]CODE
LOW…e/genai/_gaos/resources/interactions/usage/__init__.py28__all__ = [CODE
LOW…i/_gaos/resources/interactions/environment/__init__.py27__all__ = [CODE
LOW…ironment/environmentnetworkegressallowlist/__init__.py22__all__ = ["AllowlistEntry"]CODE
LOW…esources/interactions/googlemapsresultstep/__init__.py23__all__ = ["Result", "result"]CODE
LOW…s/interactions/googlemapsresultstep/result/__init__.py25__all__ = ["Place", "place"]CODE
LOW…ractions/googlemapsresultstep/result/place/__init__.py22__all__ = ["ReviewSnippet"]CODE
LOW…nai/_gaos/resources/interactions/stepdelta/__init__.py80__all__ = [CODE
LOW…le/genai/_gaos/resources/interactions/tool/__init__.py30__all__ = [CODE
LOW…gaos/resources/interactions/tool/retrieval/__init__.py22__all__ = ["VertexAISearchConfig"]CODE
LOW…s/resources/interactions/retrievalcallstep/__init__.py24__all__ = ["Arguments"]CODE
LOW…s/resources/interactions/transcriptionmode/__init__.py27__all__ = ["Smart", "Verbatim"]CODE
LOW…esources/interactions/urlcontextresultstep/__init__.py22__all__ = ["Result"]CODE
LOWgoogle/genai/_gaos/resources/triggers/__init__.py42__all__ = [CODE
LOWgoogle/genai/_gaos/resources/environments/__init__.py30__all__ = [CODE
LOWgoogle/genai/_gaos/resources/agents/__init__.py29__all__ = [CODE
LOWgoogle/genai/_gaos/resources/voices/__init__.py37__all__ = [CODE
LOW…/_gaos/resources/voices/createvoicerequest/__init__.py22__all__ = ["Voice"]CODE
LOW…i/_gaos/resources/voices/voicelistresponse/__init__.py22__all__ = ["Voice"]CODE
LOWgoogle/genai/_gaos/resources/webhooks/__init__.py45__all__ = [CODE
LOWgoogle/genai/_gaos/resources/credentials/__init__.py47__all__ = [CODE
LOWgoogle/genai/_gaos/utils/__init__.py83__all__ = [CODE
LOWgoogle/genai/_gaos/utils/response_helpers.py685def _set_response_mode(kwargs: Dict[str, Any], mode: str, header_kwarg: str) -> None:CODE
LOWgoogle/genai/_gaos/models/__init__.py257__all__ = [CODE
LOWgoogle/genai/_gaos/models/internal/__init__.py27__all__ = ["Globals", "GlobalsTypedDict"]CODE
2 more matches not shown…
AI Structural Patterns42 hits · 42 pts
SeverityFileLineSnippetContext
LOWgoogle/genai/file_search_stores.py916CODE
LOWgoogle/genai/file_search_stores.py1545CODE
LOWgoogle/genai/models.py6637CODE
LOWgoogle/genai/models.py9139CODE
LOWgoogle/genai/client.py358CODE
LOWgoogle/genai/types.py2382CODE
LOWgoogle/genai/_replay_api_client.py157CODE
LOWgoogle/genai/_replay_api_client.py296CODE
LOWgoogle/genai/_gaos/httpclient.py43CODE
LOWgoogle/genai/_gaos/httpclient.py82CODE
LOWgoogle/genai/_gaos/sdk.py79CODE
LOWgoogle/genai/_gaos/sdk.py310CODE
LOWgoogle/genai/_gaos/triggers.py199CODE
LOWgoogle/genai/_gaos/triggers.py1376CODE
LOWgoogle/genai/_gaos/credentials.py968CODE
LOWgoogle/genai/_gaos/credentials.py1002CODE
LOWgoogle/genai/_gaos/credentials.py1036CODE
LOWgoogle/genai/_gaos/credentials.py2390CODE
LOWgoogle/genai/_gaos/credentials.py2424CODE
LOWgoogle/genai/_gaos/credentials.py2458CODE
LOWgoogle/genai/_gaos/agents.py197CODE
LOWgoogle/genai/_gaos/agents.py881CODE
LOWgoogle/genai/_gaos/voices.py40CODE
LOWgoogle/genai/_gaos/voices.py776CODE
LOWgoogle/genai/_gaos/environments.py214CODE
LOWgoogle/genai/_gaos/environments.py933CODE
LOWgoogle/genai/_gaos/interactions.py63CODE
LOWgoogle/genai/_gaos/interactions.py130CODE
LOWgoogle/genai/_gaos/interactions.py197CODE
LOWgoogle/genai/_gaos/interactions.py262CODE
LOWgoogle/genai/_gaos/interactions.py1332CODE
LOWgoogle/genai/_gaos/interactions.py1399CODE
LOWgoogle/genai/_gaos/interactions.py1466CODE
LOWgoogle/genai/_gaos/interactions.py1531CODE
LOWgoogle/genai/_gaos/webhooks.py679CODE
LOWgoogle/genai/_gaos/webhooks.py1908CODE
LOWgoogle/genai/_gaos/basesdk.py85CODE
LOWgoogle/genai/_gaos/basesdk.py133CODE
LOWgoogle/genai/_gaos/basesdk.py352CODE
LOWgoogle/genai/_gaos/basesdk.py400CODE
LOWgoogle/genai/_gaos/types/basemodel.py37CODE
LOWgoogle/genai/_gaos/types/basemodel.py76CODE
Self-Referential Comments11 hits · 31 pts
SeverityFileLineSnippetContext
MEDIUMgoogle/genai/_extra_utils.py564 # Create a copy of the config model with the tools field cleared since someCOMMENT
MEDIUMgoogle/genai/_extra_utils.py593 # Create a copy of the config model with the tools field cleared as they willCOMMENT
MEDIUMgoogle/genai/_common.py678 # Creating a enum instance based on the valueCOMMENT
MEDIUMgoogle/genai/types.py18475 """This class is experimental and may change in future versions.STRING
MEDIUMgoogle/genai/types.py18491 """This class is experimental and may change in future versions.STRING
MEDIUMgoogle/genai/live.py1188 # Create a copy of the config model with the tools field cleared as they willCOMMENT
MEDIUM⚡google/genai/_gaos/utils/enums.py106 # Create a validator that only accepts known enum values (for strict mode)COMMENT
MEDIUM⚡google/genai/_gaos/utils/enums.py113 # Create a lax validator that accepts unknown valuesCOMMENT
MEDIUMgoogle/genai/_gaos/_hooks/registration.py21# This file is only ever generated once on the first generation and then is free to be modified.COMMENT
MEDIUMgoogle/genai/_gaos/_hooks/asyncregistration.py30# This file is only ever generated once on the first generation and then is free to be modified.COMMENT
MEDIUMgoogle/genai/tests/common/test_common.py801 # Create an instance of ModelB (wrong type)COMMENT
Fake / Example Data20 hits · 20 pts
SeverityFileLineSnippetContext
LOWgoogle/genai/types.py8976 parsed = {'placeholder': json.loads(result_text)}CODE
LOWgoogle/genai/types.py9009 parsed = {'placeholder': json.loads(result_text)}CODE
LOWgoogle/genai/_transformers.py856 enum_schema = enum_schema['properties']['placeholder']CODE
LOWgoogle/genai/_transformers.py911 schema = schema['properties']['placeholder']CODE
LOWgoogle/genai/tests/interactions/test_httpx_compat.py71 api_key="fake-key",CODE
LOWgoogle/genai/tests/interactions/test_auth.py173 mock.patch.object(BaseApiClient, "_access_token", return_value="fake-token") as mock_access_token,CODE
LOWgoogle/genai/tests/interactions/test_auth.py398 mock.patch.object(BaseApiClient, "_access_token", return_value="fake-token") as mock_access_token,CODE
LOWgoogle/genai/tests/interactions/test_integration.py37 api_key="placeholder",CODE
LOWgoogle/genai/tests/interactions/test_integration.py64 api_key="placeholder",CODE
LOW⚡google/genai/tests/interactions/test_integration.py135 api_key="placeholder",CODE
LOW⚡google/genai/tests/interactions/test_integration.py147 api_key="placeholder",CODE
LOWgoogle/genai/tests/files/test_register.py34 def __init__(self, token="fake_token", expired=False, quota_project_id=None):CODE
LOWgoogle/genai/tests/files/test_register.py57 client = Client(api_key="dummy_key")CODE
LOWgoogle/genai/tests/files/test_register.py83 client = Client(api_key="dummy_key")CODE
LOWgoogle/genai/tests/files/test_register.py110 client = Client(api_key="dummy_key")CODE
LOWgoogle/genai/tests/files/test_register.py136 client = Client(api_key="dummy_key")CODE
LOWgoogle/genai/tests/files/test_register.py166 client = Client(api_key="dummy_key")CODE
LOWgoogle/genai/tests/files/test_register.py191 client = Client(api_key="dummy_key")CODE
LOWgoogle/genai/tests/files/test_register.py221 client = Client(api_key="dummy_key")CODE
LOWgoogle/genai/tests/files/test_register.py250 client = Client(api_key="dummy_key")CODE
Hallucination Indicators2 hits · 20 pts
SeverityFileLineSnippetContext
CRITICALgoogle/genai/live.py958 'google.genai.client.aio.live.connect() does not support'CODE
CRITICALgoogle/genai/tests/gaos/test_environments_lifecycle.py484 raw_files_res = await client.aio.environments.with_raw_response.files.list(CODE
AI Slop Vocabulary8 hits · 18 pts
SeverityFileLineSnippetContext
MEDIUMgoogle/genai/types.py4494 description="""Optional. Currently only supported for Gemini Multimodal Live API. In Gemini Multimodal Live API, iCODE
LOWgoogle/genai/types.py8988 # want the result converted to. So just return json.COMMENT
MEDIUMgoogle/genai/types.py4521 """Optional. Currently only supported for Gemini Multimodal Live API. In Gemini Multimodal Live API, if `store_contextSTRING
MEDIUMgoogle/genai/chats.py68 """Extracts the curated (valid) history from a comprehensive history.STRING
MEDIUMgoogle/genai/_gaos/types/interactions/model.py39 # Our state-of-the-art multipurpose model, which excels at coding and complex reasoning tasks.COMMENT
MEDIUMgoogle/genai/tests/models/test_edit_image.py120 # Test comprehensive configsCOMMENT
MEDIUMgoogle/genai/tests/models/test_edit_image.py263 # Test comprehensive configsCOMMENT
MEDIUMgoogle/genai/tests/live/test_live.py217 # comprehensive coverage for proj/location and api key precedence.COMMENT
Decorative Section Separators5 hits · 15 pts
SeverityFileLineSnippetContext
MEDIUMgoogle/genai/_gaos/_hooks/adapters.py40# ============================================================================COMMENT
MEDIUMgoogle/genai/_gaos/_hooks/adapters.py42# ============================================================================COMMENT
MEDIUMgoogle/genai/_gaos/_hooks/adapters.py54# ============================================================================COMMENT
MEDIUMgoogle/genai/_gaos/_hooks/adapters.py140# ============================================================================COMMENT
MEDIUMgoogle/genai/_gaos/_hooks/adapters.py142# ============================================================================COMMENT
Magic Placeholder Names3 hits · 12 pts
SeverityFileLineSnippetContext
HIGHREADME.md125export GEMINI_API_KEY='your-api-key'CODE
HIGHgoogle/genai/client.py299 `api_key="your-api-key"` or by defining `GOOGLE_API_KEY="your-api-key"` as anSTRING
HIGHdocs/_sources/index.rst.txt81 export GEMINI_API_KEY='your-api-key'CODE
Modern AI Meta-Vocabulary4 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUMgoogle/genai/_gaos/types/interactions/model.py37 # Our first hybrid reasoning model which supports a 1M token context window and has thinking budgets.COMMENT
MEDIUMgoogle/genai/_gaos/types/interactions/model.py53 # Our most cost-efficient model, optimized for high-volume agentic tasks, translation, and simple data processinCOMMENT
MEDIUMgoogle/genai/_gaos/types/interactions/model.py69 # Gemini 3.6 Flash - Our previous generation Flash model, balancing speed and multimodal capabilities across genCOMMENT
MEDIUMgoogle/genai/_gaos/types/interactions/model.py71 # Gemini 3.7 Flash - Our high-speed, efficient Flash model built for everyday coding, agentic tool use, and reliCOMMENT
Cross-Language Confusion1 hit · 11 pts
SeverityFileLineSnippetContext
HIGH⚡google/genai/_transformers.py632 # If there is only one type left after removing null, remove the anyOf field.COMMENT
Docstring Block Structure2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHgoogle/genai/types.py3186Converts a JSONSchema object to a Schema object. Note: Conversion of fields that are not included in the JSONSchemSTRING
HIGHgoogle/genai/_gaos/utils/annotations.py25 Recursively search for the discriminator attribute in a model. Args: model (Any): The model to search STRING
Redundant / Tautological Comments6 hits · 9 pts
SeverityFileLineSnippetContext
LOWgoogle/genai/_common.py324 # Check if the dict arguments are str and typing.AnyCOMMENT
LOWgoogle/genai/_common.py454 # Check if the next level of recursion for keys/values will exceed the depth limit.COMMENT
LOWgoogle/genai/_common.py862 # Check if the object has all of the Pydantic model's defined fields.COMMENT
LOWgoogle/genai/_common.py866 # Check if the Pydantic model has all of the object's defined fields.COMMENT
LOWgoogle/genai/_transformers.py141 # Check if prepending the collection identifier won't violate theCOMMENT
LOWgoogle/genai/tests/live/test_live.py756 # Check if the first message contains the VAD signalCOMMENT
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHpyproject.toml86# Auto-generated code in _gaos has type errors; ignore them but keep type infoCOMMENT
Overly Generic Function Names3 hits · 2 pts
SeverityFileLineSnippetContext
LOWgoogle/genai/tests/models/test_generate_content.py2216def test_function(client):STRING
LOWgoogle/genai/tests/transformers/test_t_tool.py57def test_function(client):CODE
LOWgoogle/genai/tests/transformers/test_t_tools.py59def test_function(client):CODE