Google Gen AI Python SDK provides an interface for developers to integrate Google's generative models into their Python applications.
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.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 2006 finding(s).
Are imports declared and package/API names verified? 1543 finding(s).
Are wrappers, guards, and repeated structures necessary? 2097 finding(s).
Which changes need focused human review? 4371 finding(s).
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.
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.
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.
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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | README.md | 0 | returns the current weather. args: location: the city and state, e.g. san francisco, ca. | STRING |
| HIGH | docs/_sources/index.rst.txt | 0 | returns 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.py | 0 | returns the current weather. args: location: the city and state, e.g. san francisco, ca. | STRING |
| HIGH | google/genai/types.py | 0 | the `status` type defines a logical error model that is suitable for different programming environments, including rest | STRING |
| HIGH | …ogle/genai/_gaos/types/interactions/modeloutputstep.py | 0 | the `status` type defines a logical error model that is suitable for different programming environments, including rest | STRING |
| HIGH | google/genai/_gaos/types/interactions/status.py | 0 | the `status` type defines a logical error model that is suitable for different programming environments, including rest | STRING |
| HIGH | google/genai/_gaos/files.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | google/genai/_gaos/httpclient.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | google/genai/_gaos/sdk.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | google/genai/_gaos/triggers.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | google/genai/_gaos/_internal.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | google/genai/_gaos/sdkconfiguration.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | google/genai/_gaos/_version.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | google/genai/_gaos/credentials.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | google/genai/_gaos/__init__.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | google/genai/_gaos/agents.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | google/genai/_gaos/voices.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | google/genai/_gaos/environments.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | google/genai/_gaos/interactions.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | google/genai/_gaos/webhooks.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | google/genai/_gaos/basesdk.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | google/genai/_gaos/types/basemodel.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | google/genai/_gaos/types/security.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | google/genai/_gaos/types/__init__.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | google/genai/_gaos/types/base64fileinput.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | …nai/_gaos/types/interactions/antigravityagentconfig.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | …ai/_gaos/types/interactions/deepresearchagentconfig.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | …genai/_gaos/types/interactions/retrievalresultdelta.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | google/genai/_gaos/types/interactions/filecitation.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | …e/genai/_gaos/types/interactions/retrievalcalldelta.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | google/genai/_gaos/types/interactions/documentdelta.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | google/genai/_gaos/types/interactions/ragstoreconfig.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | google/genai/_gaos/types/interactions/speakerconfig.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | …e/genai/_gaos/types/interactions/textresponseformat.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | …/genai/_gaos/types/interactions/processingcalldelta.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | google/genai/_gaos/types/interactions/annotation.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | …genai/_gaos/types/interactions/vertexaisearchconfig.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | …nai/_gaos/types/interactions/createagentinteraction.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | …le/genai/_gaos/types/interactions/interactionsinput.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | google/genai/_gaos/types/interactions/argumentsdelta.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | …ogle/genai/_gaos/types/interactions/documentcontent.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | …le/genai/_gaos/types/interactions/transcriptionmode.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | …ypes/interactions/environmentnetworkegressallowlist.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | …e/genai/_gaos/types/interactions/dynamicagentconfig.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | google/genai/_gaos/types/interactions/textcontent.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | …/_gaos/types/interactions/interactioncompletedevent.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | google/genai/_gaos/types/interactions/stepstart.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | …ogle/genai/_gaos/types/interactions/mediaresolution.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | google/genai/_gaos/types/interactions/ragresource.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | google/genai/_gaos/types/interactions/thoughtstep.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | google/genai/_gaos/types/interactions/error.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | …/genai/_gaos/types/interactions/imageresponseformat.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | …nai/_gaos/types/interactions/parallelaisearchconfig.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | google/genai/_gaos/types/interactions/interaction.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | …/genai/_gaos/types/interactions/filesearchcalldelta.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | google/genai/_gaos/types/interactions/videodelta.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | google/genai/_gaos/types/interactions/fixrequest.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | …nai/_gaos/types/interactions/retrievalcallarguments.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | …/genai/_gaos/types/interactions/videoresponseformat.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| HIGH | …nai/_gaos/types/interactions/smarttranscriptionmode.py | 0 | code generated by speakeasy (https://speakeasy.com). do not edit. | STRING |
| 357 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | google/genai/_extra_utils.py | 26 | CODE | |
| LOW | google/genai/triggers.py | 17 | CODE | |
| LOW | google/genai/triggers.py | 20 | CODE | |
| LOW | google/genai/triggers.py | 23 | CODE | |
| LOW | google/genai/triggers.py | 26 | CODE | |
| LOW | google/genai/triggers.py | 27 | CODE | |
| LOW | google/genai/triggers.py | 27 | CODE | |
| LOW | google/genai/triggers.py | 31 | CODE | |
| LOW | google/genai/triggers.py | 31 | CODE | |
| LOW | google/genai/triggers.py | 35 | CODE | |
| LOW | google/genai/triggers.py | 35 | CODE | |
| LOW | google/genai/triggers.py | 39 | CODE | |
| LOW | google/genai/triggers.py | 39 | CODE | |
| LOW | google/genai/triggers.py | 43 | CODE | |
| LOW | google/genai/triggers.py | 43 | CODE | |
| LOW | google/genai/triggers.py | 47 | CODE | |
| LOW | google/genai/triggers.py | 47 | CODE | |
| LOW | google/genai/triggers.py | 47 | CODE | |
| LOW | google/genai/triggers.py | 47 | CODE | |
| LOW | google/genai/credentials.py | 17 | CODE | |
| LOW | google/genai/credentials.py | 20 | CODE | |
| LOW | google/genai/credentials.py | 21 | CODE | |
| LOW | google/genai/credentials.py | 22 | CODE | |
| LOW | google/genai/credentials.py | 25 | CODE | |
| LOW | google/genai/credentials.py | 28 | CODE | |
| LOW | google/genai/credentials.py | 28 | CODE | |
| LOW | google/genai/credentials.py | 28 | CODE | |
| LOW | google/genai/credentials.py | 28 | CODE | |
| LOW | google/genai/credentials.py | 34 | CODE | |
| LOW | google/genai/credentials.py | 34 | CODE | |
| LOW | google/genai/credentials.py | 34 | CODE | |
| LOW | google/genai/credentials.py | 34 | CODE | |
| LOW | google/genai/credentials.py | 40 | CODE | |
| LOW | google/genai/credentials.py | 40 | CODE | |
| LOW | google/genai/credentials.py | 44 | CODE | |
| LOW | google/genai/credentials.py | 44 | CODE | |
| LOW | google/genai/credentials.py | 48 | CODE | |
| LOW | google/genai/credentials.py | 51 | CODE | |
| LOW | google/genai/credentials.py | 51 | CODE | |
| LOW | google/genai/credentials.py | 55 | CODE | |
| LOW | google/genai/credentials.py | 55 | CODE | |
| LOW | google/genai/credentials.py | 59 | CODE | |
| LOW | google/genai/client.py | 16 | CODE | |
| LOW | google/genai/client.py | 26 | CODE | |
| LOW | google/genai/client.py | 40 | CODE | |
| LOW | google/genai/__init__.py | 21 | CODE | |
| LOW | google/genai/__init__.py | 23 | CODE | |
| LOW | google/genai/tokens.py | 20 | CODE | |
| LOW | google/genai/tokens.py | 20 | CODE | |
| LOW | google/genai/types.py | 28 | CODE | |
| LOW | google/genai/types.py | 28 | CODE | |
| LOW | google/genai/types.py | 51 | CODE | |
| LOW | google/genai/types.py | 69 | CODE | |
| LOW | google/genai/agents.py | 17 | CODE | |
| LOW | google/genai/agents.py | 20 | CODE | |
| LOW | google/genai/agents.py | 23 | CODE | |
| LOW | google/genai/agents.py | 23 | CODE | |
| LOW | google/genai/agents.py | 23 | CODE | |
| LOW | google/genai/agents.py | 23 | CODE | |
| LOW | google/genai/agents.py | 23 | CODE | |
| 1457 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | google/genai/_test_api_client.py | 25 | def test_request_streamed_non_blocking(mock_request, mock_build_request): | CODE |
| LOW | google/genai/_test_api_client.py | 105 | async def test_async_request_streamed_non_blocking( | CODE |
| LOW | google/genai/_local_tokenizer_loader.py | 217 | def get_huggingface_tokenizer(tokenizer_name: str) -> Any: | CODE |
| LOW⚡ | google/genai/_extra_utils.py | 326 | def invoke_function_from_dict_args( | CODE |
| LOW⚡ | google/genai/_extra_utils.py | 340 | async def invoke_function_from_dict_args_async( | CODE |
| LOW⚡ | google/genai/_extra_utils.py | 354 | def get_function_response_parts( | CODE |
| LOW | google/genai/_extra_utils.py | 59 | def _create_generate_content_config_model( | CODE |
| LOW | google/genai/_extra_utils.py | 120 | def find_afc_incompatible_tool_indexes( | CODE |
| LOW | google/genai/_extra_utils.py | 145 | def log_afc_incompatible_tools_warning( | CODE |
| LOW | google/genai/_extra_utils.py | 207 | def convert_number_values_for_dict_function_call_args( | CODE |
| LOW | google/genai/_extra_utils.py | 217 | def convert_number_values_for_function_call_args( | CODE |
| LOW | google/genai/_extra_utils.py | 235 | def is_annotation_pydantic_model(annotation: Any) -> bool: | CODE |
| LOW | google/genai/_extra_utils.py | 247 | def convert_if_exist_pydantic_model( | CODE |
| LOW | google/genai/_extra_utils.py | 309 | def convert_argument_from_function( | CODE |
| LOW | google/genai/_extra_utils.py | 389 | async def get_function_response_parts_async( | CODE |
| LOW | google/genai/_extra_utils.py | 521 | def raise_error_for_afc_incompatible_config(config: Optional[types.GenerateContentConfig] | CODE |
| LOW | google/genai/_extra_utils.py | 546 | def should_append_afc_history( | CODE |
| LOW | google/genai/_extra_utils.py | 557 | def parse_config_for_mcp_usage( | CODE |
| LOW | google/genai/_extra_utils.py | 578 | async def parse_config_for_mcp_sessions( | CODE |
| LOW | google/genai/_extra_utils.py | 719 | def has_agent_platform_mcp_servers( | CODE |
| LOW | google/genai/_extra_utils.py | 781 | def should_enable_automatic_continuation( | CODE |
| LOW | google/genai/_extra_utils.py | 798 | def is_resumable_finish_reason( | CODE |
| LOW | google/genai/_extra_utils.py | 826 | def clear_intermediate_finish_reason( | CODE |
| LOW | google/genai/_extra_utils.py | 846 | def should_continue_generation( | CODE |
| LOW | google/genai/_extra_utils.py | 860 | def prepare_continuation_config( | CODE |
| LOW | google/genai/_extra_utils.py | 899 | def merge_modality_token_counts( | CODE |
| LOW | google/genai/_extra_utils.py | 1022 | def merge_continuation_responses( | CODE |
| LOW | google/genai/file_search_stores.py | 608 | def _upload_to_file_search_store( | CODE |
| LOW | google/genai/file_search_stores.py | 789 | def upload_to_file_search_store( | CODE |
| LOW | google/genai/file_search_stores.py | 1238 | async def _upload_to_file_search_store( | CODE |
| LOW | google/genai/file_search_stores.py | 1419 | async def upload_to_file_search_store( | CODE |
| LOW | google/genai/models.py | 6111 | def _generate_content_with_continuation( | CODE |
| LOW | google/genai/models.py | 6137 | def _generate_content_stream_with_continuation( | CODE |
| LOW | google/genai/models.py | 8369 | async def _generate_content_with_continuation( | CODE |
| LOW | google/genai/models.py | 8395 | async def _generate_content_stream_with_continuation( | CODE |
| LOW | google/genai/local_tokenizer.py | 147 | def _function_declaration_traverse( | CODE |
| LOW | google/genai/live_music.py | 69 | async def set_music_generation_config( | CODE |
| LOW | google/genai/_common.py | 591 | def _check_field_type_mismatches(cls, data: Any) -> Any: | CODE |
| LOW | google/genai/_common.py | 699 | def encode_unserializable_types(data: dict[str, object]) -> dict[str, object]: | CODE |
| LOW | google/genai/_common.py | 762 | def _normalize_key_for_matching(key_str: str) -> str: | CODE |
| LOW | google/genai/_automatic_function_calling_util.py | 58 | def _raise_for_unsupported_param( | CODE |
| LOW | google/genai/_automatic_function_calling_util.py | 69 | def _handle_params_as_deferred_annotations(param: inspect.Parameter, annotation_under_future: dict[str, Any], name: str) | CODE |
| LOW | google/genai/_automatic_function_calling_util.py | 76 | def _add_unevaluated_items_to_fixed_len_tuple_schema( | CODE |
| LOW | google/genai/_automatic_function_calling_util.py | 91 | def _is_builtin_primitive_or_compound( | CODE |
| LOW | google/genai/_automatic_function_calling_util.py | 97 | def _is_default_value_compatible( | CODE |
| LOW | google/genai/_automatic_function_calling_util.py | 142 | def _parse_schema_from_parameter( # type: ignore[return] | CODE |
| LOW | google/genai/_automatic_function_calling_util.py | 330 | def _get_required_fields_from_json_schema(json_schema: dict[str, Any]) -> Optional[list[str]]: | CODE |
| LOW | google/genai/_automatic_function_calling_util.py | 345 | def parse_function_declaration_json_schema( | CODE |
| LOW | google/genai/tokens.py | 44 | def _convert_bidi_setup_to_token_setup( | CODE |
| LOW | google/genai/types.py | 2554 | def from_code_execution_result( | CODE |
| LOW | google/genai/types.py | 3316 | def normalize_json_schema_type( | CODE |
| LOW | google/genai/types.py | 3342 | def raise_error_if_cannot_convert( | CODE |
| LOW | google/genai/types.py | 4893 | def from_callable_with_api_option( | CODE |
| LOW | google/genai/types.py | 8607 | def initial_prompt_token_count(self) -> Optional[int]: | CODE |
| LOW | google/genai/types.py | 8907 | def initial_prompt_token_count(self) -> Optional[int]: | CODE |
| LOW | google/genai/types.py | 20059 | def _validate_mask_image_config(self, values: Any) -> Any: | CODE |
| LOW | google/genai/types.py | 20121 | def _validate_mask_image_config(self, values: Any) -> Any: | CODE |
| LOW | google/genai/types.py | 20192 | def _validate_mask_image_config(self, values: Any) -> Any: | CODE |
| LOW | google/genai/types.py | 20263 | def _validate_mask_image_config(self, values: Any) -> Any: | CODE |
| LOW | google/genai/types.py | 20330 | def _validate_mask_image_config(self, values: Any) -> Any: | CODE |
| 1173 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | google/genai/_local_tokenizer_loader.py | 99 | except OSError: | CODE |
| HIGH | google/genai/_local_tokenizer_loader.py | 130 | except OSError: | CODE |
| HIGH | google/genai/client.py | 270 | except Exception: | CODE |
| HIGH | google/genai/client.py | 666 | except Exception: | CODE |
| HIGH | google/genai/types.py | 141 | except ImportError: | CODE |
| HIGH | google/genai/types.py | 8945 | except pydantic.ValidationError: | CODE |
| HIGH | google/genai/types.py | 8947 | except json.decoder.JSONDecodeError: | CODE |
| HIGH | google/genai/types.py | 8964 | except ValueError: | CODE |
| HIGH | google/genai/types.py | 8979 | except json.decoder.JSONDecodeError: | CODE |
| HIGH | google/genai/types.py | 8981 | except pydantic.ValidationError: | CODE |
| HIGH | google/genai/types.py | 8995 | except json.decoder.JSONDecodeError: | CODE |
| HIGH | google/genai/types.py | 9012 | except json.decoder.JSONDecodeError: | CODE |
| HIGH | google/genai/types.py | 9014 | except pydantic.ValidationError: | CODE |
| HIGH | google/genai/types.py | 9022 | except json.decoder.JSONDecodeError: | CODE |
| HIGH | google/genai/_transformers.py | 971 | except ImportError: | CODE |
| HIGH | google/genai/_transformers.py | 1338 | except pydantic.ValidationError: | CODE |
| HIGH | google/genai/live.py | 546 | except asyncio.CancelledError: | CODE |
| HIGH | google/genai/_api_client.py | 76 | except ImportError: | CODE |
| HIGH | google/genai/_api_client.py | 629 | except Exception: | CODE |
| HIGH | google/genai/_api_client.py | 633 | except Exception: | CODE |
| HIGH | google/genai/_api_client.py | 649 | except Exception: | CODE |
| HIGH | google/genai/_api_client.py | 653 | except Exception: | CODE |
| HIGH | google/genai/_api_client.py | 2599 | except Exception: # pylint: disable=broad-except | CODE |
| HIGH | google/genai/_api_client.py | 2604 | except Exception: # pylint: disable=broad-except | CODE |
| HIGH | google/genai/_api_client.py | 912 | except ImportError: | CODE |
| HIGH | google/genai/_api_client.py | 1098 | except ImportError: | CODE |
| HIGH | google/genai/_api_client.py | 2586 | except RuntimeError: | CODE |
| HIGH | google/genai/_gaos/httpclient.py | 125 | except Exception: | CODE |
| HIGH | google/genai/_gaos/httpclient.py | 150 | except RuntimeError: | CODE |
| HIGH | google/genai/_gaos/_version.py | 34 | except importlib.metadata.PackageNotFoundError: | CODE |
| HIGH | google/genai/_gaos/types/security.py | 97 | except NameError: | CODE |
| HIGH | …nai/_gaos/types/interactions/antigravityagentconfig.py | 86 | except NameError: | CODE |
| HIGH | …ai/_gaos/types/interactions/deepresearchagentconfig.py | 109 | except NameError: | CODE |
| HIGH | …genai/_gaos/types/interactions/retrievalresultdelta.py | 82 | except NameError: | CODE |
| HIGH | google/genai/_gaos/types/interactions/filecitation.py | 122 | except NameError: | CODE |
| HIGH | …e/genai/_gaos/types/interactions/retrievalcalldelta.py | 97 | except NameError: | CODE |
| HIGH | google/genai/_gaos/types/interactions/documentdelta.py | 77 | except NameError: | CODE |
| HIGH | …e/genai/_gaos/types/interactions/textresponseformat.py | 87 | except NameError: | CODE |
| HIGH | …/genai/_gaos/types/interactions/processingcalldelta.py | 71 | except NameError: | CODE |
| HIGH | google/genai/_gaos/types/interactions/argumentsdelta.py | 65 | except NameError: | CODE |
| HIGH | …ogle/genai/_gaos/types/interactions/documentcontent.py | 94 | except NameError: | CODE |
| HIGH | …e/genai/_gaos/types/interactions/dynamicagentconfig.py | 60 | except NameError: | CODE |
| HIGH | google/genai/_gaos/types/interactions/textcontent.py | 74 | except NameError: | CODE |
| HIGH | …/_gaos/types/interactions/interactioncompletedevent.py | 98 | except NameError: | CODE |
| HIGH | google/genai/_gaos/types/interactions/stepstart.py | 77 | except NameError: | CODE |
| HIGH | google/genai/_gaos/types/interactions/thoughtstep.py | 74 | except NameError: | CODE |
| HIGH | …/genai/_gaos/types/interactions/imageresponseformat.py | 131 | except NameError: | CODE |
| HIGH | …/genai/_gaos/types/interactions/filesearchcalldelta.py | 67 | except NameError: | CODE |
| HIGH | google/genai/_gaos/types/interactions/videodelta.py | 89 | except NameError: | CODE |
| HIGH | …/genai/_gaos/types/interactions/videoresponseformat.py | 126 | except NameError: | CODE |
| HIGH | …nai/_gaos/types/interactions/smarttranscriptionmode.py | 46 | except NameError: | CODE |
| HIGH | …ai/_gaos/types/interactions/googlesearchresultdelta.py | 74 | except NameError: | CODE |
| HIGH | …genai/_gaos/types/interactions/filesearchresultstep.py | 76 | except NameError: | CODE |
| HIGH | google/genai/_gaos/types/interactions/placecitation.py | 108 | except NameError: | CODE |
| HIGH | …/_gaos/types/interactions/verbatimtranscriptionmode.py | 77 | except NameError: | CODE |
| HIGH | …genai/_gaos/types/interactions/googlesearchcallstep.py | 107 | except NameError: | CODE |
| HIGH | google/genai/_gaos/types/interactions/audiocontent.py | 115 | except NameError: | CODE |
| HIGH | google/genai/_gaos/types/interactions/imagecontent.py | 104 | except NameError: | CODE |
| HIGH | …/genai/_gaos/types/interactions/urlcontextcalldelta.py | 76 | except NameError: | CODE |
| HIGH | …e/genai/_gaos/types/interactions/googlemapscallstep.py | 85 | except NameError: | CODE |
| 71 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | google/genai/_test_api_client.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/files.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/caches.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/_base_url.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/_local_tokenizer_loader.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/_live_converters.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/version.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/_extra_utils.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/triggers.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | google/genai/_api_module.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/_tokens_converters.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/file_search_stores.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/models.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/credentials.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | google/genai/local_tokenizer.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/documents.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/client.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/live_music.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/_common.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/__init__.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/_automatic_function_calling_util.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/tokens.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/types.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/_mcp_utils.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/agents.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | google/genai/voices.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | google/genai/_transformers.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/_base_transformers.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/operations.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/_operations_converters.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/pagers.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/environments.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | google/genai/live.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/_api_client.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | google/genai/chats.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/_adapters.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/errors.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/interactions.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/webhooks.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | google/genai/batches.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/_replay_api_client.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/tunings.py | 1 | # Copyright 2025 Google LLC | COMMENT |
| LOW | google/genai/_gaos/files.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | google/genai/_gaos/httpclient.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | google/genai/_gaos/sdk.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | google/genai/_gaos/triggers.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | google/genai/_gaos/_internal.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | google/genai/_gaos/sdkconfiguration.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | google/genai/_gaos/_version.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | google/genai/_gaos/credentials.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | google/genai/_gaos/__init__.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | google/genai/_gaos/google_genai.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | google/genai/_gaos/agents.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | google/genai/_gaos/voices.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | google/genai/_gaos/environments.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | google/genai/_gaos/interactions.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | google/genai/_gaos/webhooks.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | google/genai/_gaos/basesdk.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | google/genai/_gaos/types/basemodel.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | google/genai/_gaos/types/security.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| 524 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | google/genai/_extra_utils.py | 332 | except Exception as e: | CODE |
| LOW⚡ | google/genai/_extra_utils.py | 346 | except Exception as e: | CODE |
| LOW | google/genai/_extra_utils.py | 380 | except Exception as e: # pylint: disable=broad-except | CODE |
| LOW | google/genai/_extra_utils.py | 437 | except Exception as e: # pylint: disable=broad-except | CODE |
| LOW | google/genai/models.py | 6189 | except Exception: # pylint: disable=broad-exception-caught | CODE |
| LOW | google/genai/models.py | 8448 | except Exception: # pylint: disable=broad-exception-caught | CODE |
| LOW | google/genai/client.py | 270 | except Exception: | CODE |
| LOW | google/genai/client.py | 666 | except Exception: | CODE |
| MEDIUM | google/genai/client.py | 267 | def __del__(self) -> None: | CODE |
| MEDIUM | google/genai/client.py | 663 | def __del__(self) -> None: | CODE |
| LOW | google/genai/_common.py | 630 | except Exception: | CODE |
| MEDIUM | google/genai/_common.py | 627 | def __repr__(self) -> str: | CODE |
| LOW | google/genai/_automatic_function_calling_util.py | 389 | except Exception as e: | CODE |
| LOW | google/genai/_automatic_function_calling_util.py | 444 | except Exception as e: | CODE |
| LOW | google/genai/types.py | 4989 | except Exception as e: | CODE |
| LOW | google/genai/types.py | 5056 | except Exception as e: | CODE |
| LOW | google/genai/_transformers.py | 1292 | except Exception as e: | CODE |
| LOW | google/genai/_transformers.py | 1312 | except Exception as e: | CODE |
| MEDIUM | google/genai/_api_client.py | 328 | def __anext__(self) -> Any: | CODE |
| MEDIUM | google/genai/_api_client.py | 645 | def __del__(self) -> None: | CODE |
| MEDIUM | google/genai/_api_client.py | 986 | def _use_google_auth_async(self) -> bool: | CODE |
| LOW⚡ | google/genai/_api_client.py | 2599 | except Exception: # pylint: disable=broad-except | CODE |
| LOW⚡ | google/genai/_api_client.py | 2604 | except Exception: # pylint: disable=broad-except | CODE |
| LOW | google/genai/_api_client.py | 629 | except Exception: | CODE |
| LOW | google/genai/_api_client.py | 633 | except Exception: | CODE |
| LOW | google/genai/_api_client.py | 649 | except Exception: | CODE |
| LOW | google/genai/_api_client.py | 653 | except Exception: | CODE |
| LOW | google/genai/_api_client.py | 1183 | except Exception as e: # pylint: disable=broad-except | CODE |
| LOW | google/genai/_api_client.py | 1250 | except Exception as e: # pylint: disable=broad-except | CODE |
| LOW | google/genai/_api_client.py | 1321 | except Exception as e: # pylint: disable=broad-except | CODE |
| LOW | google/genai/_gaos/files.py | 168 | except Exception as parse_exc_: | STRING |
| LOW | google/genai/_gaos/files.py | 193 | except Exception as parse_exc_: | STRING |
| LOW | google/genai/_gaos/files.py | 354 | except Exception as parse_exc_: | STRING |
| LOW | google/genai/_gaos/files.py | 381 | except Exception as parse_exc_: | STRING |
| LOW | google/genai/_gaos/httpclient.py | 125 | except Exception: | CODE |
| LOW | google/genai/_gaos/triggers.py | 166 | except Exception as parse_exc_: | STRING |
| LOW | google/genai/_gaos/triggers.py | 191 | except Exception as parse_exc_: | STRING |
| LOW | google/genai/_gaos/triggers.py | 354 | except Exception as parse_exc_: | STRING |
| LOW | google/genai/_gaos/triggers.py | 379 | except Exception as parse_exc_: | STRING |
| LOW | google/genai/_gaos/triggers.py | 504 | except Exception as parse_exc_: | STRING |
| LOW | google/genai/_gaos/triggers.py | 529 | except Exception as parse_exc_: | STRING |
| LOW | google/genai/_gaos/triggers.py | 654 | except Exception as parse_exc_: | STRING |
| LOW | google/genai/_gaos/triggers.py | 679 | except Exception as parse_exc_: | STRING |
| LOW | google/genai/_gaos/triggers.py | 822 | except Exception as parse_exc_: | STRING |
| LOW | google/genai/_gaos/triggers.py | 847 | except Exception as parse_exc_: | STRING |
| LOW | google/genai/_gaos/triggers.py | 978 | except Exception as parse_exc_: | STRING |
| LOW | google/genai/_gaos/triggers.py | 1003 | except Exception as parse_exc_: | STRING |
| LOW | google/genai/_gaos/triggers.py | 1128 | except Exception as parse_exc_: | STRING |
| LOW | google/genai/_gaos/triggers.py | 1153 | except Exception as parse_exc_: | STRING |
| LOW | google/genai/_gaos/triggers.py | 1340 | except Exception as parse_exc_: | STRING |
| LOW | google/genai/_gaos/triggers.py | 1367 | except Exception as parse_exc_: | STRING |
| LOW | google/genai/_gaos/triggers.py | 1531 | except Exception as parse_exc_: | STRING |
| LOW | google/genai/_gaos/triggers.py | 1558 | except Exception as parse_exc_: | STRING |
| LOW | google/genai/_gaos/triggers.py | 1684 | except Exception as parse_exc_: | STRING |
| LOW | google/genai/_gaos/triggers.py | 1711 | except Exception as parse_exc_: | STRING |
| LOW | google/genai/_gaos/triggers.py | 1837 | except Exception as parse_exc_: | STRING |
| LOW | google/genai/_gaos/triggers.py | 1864 | except Exception as parse_exc_: | STRING |
| LOW | google/genai/_gaos/triggers.py | 2008 | except Exception as parse_exc_: | STRING |
| LOW | google/genai/_gaos/triggers.py | 2035 | except Exception as parse_exc_: | STRING |
| LOW | google/genai/_gaos/triggers.py | 2167 | except Exception as parse_exc_: | STRING |
| 147 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | google/genai/_extra_utils.py | 171 | CODE | |
| LOW | google/genai/_extra_utils.py | 247 | CODE | |
| LOW | google/genai/_extra_utils.py | 354 | CODE | |
| LOW | google/genai/_extra_utils.py | 389 | CODE | |
| LOW | google/genai/_extra_utils.py | 578 | CODE | |
| LOW | google/genai/_extra_utils.py | 735 | CODE | |
| LOW | google/genai/_extra_utils.py | 951 | CODE | |
| LOW | google/genai/models.py | 6137 | CODE | |
| LOW | google/genai/models.py | 6379 | CODE | |
| LOW | google/genai/models.py | 6775 | CODE | |
| LOW | google/genai/models.py | 8395 | CODE | |
| LOW | google/genai/models.py | 8459 | CODE | |
| LOW | google/genai/models.py | 8683 | CODE | |
| LOW | google/genai/models.py | 9215 | CODE | |
| LOW | google/genai/models.py | 8771 | CODE | |
| LOW | google/genai/_common.py | 54 | CODE | |
| LOW | google/genai/_common.py | 128 | CODE | |
| LOW | google/genai/_common.py | 170 | CODE | |
| LOW | google/genai/_common.py | 206 | CODE | |
| LOW | google/genai/_common.py | 329 | CODE | |
| LOW | google/genai/_common.py | 381 | CODE | |
| LOW | google/genai/_common.py | 507 | CODE | |
| LOW | google/genai/_common.py | 699 | CODE | |
| LOW | google/genai/_automatic_function_calling_util.py | 142 | CODE | |
| LOW | google/genai/_automatic_function_calling_util.py | 345 | CODE | |
| LOW | google/genai/tokens.py | 44 | CODE | |
| LOW | google/genai/types.py | 2382 | CODE | |
| LOW | google/genai/types.py | 3076 | CODE | |
| LOW | google/genai/types.py | 3177 | CODE | |
| LOW | google/genai/types.py | 4893 | CODE | |
| LOW | google/genai/types.py | 8914 | CODE | |
| LOW | google/genai/types.py | 22988 | CODE | |
| LOW | google/genai/types.py | 3125 | CODE | |
| LOW | google/genai/types.py | 3386 | CODE | |
| LOW | google/genai/_mcp_utils.py | 138 | CODE | |
| LOW | google/genai/_mcp_utils.py | 175 | CODE | |
| LOW | google/genai/_transformers.py | 71 | CODE | |
| LOW | google/genai/_transformers.py | 445 | CODE | |
| LOW | google/genai/_transformers.py | 471 | CODE | |
| LOW | google/genai/_transformers.py | 579 | CODE | |
| LOW | google/genai/_transformers.py | 978 | CODE | |
| LOW | google/genai/_transformers.py | 1011 | CODE | |
| LOW | google/genai/_transformers.py | 1093 | CODE | |
| LOW | google/genai/_transformers.py | 1153 | CODE | |
| LOW | google/genai/_transformers.py | 1208 | CODE | |
| LOW | google/genai/_transformers.py | 1242 | CODE | |
| LOW | google/genai/_transformers.py | 1319 | CODE | |
| LOW | google/genai/live.py | 1164 | CODE | |
| LOW | google/genai/live.py | 599 | CODE | |
| LOW | google/genai/live.py | 918 | CODE | |
| LOW | google/genai/_api_client.py | 291 | CODE | |
| LOW | google/genai/_api_client.py | 388 | CODE | |
| LOW | google/genai/_api_client.py | 443 | CODE | |
| LOW | google/genai/_api_client.py | 663 | CODE | |
| LOW | google/genai/_api_client.py | 1044 | CODE | |
| LOW | google/genai/_api_client.py | 1146 | CODE | |
| LOW | google/genai/_api_client.py | 1225 | CODE | |
| LOW | google/genai/_api_client.py | 1290 | CODE | |
| LOW | google/genai/_api_client.py | 1623 | CODE | |
| LOW | google/genai/_api_client.py | 2211 | CODE | |
| 52 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | google/genai/triggers.py | 54 | __all__ = [ | CODE |
| LOW | google/genai/credentials.py | 61 | __all__ = [ | CODE |
| LOW | google/genai/local_tokenizer.py | 31 | __all__ = [ | CODE |
| LOW | google/genai/__init__.py | 28 | __all__ = [ | CODE |
| LOW | google/genai/_automatic_function_calling_util.py | 34 | __all__ = [ | CODE |
| LOW | google/genai/_mcp_utils.py | 124 | def set_mcp_usage_header(headers: dict[str, str]) -> None: | CODE |
| LOW | google/genai/agents.py | 41 | __all__ = [ | CODE |
| LOW | google/genai/voices.py | 23 | __all__ = [ | CODE |
| LOW | google/genai/environments.py | 50 | __all__ = [ | CODE |
| LOW | google/genai/interactions.py | 113 | __all__ = [ | CODE |
| LOW | google/genai/webhooks.py | 57 | __all__ = [ | CODE |
| LOW | google/genai/_gaos/types/__init__.py | 46 | __all__ = [ | CODE |
| LOW | google/genai/_gaos/types/interactions/__init__.py | 448 | __all__ = [ | CODE |
| LOW | google/genai/_gaos/types/triggers/__init__.py | 42 | __all__ = [ | CODE |
| LOW | google/genai/_gaos/types/environments/__init__.py | 50 | __all__ = [ | CODE |
| LOW | google/genai/_gaos/types/agents/__init__.py | 36 | __all__ = [ | CODE |
| LOW | google/genai/_gaos/types/voices/__init__.py | 36 | __all__ = [ | CODE |
| LOW | google/genai/_gaos/types/webhooks/__init__.py | 53 | __all__ = [ | CODE |
| LOW | google/genai/_gaos/types/credentials/__init__.py | 56 | __all__ = [ | CODE |
| LOW | google/genai/_gaos/resources/__init__.py | 28 | __all__ = [ | CODE |
| LOW | google/genai/_gaos/resources/interactions/__init__.py | 140 | __all__ = [ | CODE |
| LOW | …ai/_gaos/resources/interactions/errorevent/__init__.py | 22 | __all__ = ["Error"] | CODE |
| LOW | …/_gaos/resources/interactions/videocontent/__init__.py | 22 | __all__ = ["Static"] | CODE |
| LOW | …esources/interactions/googlesearchcallstep/__init__.py | 24 | __all__ = ["Arguments"] | CODE |
| LOW | …os/resources/interactions/googlemapsresult/__init__.py | 25 | __all__ = ["Place", "place"] | CODE |
| LOW | …ources/interactions/googlemapsresult/place/__init__.py | 22 | __all__ = ["ReviewSnippet"] | CODE |
| LOW | …/resources/interactions/retrievalcalldelta/__init__.py | 24 | __all__ = ["Arguments"] | CODE |
| LOW | …_gaos/resources/interactions/placecitation/__init__.py | 22 | __all__ = ["ReviewSnippet"] | CODE |
| LOW | …sources/interactions/codemenderagentconfig/__init__.py | 26 | __all__ = ["FindRequest", "FixRequest", "SessionConfig", "findrequest", "fixrequest"] | CODE |
| LOW | …ractions/codemenderagentconfig/findrequest/__init__.py | 22 | __all__ = ["SourceFile"] | CODE |
| LOW | …eractions/codemenderagentconfig/fixrequest/__init__.py | 22 | __all__ = ["SourceFile"] | CODE |
| LOW | …/resources/interactions/urlcontextcallstep/__init__.py | 24 | __all__ = ["Arguments"] | CODE |
| LOW | …sources/interactions/codeexecutioncallstep/__init__.py | 24 | __all__ = ["Arguments"] | CODE |
| LOW | …ources/interactions/googlesearchresultstep/__init__.py | 22 | __all__ = ["Result"] | CODE |
| LOW | …/resources/interactions/googlemapscallstep/__init__.py | 24 | __all__ = ["Arguments"] | CODE |
| LOW | …ai/_gaos/resources/interactions/annotation/__init__.py | 22 | __all__ = ["SpeechMetadata"] | CODE |
| LOW | …e/genai/_gaos/resources/interactions/usage/__init__.py | 28 | __all__ = [ | CODE |
| LOW | …i/_gaos/resources/interactions/environment/__init__.py | 27 | __all__ = [ | CODE |
| LOW | …ironment/environmentnetworkegressallowlist/__init__.py | 22 | __all__ = ["AllowlistEntry"] | CODE |
| LOW | …esources/interactions/googlemapsresultstep/__init__.py | 23 | __all__ = ["Result", "result"] | CODE |
| LOW | …s/interactions/googlemapsresultstep/result/__init__.py | 25 | __all__ = ["Place", "place"] | CODE |
| LOW | …ractions/googlemapsresultstep/result/place/__init__.py | 22 | __all__ = ["ReviewSnippet"] | CODE |
| LOW | …nai/_gaos/resources/interactions/stepdelta/__init__.py | 80 | __all__ = [ | CODE |
| LOW | …le/genai/_gaos/resources/interactions/tool/__init__.py | 30 | __all__ = [ | CODE |
| LOW | …gaos/resources/interactions/tool/retrieval/__init__.py | 22 | __all__ = ["VertexAISearchConfig"] | CODE |
| LOW | …s/resources/interactions/retrievalcallstep/__init__.py | 24 | __all__ = ["Arguments"] | CODE |
| LOW | …s/resources/interactions/transcriptionmode/__init__.py | 27 | __all__ = ["Smart", "Verbatim"] | CODE |
| LOW | …esources/interactions/urlcontextresultstep/__init__.py | 22 | __all__ = ["Result"] | CODE |
| LOW | google/genai/_gaos/resources/triggers/__init__.py | 42 | __all__ = [ | CODE |
| LOW | google/genai/_gaos/resources/environments/__init__.py | 30 | __all__ = [ | CODE |
| LOW | google/genai/_gaos/resources/agents/__init__.py | 29 | __all__ = [ | CODE |
| LOW | google/genai/_gaos/resources/voices/__init__.py | 37 | __all__ = [ | CODE |
| LOW | …/_gaos/resources/voices/createvoicerequest/__init__.py | 22 | __all__ = ["Voice"] | CODE |
| LOW | …i/_gaos/resources/voices/voicelistresponse/__init__.py | 22 | __all__ = ["Voice"] | CODE |
| LOW | google/genai/_gaos/resources/webhooks/__init__.py | 45 | __all__ = [ | CODE |
| LOW | google/genai/_gaos/resources/credentials/__init__.py | 47 | __all__ = [ | CODE |
| LOW | google/genai/_gaos/utils/__init__.py | 83 | __all__ = [ | CODE |
| LOW | google/genai/_gaos/utils/response_helpers.py | 685 | def _set_response_mode(kwargs: Dict[str, Any], mode: str, header_kwarg: str) -> None: | CODE |
| LOW | google/genai/_gaos/models/__init__.py | 257 | __all__ = [ | CODE |
| LOW | google/genai/_gaos/models/internal/__init__.py | 27 | __all__ = ["Globals", "GlobalsTypedDict"] | CODE |
| 2 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | google/genai/file_search_stores.py | 916 | CODE | |
| LOW | google/genai/file_search_stores.py | 1545 | CODE | |
| LOW | google/genai/models.py | 6637 | CODE | |
| LOW | google/genai/models.py | 9139 | CODE | |
| LOW | google/genai/client.py | 358 | CODE | |
| LOW | google/genai/types.py | 2382 | CODE | |
| LOW | google/genai/_replay_api_client.py | 157 | CODE | |
| LOW | google/genai/_replay_api_client.py | 296 | CODE | |
| LOW | google/genai/_gaos/httpclient.py | 43 | CODE | |
| LOW | google/genai/_gaos/httpclient.py | 82 | CODE | |
| LOW | google/genai/_gaos/sdk.py | 79 | CODE | |
| LOW | google/genai/_gaos/sdk.py | 310 | CODE | |
| LOW | google/genai/_gaos/triggers.py | 199 | CODE | |
| LOW | google/genai/_gaos/triggers.py | 1376 | CODE | |
| LOW | google/genai/_gaos/credentials.py | 968 | CODE | |
| LOW | google/genai/_gaos/credentials.py | 1002 | CODE | |
| LOW | google/genai/_gaos/credentials.py | 1036 | CODE | |
| LOW | google/genai/_gaos/credentials.py | 2390 | CODE | |
| LOW | google/genai/_gaos/credentials.py | 2424 | CODE | |
| LOW | google/genai/_gaos/credentials.py | 2458 | CODE | |
| LOW | google/genai/_gaos/agents.py | 197 | CODE | |
| LOW | google/genai/_gaos/agents.py | 881 | CODE | |
| LOW | google/genai/_gaos/voices.py | 40 | CODE | |
| LOW | google/genai/_gaos/voices.py | 776 | CODE | |
| LOW | google/genai/_gaos/environments.py | 214 | CODE | |
| LOW | google/genai/_gaos/environments.py | 933 | CODE | |
| LOW | google/genai/_gaos/interactions.py | 63 | CODE | |
| LOW | google/genai/_gaos/interactions.py | 130 | CODE | |
| LOW | google/genai/_gaos/interactions.py | 197 | CODE | |
| LOW | google/genai/_gaos/interactions.py | 262 | CODE | |
| LOW | google/genai/_gaos/interactions.py | 1332 | CODE | |
| LOW | google/genai/_gaos/interactions.py | 1399 | CODE | |
| LOW | google/genai/_gaos/interactions.py | 1466 | CODE | |
| LOW | google/genai/_gaos/interactions.py | 1531 | CODE | |
| LOW | google/genai/_gaos/webhooks.py | 679 | CODE | |
| LOW | google/genai/_gaos/webhooks.py | 1908 | CODE | |
| LOW | google/genai/_gaos/basesdk.py | 85 | CODE | |
| LOW | google/genai/_gaos/basesdk.py | 133 | CODE | |
| LOW | google/genai/_gaos/basesdk.py | 352 | CODE | |
| LOW | google/genai/_gaos/basesdk.py | 400 | CODE | |
| LOW | google/genai/_gaos/types/basemodel.py | 37 | CODE | |
| LOW | google/genai/_gaos/types/basemodel.py | 76 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | google/genai/_extra_utils.py | 564 | # Create a copy of the config model with the tools field cleared since some | COMMENT |
| MEDIUM | google/genai/_extra_utils.py | 593 | # Create a copy of the config model with the tools field cleared as they will | COMMENT |
| MEDIUM | google/genai/_common.py | 678 | # Creating a enum instance based on the value | COMMENT |
| MEDIUM | google/genai/types.py | 18475 | """This class is experimental and may change in future versions. | STRING |
| MEDIUM | google/genai/types.py | 18491 | """This class is experimental and may change in future versions. | STRING |
| MEDIUM | google/genai/live.py | 1188 | # Create a copy of the config model with the tools field cleared as they will | COMMENT |
| MEDIUM⚡ | google/genai/_gaos/utils/enums.py | 106 | # Create a validator that only accepts known enum values (for strict mode) | COMMENT |
| MEDIUM⚡ | google/genai/_gaos/utils/enums.py | 113 | # Create a lax validator that accepts unknown values | COMMENT |
| MEDIUM | google/genai/_gaos/_hooks/registration.py | 21 | # This file is only ever generated once on the first generation and then is free to be modified. | COMMENT |
| MEDIUM | google/genai/_gaos/_hooks/asyncregistration.py | 30 | # This file is only ever generated once on the first generation and then is free to be modified. | COMMENT |
| MEDIUM | google/genai/tests/common/test_common.py | 801 | # Create an instance of ModelB (wrong type) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | google/genai/types.py | 8976 | parsed = {'placeholder': json.loads(result_text)} | CODE |
| LOW | google/genai/types.py | 9009 | parsed = {'placeholder': json.loads(result_text)} | CODE |
| LOW | google/genai/_transformers.py | 856 | enum_schema = enum_schema['properties']['placeholder'] | CODE |
| LOW | google/genai/_transformers.py | 911 | schema = schema['properties']['placeholder'] | CODE |
| LOW | google/genai/tests/interactions/test_httpx_compat.py | 71 | api_key="fake-key", | CODE |
| LOW | google/genai/tests/interactions/test_auth.py | 173 | mock.patch.object(BaseApiClient, "_access_token", return_value="fake-token") as mock_access_token, | CODE |
| LOW | google/genai/tests/interactions/test_auth.py | 398 | mock.patch.object(BaseApiClient, "_access_token", return_value="fake-token") as mock_access_token, | CODE |
| LOW | google/genai/tests/interactions/test_integration.py | 37 | api_key="placeholder", | CODE |
| LOW | google/genai/tests/interactions/test_integration.py | 64 | api_key="placeholder", | CODE |
| LOW⚡ | google/genai/tests/interactions/test_integration.py | 135 | api_key="placeholder", | CODE |
| LOW⚡ | google/genai/tests/interactions/test_integration.py | 147 | api_key="placeholder", | CODE |
| LOW | google/genai/tests/files/test_register.py | 34 | def __init__(self, token="fake_token", expired=False, quota_project_id=None): | CODE |
| LOW | google/genai/tests/files/test_register.py | 57 | client = Client(api_key="dummy_key") | CODE |
| LOW | google/genai/tests/files/test_register.py | 83 | client = Client(api_key="dummy_key") | CODE |
| LOW | google/genai/tests/files/test_register.py | 110 | client = Client(api_key="dummy_key") | CODE |
| LOW | google/genai/tests/files/test_register.py | 136 | client = Client(api_key="dummy_key") | CODE |
| LOW | google/genai/tests/files/test_register.py | 166 | client = Client(api_key="dummy_key") | CODE |
| LOW | google/genai/tests/files/test_register.py | 191 | client = Client(api_key="dummy_key") | CODE |
| LOW | google/genai/tests/files/test_register.py | 221 | client = Client(api_key="dummy_key") | CODE |
| LOW | google/genai/tests/files/test_register.py | 250 | client = Client(api_key="dummy_key") | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | google/genai/live.py | 958 | 'google.genai.client.aio.live.connect() does not support' | CODE |
| CRITICAL | google/genai/tests/gaos/test_environments_lifecycle.py | 484 | raw_files_res = await client.aio.environments.with_raw_response.files.list( | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | google/genai/types.py | 4494 | description="""Optional. Currently only supported for Gemini Multimodal Live API. In Gemini Multimodal Live API, i | CODE |
| LOW | google/genai/types.py | 8988 | # want the result converted to. So just return json. | COMMENT |
| MEDIUM | google/genai/types.py | 4521 | """Optional. Currently only supported for Gemini Multimodal Live API. In Gemini Multimodal Live API, if `store_context | STRING |
| MEDIUM | google/genai/chats.py | 68 | """Extracts the curated (valid) history from a comprehensive history. | STRING |
| MEDIUM | google/genai/_gaos/types/interactions/model.py | 39 | # Our state-of-the-art multipurpose model, which excels at coding and complex reasoning tasks. | COMMENT |
| MEDIUM | google/genai/tests/models/test_edit_image.py | 120 | # Test comprehensive configs | COMMENT |
| MEDIUM | google/genai/tests/models/test_edit_image.py | 263 | # Test comprehensive configs | COMMENT |
| MEDIUM | google/genai/tests/live/test_live.py | 217 | # comprehensive coverage for proj/location and api key precedence. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | google/genai/_gaos/_hooks/adapters.py | 40 | # ============================================================================ | COMMENT |
| MEDIUM | google/genai/_gaos/_hooks/adapters.py | 42 | # ============================================================================ | COMMENT |
| MEDIUM | google/genai/_gaos/_hooks/adapters.py | 54 | # ============================================================================ | COMMENT |
| MEDIUM | google/genai/_gaos/_hooks/adapters.py | 140 | # ============================================================================ | COMMENT |
| MEDIUM | google/genai/_gaos/_hooks/adapters.py | 142 | # ============================================================================ | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | README.md | 125 | export GEMINI_API_KEY='your-api-key' | CODE |
| HIGH | google/genai/client.py | 299 | `api_key="your-api-key"` or by defining `GOOGLE_API_KEY="your-api-key"` as an | STRING |
| HIGH | docs/_sources/index.rst.txt | 81 | export GEMINI_API_KEY='your-api-key' | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | google/genai/_gaos/types/interactions/model.py | 37 | # Our first hybrid reasoning model which supports a 1M token context window and has thinking budgets. | COMMENT |
| MEDIUM | google/genai/_gaos/types/interactions/model.py | 53 | # Our most cost-efficient model, optimized for high-volume agentic tasks, translation, and simple data processin | COMMENT |
| MEDIUM | google/genai/_gaos/types/interactions/model.py | 69 | # Gemini 3.6 Flash - Our previous generation Flash model, balancing speed and multimodal capabilities across gen | COMMENT |
| MEDIUM | google/genai/_gaos/types/interactions/model.py | 71 | # Gemini 3.7 Flash - Our high-speed, efficient Flash model built for everyday coding, agentic tool use, and reli | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH⚡ | google/genai/_transformers.py | 632 | # If there is only one type left after removing null, remove the anyOf field. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | google/genai/types.py | 3186 | Converts a JSONSchema object to a Schema object. Note: Conversion of fields that are not included in the JSONSchem | STRING |
| HIGH | google/genai/_gaos/utils/annotations.py | 25 | Recursively search for the discriminator attribute in a model. Args: model (Any): The model to search | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | google/genai/_common.py | 324 | # Check if the dict arguments are str and typing.Any | COMMENT |
| LOW | google/genai/_common.py | 454 | # Check if the next level of recursion for keys/values will exceed the depth limit. | COMMENT |
| LOW | google/genai/_common.py | 862 | # Check if the object has all of the Pydantic model's defined fields. | COMMENT |
| LOW | google/genai/_common.py | 866 | # Check if the Pydantic model has all of the object's defined fields. | COMMENT |
| LOW | google/genai/_transformers.py | 141 | # Check if prepending the collection identifier won't violate the | COMMENT |
| LOW | google/genai/tests/live/test_live.py | 756 | # Check if the first message contains the VAD signal | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | pyproject.toml | 86 | # Auto-generated code in _gaos has type errors; ignore them but keep type info | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | google/genai/tests/models/test_generate_content.py | 2216 | def test_function(client): | STRING |
| LOW | google/genai/tests/transformers/test_t_tool.py | 57 | def test_function(client): | CODE |
| LOW | google/genai/tests/transformers/test_t_tools.py | 59 | def test_function(client): | CODE |