Repository Analysis

googleapis/python-genai

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

27.7 Moderate AI signal View on GitHub

Analysis Overview

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).

27.7
Adjusted Score
27.7
Raw Score
100%
Time Factor
2026-08-28
Last Push
3.9K
Stars
Python
Language
168.5K
Lines of Code
572
Files
3.7K
Pattern Hits
2026-08-29
Scan Date
0.63
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

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.

No multi-scan history yet — run the scanner again to build trend data.

Severity Breakdown

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.

CRITICAL 2HIGH 360MEDIUM 34LOW 3294

Directory Score Breakdown

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.

Pattern Findings

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.

Cross-File Repetition351 hits · 1755 pts
SeverityFileLineSnippetContext
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/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/__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/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
HIGH…_gaos/types/interactions/codeexecutioncallarguments.py0code generated by speakeasy (https://speakeasy.com). do not edit.STRING
HIGH…ai/_gaos/types/interactions/googlesearchresultdelta.py0code generated by speakeasy (https://speakeasy.com). do not edit.STRING
HIGH…ogle/genai/_gaos/types/interactions/mediaprocessing.py0code generated by speakeasy (https://speakeasy.com). do not edit.STRING
HIGH…genai/_gaos/types/interactions/filesearchresultstep.py0code generated by speakeasy (https://speakeasy.com). do not edit.STRING
HIGHgoogle/genai/_gaos/types/interactions/placecitation.py0code generated by speakeasy (https://speakeasy.com). do not edit.STRING
HIGH…/_gaos/types/interactions/verbatimtranscriptionmode.py0code generated by speakeasy (https://speakeasy.com). do not edit.STRING
291 more matches not shown…
Hyper-Verbose Identifiers1119 hits · 995 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
LOWgoogle/genai/_extra_utils.py327def invoke_function_from_dict_args(CODE
LOWgoogle/genai/_extra_utils.py341async def invoke_function_from_dict_args_async(CODE
LOWgoogle/genai/_extra_utils.py355def 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.py208def convert_number_values_for_dict_function_call_args(CODE
LOWgoogle/genai/_extra_utils.py218def convert_number_values_for_function_call_args(CODE
LOWgoogle/genai/_extra_utils.py236def is_annotation_pydantic_model(annotation: Any) -> bool:CODE
LOWgoogle/genai/_extra_utils.py248def convert_if_exist_pydantic_model(CODE
LOWgoogle/genai/_extra_utils.py310def convert_argument_from_function(CODE
LOWgoogle/genai/_extra_utils.py390async def get_function_response_parts_async(CODE
LOWgoogle/genai/_extra_utils.py522def raise_error_for_afc_incompatible_config(config: Optional[types.GenerateContentConfig]CODE
LOWgoogle/genai/_extra_utils.py547def should_append_afc_history(CODE
LOWgoogle/genai/_extra_utils.py558def parse_config_for_mcp_usage(CODE
LOWgoogle/genai/_extra_utils.py579async def parse_config_for_mcp_sessions(CODE
LOWgoogle/genai/_extra_utils.py720def has_agent_platform_mcp_servers(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/local_tokenizer.py147 def _function_declaration_traverse(CODE
LOWgoogle/genai/live_music.py69 async def set_music_generation_config(CODE
LOWgoogle/genai/_common.py583 def _check_field_type_mismatches(cls, data: Any) -> Any:CODE
LOWgoogle/genai/_common.py691def encode_unserializable_types(data: dict[str, object]) -> dict[str, object]:CODE
LOWgoogle/genai/_common.py754def _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.py2497 def from_code_execution_result(CODE
LOWgoogle/genai/types.py3255 def normalize_json_schema_type(CODE
LOWgoogle/genai/types.py3281 def raise_error_if_cannot_convert(CODE
LOWgoogle/genai/types.py4832 def from_callable_with_api_option(CODE
LOWgoogle/genai/types.py19909 def _validate_mask_image_config(self, values: Any) -> Any:CODE
LOWgoogle/genai/types.py19971 def _validate_mask_image_config(self, values: Any) -> Any:CODE
LOWgoogle/genai/types.py20042 def _validate_mask_image_config(self, values: Any) -> Any:CODE
LOWgoogle/genai/types.py20113 def _validate_mask_image_config(self, values: Any) -> Any:CODE
LOWgoogle/genai/types.py20180 def _validate_mask_image_config(self, values: Any) -> Any:CODE
LOWgoogle/genai/types.py20239 def _validate_mask_image_config(self, values: Any) -> Any:CODE
LOWgoogle/genai/_mcp_utils.py68def agent_platform_to_gemini_tool(tool: McpTool) -> types.Tool:CODE
LOWgoogle/genai/_mcp_utils.py138def _filter_to_supported_schema(CODE
LOWgoogle/genai/_mcp_utils.py175async def _connect_agent_platform_mcp(api_client: Any, toolset_name: str) -> typing.AsyncIterator[Any]:CODE
LOWgoogle/genai/_transformers.py638def _raise_for_unsupported_schema_type(origin: Any) -> None:CODE
LOWgoogle/genai/_transformers.py643def _raise_for_unsupported_mldev_properties(CODE
LOWgoogle/genai/_transformers.py527 def _append_accumulated_parts_as_content(CODE
LOWgoogle/genai/_transformers.py1070def t_embedding_batch_job_source(CODE
LOWgoogle/genai/_transformers.py1118def t_recv_batch_job_destination(dest: dict[str, Any]) -> dict[str, Any]:CODE
LOWgoogle/genai/_transformers.py1389def t_is_vertex_embed_content_model(model: str) -> bool:CODE
LOWgoogle/genai/operations.py144 def _fetch_predict_videos_operation(CODE
LOWgoogle/genai/operations.py401 async def _fetch_predict_videos_operation(CODE
LOWgoogle/genai/_api_client.py2544def get_token_from_credentials(CODE
1059 more matches not shown…
Unused Imports1233 hits · 924 pts
SeverityFileLineSnippetContext
LOWgoogle/genai/_extra_utils.py26CODE
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/_transformers.py18CODE
LOWgoogle/genai/_transformers.py29CODE
LOWgoogle/genai/live.py23CODE
LOWgoogle/genai/_api_client.py88CODE
LOWgoogle/genai/_adapters.py22CODE
LOWgoogle/genai/_adapters.py23CODE
LOWgoogle/genai/errors.py31CODE
LOWgoogle/genai/errors.py33CODE
LOWgoogle/genai/interactions.py17CODE
LOWgoogle/genai/interactions.py27CODE
LOWgoogle/genai/interactions.py29CODE
LOWgoogle/genai/interactions.py31CODE
LOWgoogle/genai/interactions.py33CODE
LOWgoogle/genai/interactions.py34CODE
LOWgoogle/genai/interactions.py35CODE
LOWgoogle/genai/interactions.py37CODE
LOWgoogle/genai/interactions.py37CODE
LOWgoogle/genai/interactions.py38CODE
LOWgoogle/genai/interactions.py44CODE
LOWgoogle/genai/interactions.py45CODE
LOWgoogle/genai/interactions.py48CODE
LOWgoogle/genai/interactions.py51CODE
LOWgoogle/genai/interactions.py52CODE
LOWgoogle/genai/interactions.py52CODE
LOWgoogle/genai/interactions.py53CODE
LOWgoogle/genai/interactions.py54CODE
LOWgoogle/genai/interactions.py55CODE
LOWgoogle/genai/_gaos/sdk.py41CODE
LOWgoogle/genai/_gaos/sdk.py41CODE
LOWgoogle/genai/_gaos/sdk.py42CODE
LOWgoogle/genai/_gaos/sdk.py42CODE
LOWgoogle/genai/_gaos/sdk.py43CODE
LOWgoogle/genai/_gaos/sdk.py43CODE
LOWgoogle/genai/_gaos/sdk.py44CODE
LOWgoogle/genai/_gaos/sdk.py44CODE
LOWgoogle/genai/_gaos/sdk.py45CODE
LOWgoogle/genai/_gaos/sdk.py45CODE
LOWgoogle/genai/_gaos/__init__.py19CODE
LOWgoogle/genai/_gaos/__init__.py26CODE
LOWgoogle/genai/_gaos/__init__.py27CODE
LOWgoogle/genai/_gaos/__init__.py28CODE
LOWgoogle/genai/_gaos/google_genai.py24CODE
LOWgoogle/genai/_gaos/google_genai.py48CODE
LOWgoogle/genai/_gaos/types/security.py19CODE
LOWgoogle/genai/_gaos/types/__init__.py19CODE
LOWgoogle/genai/_gaos/types/__init__.py19CODE
LOWgoogle/genai/_gaos/types/__init__.py19CODE
LOWgoogle/genai/_gaos/types/__init__.py19CODE
1173 more matches not shown…
Over-Commented Block525 hits · 518 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/_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/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/_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/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/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/sdkconfiguration.py1# Copyright 2026 Google LLCCOMMENT
LOWgoogle/genai/_gaos/_version.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/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
LOWgoogle/genai/_gaos/types/__init__.py1# Copyright 2026 Google LLCCOMMENT
LOWgoogle/genai/_gaos/types/base64fileinput.py1# Copyright 2026 Google LLCCOMMENT
LOW…nai/_gaos/types/interactions/antigravityagentconfig.py1# Copyright 2026 Google LLCCOMMENT
LOW…ai/_gaos/types/interactions/deepresearchagentconfig.py1# Copyright 2026 Google LLCCOMMENT
LOW…genai/_gaos/types/interactions/retrievalresultdelta.py1# Copyright 2026 Google LLCCOMMENT
LOWgoogle/genai/_gaos/types/interactions/filecitation.py1# Copyright 2026 Google LLCCOMMENT
LOW…e/genai/_gaos/types/interactions/retrievalcalldelta.py1# Copyright 2026 Google LLCCOMMENT
LOWgoogle/genai/_gaos/types/interactions/documentdelta.py1# Copyright 2026 Google LLCCOMMENT
LOWgoogle/genai/_gaos/types/interactions/ragstoreconfig.py1# Copyright 2026 Google LLCCOMMENT
465 more matches not shown…
Excessive Try-Catch Wrapping159 hits · 96 pts
SeverityFileLineSnippetContext
LOWgoogle/genai/_extra_utils.py333 except Exception as e:CODE
LOWgoogle/genai/_extra_utils.py347 except Exception as e:CODE
LOWgoogle/genai/_extra_utils.py381 except Exception as e: # pylint: disable=broad-exceptCODE
LOWgoogle/genai/_extra_utils.py438 except Exception as e: # pylint: disable=broad-exceptCODE
LOWgoogle/genai/client.py237 except Exception:CODE
LOWgoogle/genai/client.py607 except Exception:CODE
MEDIUMgoogle/genai/client.py234def __del__(self) -> None:CODE
MEDIUMgoogle/genai/client.py604def __del__(self) -> None:CODE
LOWgoogle/genai/_common.py622 except Exception:CODE
MEDIUMgoogle/genai/_common.py619def __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.py4928 except Exception as e:CODE
LOWgoogle/genai/types.py4995 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.py309def __anext__(self) -> Any:CODE
MEDIUMgoogle/genai/_api_client.py626def __del__(self) -> None:CODE
MEDIUMgoogle/genai/_api_client.py925def _use_google_auth_async(self) -> bool:CODE
LOWgoogle/genai/_api_client.py2535 except Exception: # pylint: disable=broad-exceptCODE
LOWgoogle/genai/_api_client.py2540 except Exception: # pylint: disable=broad-exceptCODE
LOWgoogle/genai/_api_client.py610 except Exception:CODE
LOWgoogle/genai/_api_client.py614 except Exception:CODE
LOWgoogle/genai/_api_client.py630 except Exception:CODE
LOWgoogle/genai/_api_client.py634 except Exception:CODE
LOWgoogle/genai/_api_client.py1107 except Exception as e: # pylint: disable=broad-exceptCODE
LOWgoogle/genai/_api_client.py1174 except Exception as e: # pylint: disable=broad-exceptCODE
LOWgoogle/genai/_api_client.py1245 except Exception as e: # pylint: disable=broad-exceptCODE
LOWgoogle/genai/_gaos/files.py167 except Exception as parse_exc_:STRING
LOWgoogle/genai/_gaos/files.py192 except Exception as parse_exc_:STRING
LOWgoogle/genai/_gaos/files.py353 except Exception as parse_exc_:STRING
LOWgoogle/genai/_gaos/files.py380 except Exception as parse_exc_:STRING
LOWgoogle/genai/_gaos/httpclient.py124 except Exception:CODE
LOWgoogle/genai/_gaos/triggers.py165 except Exception as parse_exc_:STRING
LOWgoogle/genai/_gaos/triggers.py190 except Exception as parse_exc_:STRING
LOWgoogle/genai/_gaos/triggers.py348 except Exception as parse_exc_:STRING
LOWgoogle/genai/_gaos/triggers.py373 except Exception as parse_exc_:STRING
LOWgoogle/genai/_gaos/triggers.py498 except Exception as parse_exc_:STRING
LOWgoogle/genai/_gaos/triggers.py523 except Exception as parse_exc_:STRING
LOWgoogle/genai/_gaos/triggers.py648 except Exception as parse_exc_:STRING
LOWgoogle/genai/_gaos/triggers.py673 except Exception as parse_exc_:STRING
LOWgoogle/genai/_gaos/triggers.py816 except Exception as parse_exc_:STRING
LOWgoogle/genai/_gaos/triggers.py841 except Exception as parse_exc_:STRING
LOWgoogle/genai/_gaos/triggers.py972 except Exception as parse_exc_:STRING
LOWgoogle/genai/_gaos/triggers.py997 except Exception as parse_exc_:STRING
LOWgoogle/genai/_gaos/triggers.py1122 except Exception as parse_exc_:STRING
LOWgoogle/genai/_gaos/triggers.py1147 except Exception as parse_exc_:STRING
LOWgoogle/genai/_gaos/triggers.py1334 except Exception as parse_exc_:STRING
LOWgoogle/genai/_gaos/triggers.py1361 except Exception as parse_exc_:STRING
LOWgoogle/genai/_gaos/triggers.py1520 except Exception as parse_exc_:STRING
LOWgoogle/genai/_gaos/triggers.py1547 except Exception as parse_exc_:STRING
LOWgoogle/genai/_gaos/triggers.py1673 except Exception as parse_exc_:STRING
LOWgoogle/genai/_gaos/triggers.py1700 except Exception as parse_exc_:STRING
LOWgoogle/genai/_gaos/triggers.py1826 except Exception as parse_exc_:STRING
LOWgoogle/genai/_gaos/triggers.py1853 except Exception as parse_exc_:STRING
LOWgoogle/genai/_gaos/triggers.py1997 except Exception as parse_exc_:STRING
LOWgoogle/genai/_gaos/triggers.py2024 except Exception as parse_exc_:STRING
LOWgoogle/genai/_gaos/triggers.py2156 except Exception as parse_exc_:STRING
LOWgoogle/genai/_gaos/triggers.py2183 except Exception as parse_exc_:STRING
LOWgoogle/genai/_gaos/triggers.py2309 except Exception as parse_exc_:STRING
99 more matches not shown…
Deep Nesting107 hits · 90 pts
SeverityFileLineSnippetContext
LOWgoogle/genai/_extra_utils.py172CODE
LOWgoogle/genai/_extra_utils.py248CODE
LOWgoogle/genai/_extra_utils.py355CODE
LOWgoogle/genai/_extra_utils.py390CODE
LOWgoogle/genai/_extra_utils.py579CODE
LOWgoogle/genai/_extra_utils.py736CODE
LOWgoogle/genai/models.py6316CODE
LOWgoogle/genai/models.py6695CODE
LOWgoogle/genai/models.py8289CODE
LOWgoogle/genai/models.py8501CODE
LOWgoogle/genai/models.py9018CODE
LOWgoogle/genai/models.py8580CODE
LOWgoogle/genai/_common.py54CODE
LOWgoogle/genai/_common.py128CODE
LOWgoogle/genai/_common.py170CODE
LOWgoogle/genai/_common.py206CODE
LOWgoogle/genai/_common.py329CODE
LOWgoogle/genai/_common.py373CODE
LOWgoogle/genai/_common.py499CODE
LOWgoogle/genai/_common.py691CODE
LOWgoogle/genai/_automatic_function_calling_util.py142CODE
LOWgoogle/genai/_automatic_function_calling_util.py345CODE
LOWgoogle/genai/tokens.py44CODE
LOWgoogle/genai/types.py2325CODE
LOWgoogle/genai/types.py3015CODE
LOWgoogle/genai/types.py3116CODE
LOWgoogle/genai/types.py4832CODE
LOWgoogle/genai/types.py8791CODE
LOWgoogle/genai/types.py22824CODE
LOWgoogle/genai/types.py3064CODE
LOWgoogle/genai/types.py3325CODE
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.py1149CODE
LOWgoogle/genai/live.py584CODE
LOWgoogle/genai/live.py903CODE
LOWgoogle/genai/_api_client.py272CODE
LOWgoogle/genai/_api_client.py369CODE
LOWgoogle/genai/_api_client.py424CODE
LOWgoogle/genai/_api_client.py644CODE
LOWgoogle/genai/_api_client.py969CODE
LOWgoogle/genai/_api_client.py1070CODE
LOWgoogle/genai/_api_client.py1149CODE
LOWgoogle/genai/_api_client.py1214CODE
LOWgoogle/genai/_api_client.py1539CODE
LOWgoogle/genai/_api_client.py2142CODE
LOWgoogle/genai/_api_client.py2367CODE
LOWgoogle/genai/_api_client.py2504CODE
LOWgoogle/genai/chats.py65CODE
47 more matches not shown…
Modern Structural Boilerplate49 hits · 49 pts
SeverityFileLineSnippetContext
LOWgoogle/genai/local_tokenizer.py31__all__ = [CODE
LOWgoogle/genai/__init__.py28__all__ = ['Client', 'interactions', 'types']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/interactions.py113__all__ = [CODE
LOWgoogle/genai/_gaos/types/__init__.py37__all__ = [CODE
LOWgoogle/genai/_gaos/types/interactions/__init__.py436__all__ = [CODE
LOWgoogle/genai/_gaos/types/triggers/__init__.py46__all__ = [CODE
LOWgoogle/genai/_gaos/types/environments/__init__.py49__all__ = [CODE
LOWgoogle/genai/_gaos/types/agents/__init__.py35__all__ = [CODE
LOWgoogle/genai/_gaos/types/webhooks/__init__.py52__all__ = [CODE
LOWgoogle/genai/_gaos/resources/__init__.py25__all__ = ["agents", "environments", "interactions", "triggers", "webhooks"]CODE
LOWgoogle/genai/_gaos/resources/interactions/__init__.py136__all__ = [CODE
LOW…ai/_gaos/resources/interactions/errorevent/__init__.py21__all__ = ["Error"]CODE
LOW…/_gaos/resources/interactions/videocontent/__init__.py21__all__ = ["Static"]CODE
LOW…esources/interactions/googlesearchcallstep/__init__.py23__all__ = ["Arguments"]CODE
LOW…os/resources/interactions/googlemapsresult/__init__.py24__all__ = ["Place", "place"]CODE
LOW…ources/interactions/googlemapsresult/place/__init__.py21__all__ = ["ReviewSnippet"]CODE
LOW…/resources/interactions/retrievalcalldelta/__init__.py23__all__ = ["Arguments"]CODE
LOW…_gaos/resources/interactions/placecitation/__init__.py21__all__ = ["ReviewSnippet"]CODE
LOW…sources/interactions/codemenderagentconfig/__init__.py25__all__ = ["FindRequest", "FixRequest", "SessionConfig", "findrequest", "fixrequest"]CODE
LOW…ractions/codemenderagentconfig/findrequest/__init__.py21__all__ = ["SourceFile"]CODE
LOW…eractions/codemenderagentconfig/fixrequest/__init__.py21__all__ = ["SourceFile"]CODE
LOW…/resources/interactions/urlcontextcallstep/__init__.py23__all__ = ["Arguments"]CODE
LOW…sources/interactions/codeexecutioncallstep/__init__.py23__all__ = ["Arguments"]CODE
LOW…ources/interactions/googlesearchresultstep/__init__.py21__all__ = ["Result"]CODE
LOW…/resources/interactions/googlemapscallstep/__init__.py23__all__ = ["Arguments"]CODE
LOW…e/genai/_gaos/resources/interactions/usage/__init__.py27__all__ = [CODE
LOW…i/_gaos/resources/interactions/environment/__init__.py22__all__ = ["Allowlist", "Source"]CODE
LOW…esources/interactions/googlemapsresultstep/__init__.py22__all__ = ["Result", "result"]CODE
LOW…s/interactions/googlemapsresultstep/result/__init__.py24__all__ = ["Place", "place"]CODE
LOW…ractions/googlemapsresultstep/result/place/__init__.py21__all__ = ["ReviewSnippet"]CODE
LOW…nai/_gaos/resources/interactions/stepdelta/__init__.py79__all__ = [CODE
LOW…le/genai/_gaos/resources/interactions/tool/__init__.py29__all__ = [CODE
LOW…gaos/resources/interactions/tool/retrieval/__init__.py21__all__ = ["VertexAISearchConfig"]CODE
LOW…s/resources/interactions/transcriptionmode/__init__.py26__all__ = ["Smart", "Verbatim"]CODE
LOW…esources/interactions/urlcontextresultstep/__init__.py21__all__ = ["Result"]CODE
LOWgoogle/genai/_gaos/resources/triggers/__init__.py41__all__ = [CODE
LOWgoogle/genai/_gaos/resources/environments/__init__.py32__all__ = [CODE
LOW…rces/environments/createenvironmentrequest/__init__.py21__all__ = ["Allowlist"]CODE
LOW…i/_gaos/resources/environments/environment/__init__.py21__all__ = ["Allowlist"]CODE
LOWgoogle/genai/_gaos/resources/agents/__init__.py28__all__ = [CODE
LOWgoogle/genai/_gaos/resources/webhooks/__init__.py44__all__ = [CODE
LOWgoogle/genai/_gaos/utils/__init__.py81__all__ = [CODE
LOWgoogle/genai/_gaos/utils/response_helpers.py681def _set_response_mode(kwargs: Dict[str, Any], mode: str, header_kwarg: str) -> None:CODE
LOWgoogle/genai/_gaos/models/__init__.py194__all__ = [CODE
LOWgoogle/genai/_gaos/models/internal/__init__.py26__all__ = ["Globals", "GlobalsTypedDict"]CODE
LOWgoogle/genai/_gaos/lib/compat_errors.py585__all__ = [CODE
LOWgoogle/genai/_gaos/errors/__init__.py53__all__ = [CODE
Self-Referential Comments11 hits · 32 pts
SeverityFileLineSnippetContext
MEDIUMgoogle/genai/_extra_utils.py565 # Create a copy of the config model with the tools field cleared since someCOMMENT
MEDIUMgoogle/genai/_extra_utils.py594 # Create a copy of the config model with the tools field cleared as they willCOMMENT
MEDIUMgoogle/genai/_common.py670 # Creating a enum instance based on the valueCOMMENT
MEDIUMgoogle/genai/types.py18325 """This class is experimental and may change in future versions.STRING
MEDIUMgoogle/genai/types.py18341 """This class is experimental and may change in future versions.STRING
MEDIUMgoogle/genai/live.py1173 # Create a copy of the config model with the tools field cleared as they willCOMMENT
MEDIUMgoogle/genai/_gaos/utils/enums.py105 # Create a validator that only accepts known enum values (for strict mode)COMMENT
MEDIUMgoogle/genai/_gaos/utils/enums.py112 # Create a lax validator that accepts unknown valuesCOMMENT
MEDIUMgoogle/genai/_gaos/_hooks/registration.py20# This file is only ever generated once on the first generation and then is free to be modified.COMMENT
MEDIUMgoogle/genai/_gaos/_hooks/asyncregistration.py29# 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
AI Structural Patterns32 hits · 32 pts
SeverityFileLineSnippetContext
LOWgoogle/genai/file_search_stores.py916CODE
LOWgoogle/genai/file_search_stores.py1545CODE
LOWgoogle/genai/models.py6557CODE
LOWgoogle/genai/models.py8942CODE
LOWgoogle/genai/client.py325CODE
LOWgoogle/genai/types.py2325CODE
LOWgoogle/genai/_replay_api_client.py157CODE
LOWgoogle/genai/_replay_api_client.py296CODE
LOWgoogle/genai/_gaos/httpclient.py42CODE
LOWgoogle/genai/_gaos/httpclient.py81CODE
LOWgoogle/genai/_gaos/sdk.py72CODE
LOWgoogle/genai/_gaos/sdk.py283CODE
LOWgoogle/genai/_gaos/triggers.py198CODE
LOWgoogle/genai/_gaos/triggers.py1370CODE
LOWgoogle/genai/_gaos/agents.py221CODE
LOWgoogle/genai/_gaos/agents.py1036CODE
LOWgoogle/genai/_gaos/interactions.py64CODE
LOWgoogle/genai/_gaos/interactions.py119CODE
LOWgoogle/genai/_gaos/interactions.py174CODE
LOWgoogle/genai/_gaos/interactions.py229CODE
LOWgoogle/genai/_gaos/interactions.py1522CODE
LOWgoogle/genai/_gaos/interactions.py1577CODE
LOWgoogle/genai/_gaos/interactions.py1632CODE
LOWgoogle/genai/_gaos/interactions.py1687CODE
LOWgoogle/genai/_gaos/webhooks.py679CODE
LOWgoogle/genai/_gaos/webhooks.py1911CODE
LOWgoogle/genai/_gaos/basesdk.py84CODE
LOWgoogle/genai/_gaos/basesdk.py132CODE
LOWgoogle/genai/_gaos/basesdk.py351CODE
LOWgoogle/genai/_gaos/basesdk.py399CODE
LOWgoogle/genai/_gaos/types/basemodel.py36CODE
LOWgoogle/genai/_gaos/types/basemodel.py75CODE
Modern AI Meta-Vocabulary5 hits · 21 pts
SeverityFileLineSnippetContext
MEDIUMgoogle/genai/_gaos/types/interactions/model.py26 # Our first hybrid reasoning model which supports a 1M token context window and has thinking budgets.COMMENT
MEDIUMgoogle/genai/_gaos/types/interactions/model.py50 # Our most cost-efficient model, optimized for high-volume agentic tasks, translation, and simple data processinCOMMENT
MEDIUMgoogle/genai/_gaos/types/interactions/model.py58 # Our most intelligent model for sustained frontier performance in agentic and coding tasks.COMMENT
MEDIUMgoogle/genai/_gaos/types/interactions/model.py60 # Our most intelligent model for sustained frontier performance in agentic and coding tasks.COMMENT
MEDIUMgoogle/genai/_gaos/types/interactions/model.py62 # Our most intelligent model for sustained frontier performance in agentic and coding tasks.COMMENT
Hallucination Indicators2 hits · 20 pts
SeverityFileLineSnippetContext
CRITICALgoogle/genai/live.py943 'google.genai.client.aio.live.connect() does not support'CODE
CRITICALgoogle/genai/tests/gaos/test_environments_lifecycle.py304 raw_files_res = await client.aio.environments.with_raw_response.files.list(CODE
Cross-Language Confusion3 hits · 19 pts
SeverityFileLineSnippetContext
HIGHgoogle/genai/_transformers.py632 # If there is only one type left after removing null, remove the anyOf field.COMMENT
HIGHgoogle/genai/_gaos/interactions.py668 "source": 'import com.google.genai.Client;\nimport com.google.genai.gaos.models.interactions.AgeSTRING
HIGHgoogle/genai/_gaos/interactions.py2126 "source": 'import com.google.genai.Client;\nimport com.google.genai.gaos.models.interactions.AgeSTRING
Fake / Example Data18 hits · 18 pts
SeverityFileLineSnippetContext
LOWgoogle/genai/types.py8853 parsed = {'placeholder': json.loads(result_text)}CODE
LOWgoogle/genai/types.py8886 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.py34 api_key="placeholder",CODE
LOWgoogle/genai/tests/interactions/test_integration.py61 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
AI Slop Vocabulary8 hits · 18 pts
SeverityFileLineSnippetContext
MEDIUMgoogle/genai/types.py4433 description="""Optional. Currently only supported for Gemini Multimodal Live API. In Gemini Multimodal Live API, iCODE
LOWgoogle/genai/types.py8865 # want the result converted to. So just return json.COMMENT
MEDIUMgoogle/genai/types.py4460 """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.py28 # 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.py39# ============================================================================COMMENT
MEDIUMgoogle/genai/_gaos/_hooks/adapters.py41# ============================================================================COMMENT
MEDIUMgoogle/genai/_gaos/_hooks/adapters.py53# ============================================================================COMMENT
MEDIUMgoogle/genai/_gaos/_hooks/adapters.py139# ============================================================================COMMENT
MEDIUMgoogle/genai/_gaos/_hooks/adapters.py141# ============================================================================COMMENT
Verbosity Indicators24 hits · 14 pts
SeverityFileLineSnippetContext
LOWgoogle/genai/_gaos/agents.py404 "source": '# Step 1: Set up the environment interactively\nRESPONSE=$(curl -s -X POST https://geSTRING
LOWgoogle/genai/_gaos/agents.py409 "source": 'import uuid\nfrom google import genai\n\nclient = genai.Client()\n\n# Step 1: Set up STRING
LOWgoogle/genai/_gaos/agents.py414 "source": "import {GoogleGenAI} from '@google/genai';\n\nconst ai = new GoogleGenAI({});\n\n// SSTRING
LOWgoogle/genai/_gaos/agents.py419 "source": 'import com.google.genai.Client;\nimport com.google.genai.gaos.models.agents.Agent;\niSTRING
LOWgoogle/genai/_gaos/agents.py1219 "source": '# Step 1: Set up the environment interactively\nRESPONSE=$(curl -s -X POST https://geSTRING
LOWgoogle/genai/_gaos/agents.py1224 "source": 'import uuid\nfrom google import genai\n\nclient = genai.Client()\n\n# Step 1: Set up STRING
LOWgoogle/genai/_gaos/agents.py1229 "source": "import {GoogleGenAI} from '@google/genai';\n\nconst ai = new GoogleGenAI({});\n\n// SSTRING
LOWgoogle/genai/_gaos/agents.py1234 "source": 'import com.google.genai.Client;\nimport com.google.genai.gaos.models.agents.Agent;\niSTRING
LOWgoogle/genai/_gaos/interactions.py653 "source": '# Step 1: Create an interaction with a fresh remote environment.\nRESPONSE=$(curl -s STRING
LOWgoogle/genai/_gaos/interactions.py658 "source": 'from google import genai\n\nclient = genai.Client()\n\n# Step 1: Create an interactioSTRING
LOWgoogle/genai/_gaos/interactions.py663 "source": "import {GoogleGenAI} from '@google/genai';\n\nconst ai = new GoogleGenAI({});\n\n// SSTRING
LOWgoogle/genai/_gaos/interactions.py668 "source": 'import com.google.genai.Client;\nimport com.google.genai.gaos.models.interactions.AgeSTRING
LOWgoogle/genai/_gaos/interactions.py693 "source": '# Step 1: Create a custom agent.\ncurl -X POST https://generativelanguage.googleapis.STRING
LOWgoogle/genai/_gaos/interactions.py698 "source": 'import uuid\nfrom google import genai\n\nclient = genai.Client()\n\n# Step 1: Create STRING
LOWgoogle/genai/_gaos/interactions.py703 "source": "import {GoogleGenAI} from '@google/genai';\n\nconst ai = new GoogleGenAI({});\n\n// SSTRING
LOWgoogle/genai/_gaos/interactions.py708 "source": 'import com.google.genai.Client;\nimport com.google.genai.gaos.models.agents.Agent;\niSTRING
LOWgoogle/genai/_gaos/interactions.py2111 "source": '# Step 1: Create an interaction with a fresh remote environment.\nRESPONSE=$(curl -s STRING
LOWgoogle/genai/_gaos/interactions.py2116 "source": 'from google import genai\n\nclient = genai.Client()\n\n# Step 1: Create an interactioSTRING
LOWgoogle/genai/_gaos/interactions.py2121 "source": "import {GoogleGenAI} from '@google/genai';\n\nconst ai = new GoogleGenAI({});\n\n// SSTRING
LOWgoogle/genai/_gaos/interactions.py2126 "source": 'import com.google.genai.Client;\nimport com.google.genai.gaos.models.interactions.AgeSTRING
LOWgoogle/genai/_gaos/interactions.py2151 "source": '# Step 1: Create a custom agent.\ncurl -X POST https://generativelanguage.googleapis.STRING
LOWgoogle/genai/_gaos/interactions.py2156 "source": 'import uuid\nfrom google import genai\n\nclient = genai.Client()\n\n# Step 1: Create STRING
LOWgoogle/genai/_gaos/interactions.py2161 "source": "import {GoogleGenAI} from '@google/genai';\n\nconst ai = new GoogleGenAI({});\n\n// SSTRING
LOWgoogle/genai/_gaos/interactions.py2166 "source": 'import com.google.genai.Client;\nimport com.google.genai.gaos.models.agents.Agent;\niSTRING
Structural Annotation Overuse24 hits · 14 pts
SeverityFileLineSnippetContext
LOWgoogle/genai/_gaos/agents.py404 "source": '# Step 1: Set up the environment interactively\nRESPONSE=$(curl -s -X POST https://geSTRING
LOWgoogle/genai/_gaos/agents.py409 "source": 'import uuid\nfrom google import genai\n\nclient = genai.Client()\n\n# Step 1: Set up STRING
LOWgoogle/genai/_gaos/agents.py414 "source": "import {GoogleGenAI} from '@google/genai';\n\nconst ai = new GoogleGenAI({});\n\n// SSTRING
LOWgoogle/genai/_gaos/agents.py419 "source": 'import com.google.genai.Client;\nimport com.google.genai.gaos.models.agents.Agent;\niSTRING
LOWgoogle/genai/_gaos/agents.py1219 "source": '# Step 1: Set up the environment interactively\nRESPONSE=$(curl -s -X POST https://geSTRING
LOWgoogle/genai/_gaos/agents.py1224 "source": 'import uuid\nfrom google import genai\n\nclient = genai.Client()\n\n# Step 1: Set up STRING
LOWgoogle/genai/_gaos/agents.py1229 "source": "import {GoogleGenAI} from '@google/genai';\n\nconst ai = new GoogleGenAI({});\n\n// SSTRING
LOWgoogle/genai/_gaos/agents.py1234 "source": 'import com.google.genai.Client;\nimport com.google.genai.gaos.models.agents.Agent;\niSTRING
LOWgoogle/genai/_gaos/interactions.py653 "source": '# Step 1: Create an interaction with a fresh remote environment.\nRESPONSE=$(curl -s STRING
LOWgoogle/genai/_gaos/interactions.py658 "source": 'from google import genai\n\nclient = genai.Client()\n\n# Step 1: Create an interactioSTRING
LOWgoogle/genai/_gaos/interactions.py663 "source": "import {GoogleGenAI} from '@google/genai';\n\nconst ai = new GoogleGenAI({});\n\n// SSTRING
LOWgoogle/genai/_gaos/interactions.py668 "source": 'import com.google.genai.Client;\nimport com.google.genai.gaos.models.interactions.AgeSTRING
LOWgoogle/genai/_gaos/interactions.py693 "source": '# Step 1: Create a custom agent.\ncurl -X POST https://generativelanguage.googleapis.STRING
LOWgoogle/genai/_gaos/interactions.py698 "source": 'import uuid\nfrom google import genai\n\nclient = genai.Client()\n\n# Step 1: Create STRING
LOWgoogle/genai/_gaos/interactions.py703 "source": "import {GoogleGenAI} from '@google/genai';\n\nconst ai = new GoogleGenAI({});\n\n// SSTRING
LOWgoogle/genai/_gaos/interactions.py708 "source": 'import com.google.genai.Client;\nimport com.google.genai.gaos.models.agents.Agent;\niSTRING
LOWgoogle/genai/_gaos/interactions.py2111 "source": '# Step 1: Create an interaction with a fresh remote environment.\nRESPONSE=$(curl -s STRING
LOWgoogle/genai/_gaos/interactions.py2116 "source": 'from google import genai\n\nclient = genai.Client()\n\n# Step 1: Create an interactioSTRING
LOWgoogle/genai/_gaos/interactions.py2121 "source": "import {GoogleGenAI} from '@google/genai';\n\nconst ai = new GoogleGenAI({});\n\n// SSTRING
LOWgoogle/genai/_gaos/interactions.py2126 "source": 'import com.google.genai.Client;\nimport com.google.genai.gaos.models.interactions.AgeSTRING
LOWgoogle/genai/_gaos/interactions.py2151 "source": '# Step 1: Create a custom agent.\ncurl -X POST https://generativelanguage.googleapis.STRING
LOWgoogle/genai/_gaos/interactions.py2156 "source": 'import uuid\nfrom google import genai\n\nclient = genai.Client()\n\n# Step 1: Create STRING
LOWgoogle/genai/_gaos/interactions.py2161 "source": "import {GoogleGenAI} from '@google/genai';\n\nconst ai = new GoogleGenAI({});\n\n// SSTRING
LOWgoogle/genai/_gaos/interactions.py2166 "source": 'import com.google.genai.Client;\nimport com.google.genai.gaos.models.agents.Agent;\niSTRING
Magic Placeholder Names3 hits · 12 pts
SeverityFileLineSnippetContext
HIGHREADME.md135export GEMINI_API_KEY='your-api-key'CODE
HIGHgoogle/genai/client.py266 `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
Docstring Block Structure2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHgoogle/genai/types.py3125Converts a JSONSchema object to a Schema object. Note: Conversion of fields that are not included in the JSONSchemSTRING
HIGHgoogle/genai/_gaos/utils/annotations.py24 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.py446 # Check if the next level of recursion for keys/values will exceed the depth limit.COMMENT
LOWgoogle/genai/_common.py854 # Check if the object has all of the Pydantic model's defined fields.COMMENT
LOWgoogle/genai/_common.py858 # 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.py651 # 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.py2219def 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