Repository Analysis

google/adk-python

An open-source, code-first Python toolkit for building, evaluating, and deploying sophisticated AI agents with flexibility and control.

31.3 Strong AI signal View on GitHub
31.3
Adjusted Score
31.3
Raw Score
100%
Time Factor
2026-05-30
Last Push
19,926
Stars
Python
Language
417,606
Lines of Code
2030
Files
10898
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 12HIGH 323MEDIUM 617LOW 9946

Pattern Findings

10898 matches across 20 categories. Click a row to expand file-level details.

Hyper-Verbose Identifiers5949 hits · 5416 pts
SeverityFileLineSnippet
LOWcontributing/samples/core/runner_debug_example/main.py37async def example_multiple_messages():
LOWcontributing/samples/core/runner_debug_example/main.py54async def example_conversation_persistence():
LOWcontributing/samples/core/runner_debug_example/main.py75async def example_separate_sessions():
LOWcontributing/samples/core/logprobs/README.md51async def append_logprobs_to_response(
LOWcontributing/samples/core/logprobs/agent.py28async def append_logprobs_to_response(
LOW…g/samples/adk_team/adk_issue_monitoring_agent/utils.py39def _increment_api_call_count() -> None:
LOW…g/samples/adk_team/adk_issue_monitoring_agent/utils.py77def get_repository_maintainers(owner: str, repo: str) -> list[str]:
LOW…ributing/samples/adk_team/adk_answering_agent/tools.py27def get_discussion_and_comments(discussion_number: int) -> dict[str, Any]:
LOW…ributing/samples/adk_team/adk_answering_agent/tools.py101def add_comment_to_discussion(
LOW…ributing/samples/adk_team/adk_answering_agent/tools.py218def convert_gcs_links_to_https(gcs_uris: list[str]) -> Dict[str, Optional[str]]:
LOW…adk_answering_agent/upload_docs_to_vertex_ai_search.py137def import_from_gcs_to_vertex_ai(
LOW…tributing/samples/adk_team/adk_answering_agent/main.py41async def list_most_recent_discussions(
LOW…ributing/samples/adk_team/adk_knowledge_agent/agent.py27def citation_retrieval_after_model_callback(
LOW…ntributing/samples/adk_team/adk_documentation/tools.py73def get_changed_files_between_releases(
LOW…ntributing/samples/adk_team/adk_documentation/tools.py175def read_local_git_repo_file_content(file_path: str) -> Dict[str, Any]:
LOW…ntributing/samples/adk_team/adk_documentation/tools.py310def create_pull_request_from_changes(
LOW…ntributing/samples/adk_team/adk_documentation/tools.py559def get_file_diff_for_release(
LOW…ntributing/samples/adk_team/adk_documentation/tools.py608def get_changed_files_summary(
LOW…ntributing/samples/adk_team/adk_documentation/tools.py696def _get_changed_files_from_local_git(
LOW…k_team/adk_documentation/adk_release_analyzer/agent.py142def save_group_recommendations(
LOW…k_team/adk_documentation/adk_release_analyzer/agent.py376def file_analyzer_instruction(readonly_context: ReadonlyContext) -> str:
LOWcontributing/samples/adk_team/adk_stale_agent/utils.py57def _increment_api_call_count() -> None:
LOWcontributing/samples/adk_team/adk_stale_agent/utils.py200def get_old_open_issue_numbers(
LOWcontributing/samples/adk_team/adk_stale_agent/agent.py306def _replay_history_to_find_state(
LOWcontributing/samples/adk_team/adk_stale_agent/agent.py510def add_stale_label_and_comment(item_number: int) -> dict[str, Any]:
LOW…tributing/samples/adk_team/adk_triaging_agent/agent.py185def assign_gtech_owner_to_issue(issue_number: int) -> dict[str, Any]:
LOW…ntributing/samples/adk_team/adk_triaging_agent/main.py40async def fetch_specific_issue_details(issue_number: int):
LOW…ng/samples/patterns/workflow_triage/execution_agent.py27def before_agent_callback_check_relevance(
LOW…ng/samples/patterns/workflow_triage/execution_agent.py81def instruction_provider_for_execution_summary_agent(
LOW…les/patterns/context_offloading_with_artifact/agent.py53 async def _append_artifacts_to_llm_request(
LOW…amples/plugin/plugin_reflect_tool_retry/basic/agent.py53 async def extract_error_from_result(
LOW…uting/samples/mcp/mcp_progress_callback_agent/agent.py82def progress_callback_factory(
LOWcontributing/samples/models/interactions_api/main.py131async def test_basic_text_generation(runner: Runner, session_id: str):
LOWcontributing/samples/models/interactions_api/main.py165async def test_multi_turn_conversation(runner: Runner, session_id: str):
LOWcontributing/samples/models/interactions_api/main.py236async def test_custom_function_tool(runner: Runner, session_id: str):
LOWcontributing/samples/models/interactions_api/main.py298def check_interactions_api_available() -> bool:
LOW…uting/samples/integrations/spanner_rag_agent/README.md329 def wrapped_spanner_similarity_search(
LOWcontributing/samples/integrations/bigtable/agent.py69def search_hotels_by_location(
LOW…ntributing/samples/integrations/gepa/adk_agent_test.py163def test_intermediary_step_is_done():
LOW…ntributing/samples/integrations/gepa/adk_agent_test.py199def test_intermediary_tool_step_is_done():
LOWcontributing/samples/integrations/gepa/rater_lib.py30def parse_rubric_validation_response(
LOWcontributing/samples/integrations/gepa/rater_lib.py90def format_user_agent_conversation(conv: list[dict[str, Any]]) -> str:
LOW…ations/oauth2_client_credentials/oauth2_test_server.py179async def handle_client_credentials(
LOW…ations/oauth2_client_credentials/oauth2_test_server.py204async def handle_authorization_code(
LOW…ng/samples/multimodal/static_non_text_content/agent.py55def create_static_instruction_with_file_upload():
LOW…ributing/samples/multimodal/computer_use/playwright.py205 async def _horizontal_document_scroll(
LOW…ve/live_agent_api_server_example/live_agent_example.py319 def _play_audio_pyaudio_handler(
LOW…ve/live_agent_api_server_example/live_agent_example.py179def create_text_request_payload(text: str) -> str:
LOW…ve/live_agent_api_server_example/live_agent_example.py187def create_audio_request_payload(audio_bytes: bytes, mime_type: str) -> str:
LOW…buting/samples/live/live_tool_callbacks_agent/agent.py98def before_tool_audit_callback(
LOW…buting/samples/live/live_tool_callbacks_agent/agent.py119def before_tool_security_callback(
LOW…buting/samples/live/live_tool_callbacks_agent/agent.py142async def before_tool_async_callback(
LOW…buting/samples/live/live_tool_callbacks_agent/agent.py169def after_tool_enhancement_callback(
LOW…buting/samples/live/live_tool_callbacks_agent/agent.py190async def after_tool_async_callback(
LOW…samples/context_management/history_management/agent.py68def create_slice_history_callback(n_recent_turns):
LOW…ing/samples/context_management/cache_analysis/agent.py268def optimize_system_performance(
LOW…ing/samples/context_management/cache_analysis/agent.py366def analyze_security_vulnerabilities(
LOW…ing/samples/context_management/cache_analysis/agent.py455def design_scalability_architecture(
LOW…ext_management/cache_analysis/run_cache_experiments.py97async def run_cache_comparison_experiment(
LOW…ext_management/cache_analysis/run_cache_experiments.py314async def analyze_cache_performance_from_sessions(
5889 more matches not shown…
Over-Commented Block1558 hits · 1506 pts
SeverityFileLineSnippet
LOWcontributing/samples/services.py1# Copyright 2026 Google LLC
LOWcontributing/samples/dummy_services.py1# Copyright 2026 Google LLC
LOW…ntributing/samples/multi_agent/task_sub_agent/agent.py1# Copyright 2026 Google LLC
LOW…samples/multi_agent/multi_agent_llm_config/__init__.py1# Copyright 2026 Google LLC
LOW…ibuting/samples/multi_agent/hello_world_ma/__init__.py1# Copyright 2026 Google LLC
LOW…ntributing/samples/multi_agent/hello_world_ma/agent.py1# Copyright 2026 Google LLC
LOW…g/samples/multi_agent/three_layer_transfer/__init__.py1# Copyright 2026 Google LLC
LOW…ting/samples/multi_agent/three_layer_transfer/agent.py1# Copyright 2026 Google LLC
LOWcontributing/samples/multi_agent/sub_agents/__init__.py1# Copyright 2026 Google LLC
LOWcontributing/samples/multi_agent/sub_agents/agent.py1# Copyright 2026 Google LLC
LOW…ing/samples/multi_agent/single_turn_sub_agent/agent.py1# Copyright 2026 Google LLC
LOW…ting/samples/multi_agent/sub_agents_config/__init__.py1# Copyright 2026 Google LLC
LOW…ng/samples/multi_agent/sub_agents_config/life_agent.py1# Copyright 2026 Google LLC
LOW…ibuting/samples/tools/built_in_multi_tools/__init__.py1# Copyright 2026 Google LLC
LOW…ntributing/samples/tools/built_in_multi_tools/agent.py1# Copyright 2026 Google LLC
LOW…uting/samples/tools/long_running_functions/__init__.py1# Copyright 2026 Google LLC
LOW…ributing/samples/tools/long_running_functions/agent.py1# Copyright 2026 Google LLC
LOW…tributing/samples/tools/parallel_functions/__init__.py1# Copyright 2026 Google LLC
LOWcontributing/samples/tools/parallel_functions/agent.py1# Copyright 2026 Google LLC
LOW…g/samples/tools/hello_world_stream_fc_args/__init__.py1# Copyright 2026 Google LLC
LOW…ting/samples/tools/hello_world_stream_fc_args/agent.py1# Copyright 2026 Google LLC
LOW…s/tools/agent_tool_with_grounding_metadata/__init__.py1# Copyright 2026 Google LLC
LOW…ples/tools/agent_tool_with_grounding_metadata/agent.py1# Copyright 2026 Google LLC
LOW…ing/samples/tools/output_schema_with_tools/__init__.py1# Copyright 2026 Google LLC
LOW…buting/samples/tools/output_schema_with_tools/agent.py1# Copyright 2026 Google LLC
LOW…tributing/samples/tools/tool_functions_config/tools.py1# Copyright 2026 Google LLC
LOW…buting/samples/tools/tool_functions_config/__init__.py1# Copyright 2026 Google LLC
LOWcontributing/samples/tools/function_tools/__init__.py1# Copyright 2026 Google LLC
LOWcontributing/samples/tools/function_tools/agent.py1# Copyright 2026 Google LLC
LOW…ntributing/samples/tools/pydantic_argument/__init__.py1# Copyright 2026 Google LLC
LOWcontributing/samples/tools/pydantic_argument/agent.py1# Copyright 2026 Google LLC
LOWcontributing/samples/tools/pydantic_argument/main.py1#!/usr/bin/env python3
LOWcontributing/samples/core/abort/__init__.py1# Copyright 2026 Google LLC
LOWcontributing/samples/core/abort/agent.py1# Copyright 2026 Google LLC
LOWcontributing/samples/core/artifacts/__init__.py1# Copyright 2026 Google LLC
LOWcontributing/samples/core/artifacts/agent.py1# Copyright 2026 Google LLC
LOW…ributing/samples/core/runner_debug_example/__init__.py1# Copyright 2026 Google LLC
LOWcontributing/samples/core/runner_debug_example/agent.py1# Copyright 2026 Google LLC
LOWcontributing/samples/core/runner_debug_example/main.py1# Copyright 2026 Google LLC
LOWcontributing/samples/core/hello_world/__init__.py1# Copyright 2026 Google LLC
LOWcontributing/samples/core/hello_world/agent.py1# Copyright 2026 Google LLC
LOWcontributing/samples/core/app/agent.py1# Copyright 2026 Google LLC
LOWcontributing/samples/core/empty_agent/__init__.py1# Copyright 2026 Google LLC
LOWcontributing/samples/core/empty_agent/agent.py1# Copyright 2026 Google LLC
LOWcontributing/samples/core/callbacks/__init__.py1# Copyright 2026 Google LLC
LOWcontributing/samples/core/callbacks/agent.py1# Copyright 2026 Google LLC
LOWcontributing/samples/core/input_output_schema/agent.py1# Copyright 2026 Google LLC
LOWcontributing/samples/core/quickstart/__init__.py1# Copyright 2026 Google LLC
LOWcontributing/samples/core/quickstart/agent.py1# Copyright 2026 Google LLC
LOWcontributing/samples/core/logprobs/__init__.py1# Copyright 2026 Google LLC
LOWcontributing/samples/core/logprobs/agent.py1# Copyright 2026 Google LLC
LOW…ing/samples/adk_team/adk_pr_triaging_agent/__init__.py1# Copyright 2026 Google LLC
LOW…buting/samples/adk_team/adk_pr_triaging_agent/utils.py1# Copyright 2026 Google LLC
LOW…buting/samples/adk_team/adk_pr_triaging_agent/agent.py1# Copyright 2026 Google LLC
LOW…ing/samples/adk_team/adk_pr_triaging_agent/settings.py1# Copyright 2026 Google LLC
LOW…ibuting/samples/adk_team/adk_pr_triaging_agent/main.py1# Copyright 2026 Google LLC
LOW…amples/adk_team/adk_issue_monitoring_agent/__init__.py1# Copyright 2026 Google LLC
LOW…g/samples/adk_team/adk_issue_monitoring_agent/utils.py1# Copyright 2026 Google LLC
LOW…g/samples/adk_team/adk_issue_monitoring_agent/agent.py1# Copyright 2026 Google LLC
LOW…amples/adk_team/adk_issue_monitoring_agent/settings.py1# Copyright 2026 Google LLC
1498 more matches not shown…
Unused Imports1454 hits · 1398 pts
SeverityFileLineSnippet
LOWcontributing/samples/services.py16
LOWcontributing/samples/dummy_services.py16
LOW…ntributing/samples/multi_agent/task_sub_agent/agent.py15
LOW…ibuting/samples/multi_agent/hello_world_ma/__init__.py15
LOW…g/samples/multi_agent/three_layer_transfer/__init__.py15
LOWcontributing/samples/multi_agent/sub_agents/__init__.py15
LOWcontributing/samples/multi_agent/sub_agents/agent.py15
LOW…ibuting/samples/tools/built_in_multi_tools/__init__.py15
LOW…uting/samples/tools/long_running_functions/__init__.py15
LOW…tributing/samples/tools/parallel_functions/__init__.py15
LOWcontributing/samples/tools/parallel_functions/agent.py18
LOW…g/samples/tools/hello_world_stream_fc_args/__init__.py15
LOW…s/tools/agent_tool_with_grounding_metadata/__init__.py15
LOW…ing/samples/tools/output_schema_with_tools/__init__.py15
LOWcontributing/samples/tools/function_tools/__init__.py15
LOWcontributing/samples/tools/function_tools/agent.py15
LOW…ntributing/samples/tools/pydantic_argument/__init__.py15
LOWcontributing/samples/core/abort/__init__.py15
LOWcontributing/samples/core/artifacts/__init__.py15
LOWcontributing/samples/core/artifacts/agent.py15
LOW…ributing/samples/core/runner_debug_example/__init__.py17
LOWcontributing/samples/core/hello_world/__init__.py15
LOWcontributing/samples/core/app/agent.py15
LOWcontributing/samples/core/empty_agent/__init__.py15
LOWcontributing/samples/core/empty_agent/__init__.py17
LOWcontributing/samples/core/empty_agent/agent.py15
LOWcontributing/samples/core/callbacks/__init__.py15
LOWcontributing/samples/core/callbacks/agent.py15
LOWcontributing/samples/core/input_output_schema/agent.py15
LOWcontributing/samples/core/quickstart/__init__.py15
LOWcontributing/samples/core/logprobs/__init__.py15
LOW…ing/samples/adk_team/adk_pr_triaging_agent/__init__.py15
LOW…amples/adk_team/adk_issue_monitoring_agent/__init__.py15
LOW…uting/samples/adk_team/adk_answering_agent/__init__.py15
LOW…_team/adk_answering_agent/gemini_assistant/__init__.py15
LOW…amples/adk_team/adk_issue_formatting_agent/__init__.py15
LOW…uting/samples/adk_team/adk_knowledge_agent/__init__.py15
LOW…eam/adk_documentation/adk_release_analyzer/__init__.py15
LOW…dk_team/adk_documentation/adk_docs_updater/__init__.py15
LOW…tributing/samples/adk_team/adk_stale_agent/__init__.py15
LOWcontributing/samples/adk_team/adk_stale_agent/utils.py27
LOW…buting/samples/adk_team/adk_triaging_agent/__init__.py15
LOWcontributing/samples/adk_team/adk_pr_agent/__init__.py15
LOW…tributing/samples/patterns/workflow_triage/__init__.py15
LOW…/patterns/context_offloading_with_artifact/__init__.py15
LOW…ntributing/samples/patterns/fields_planner/__init__.py15
LOWcontributing/samples/patterns/fields_planner/agent.py19
LOW…buting/samples/patterns/json_passing_agent/__init__.py15
LOW…g/samples/config/core_custom_agent_config/my_agents.py15
LOW…g/samples/config/core_custom_agent_config/my_agents.py17
LOWcontributing/samples/a2a/a2a_basic/__init__.py15
LOW…a2a/a2a_basic/remote_a2a/check_prime_agent/__init__.py15
LOW…es/a2a/a2a_basic/remote_a2a/check_prime_agent/agent.py15
LOW…es/a2a/a2a_basic/remote_a2a/check_prime_agent/agent.py18
LOWcontributing/samples/a2a/a2a_auth/__init__.py15
LOW…les/a2a/a2a_auth/remote_a2a/bigquery_agent/__init__.py15
LOWcontributing/samples/a2a/a2a_human_in_loop/__init__.py15
LOW…a2a_human_in_loop/remote_a2a/human_in_loop/__init__.py15
LOW…amples/a2a/a2a_root/remote_a2a/hello_world/__init__.py15
LOW…amples/environment_and_skills/skills_agent/__init__.py15
1394 more matches not shown…
Decorative Section Separators264 hits · 954 pts
SeverityFileLineSnippet
MEDIUM…k_team/adk_documentation/adk_release_analyzer/agent.py96# =============================================================================
MEDIUM…k_team/adk_documentation/adk_release_analyzer/agent.py98# =============================================================================
MEDIUM…k_team/adk_documentation/adk_release_analyzer/agent.py291# =============================================================================
MEDIUM…k_team/adk_documentation/adk_release_analyzer/agent.py293# =============================================================================
MEDIUM…k_team/adk_documentation/adk_release_analyzer/agent.py371# =============================================================================
MEDIUM…k_team/adk_documentation/adk_release_analyzer/agent.py373# =============================================================================
MEDIUM…k_team/adk_documentation/adk_release_analyzer/agent.py501# =============================================================================
MEDIUM…k_team/adk_documentation/adk_release_analyzer/agent.py503# =============================================================================
MEDIUM…k_team/adk_documentation/adk_release_analyzer/agent.py570# =============================================================================
MEDIUM…k_team/adk_documentation/adk_release_analyzer/agent.py572# =============================================================================
MEDIUM…k_team/adk_documentation/adk_release_analyzer/agent.py608# =============================================================================
MEDIUM…k_team/adk_documentation/adk_release_analyzer/agent.py610# =============================================================================
MEDIUMtests/unittests/test_optional_dependencies.py63# =============================================================================
MEDIUMtests/unittests/test_optional_dependencies.py65# =============================================================================
MEDIUMtests/unittests/test_optional_dependencies.py170# =============================================================================
MEDIUMtests/unittests/test_optional_dependencies.py172# =============================================================================
MEDIUM…ttests/plugins/test_bigquery_agent_analytics_plugin.py5827# ==============================================================================
MEDIUM…ttests/plugins/test_bigquery_agent_analytics_plugin.py5829# ==============================================================================
MEDIUM…ttests/plugins/test_bigquery_agent_analytics_plugin.py7369# ================================================================
MEDIUM…ttests/plugins/test_bigquery_agent_analytics_plugin.py7371# ================================================================
MEDIUM…ttests/plugins/test_bigquery_agent_analytics_plugin.py7439# ================================================================
MEDIUM…ttests/plugins/test_bigquery_agent_analytics_plugin.py7441# ================================================================
MEDIUM…ttests/plugins/test_bigquery_agent_analytics_plugin.py7554# ================================================================
MEDIUM…ttests/plugins/test_bigquery_agent_analytics_plugin.py7556# ================================================================
MEDIUM…ttests/plugins/test_bigquery_agent_analytics_plugin.py5009# ==============================================================================
MEDIUM…ttests/plugins/test_bigquery_agent_analytics_plugin.py5011# ==============================================================================
MEDIUM…ttests/plugins/test_bigquery_agent_analytics_plugin.py5120# ==============================================================================
MEDIUM…ttests/plugins/test_bigquery_agent_analytics_plugin.py5122# ==============================================================================
MEDIUM…ttests/plugins/test_bigquery_agent_analytics_plugin.py5344# ==============================================================================
MEDIUM…ttests/plugins/test_bigquery_agent_analytics_plugin.py5346# ==============================================================================
MEDIUM…ttests/plugins/test_bigquery_agent_analytics_plugin.py5592# ==============================================================================
MEDIUM…ttests/plugins/test_bigquery_agent_analytics_plugin.py5594# ==============================================================================
MEDIUM…ttests/plugins/test_bigquery_agent_analytics_plugin.py7135# ==============================================================
MEDIUM…ttests/plugins/test_bigquery_agent_analytics_plugin.py7137# ==============================================================
MEDIUM…ttests/plugins/test_bigquery_agent_analytics_plugin.py7271# ================================================================
MEDIUM…ttests/plugins/test_bigquery_agent_analytics_plugin.py7273# ================================================================
MEDIUMtests/unittests/agents/test_llm_agent_interruptions.py127# ---------------------------------------------------------------------------
MEDIUMtests/unittests/agents/test_llm_agent_interruptions.py129# ---------------------------------------------------------------------------
MEDIUMtests/unittests/models/test_litellm.py4751# ── Anthropic thinking_blocks tests ─────────────────────────────
MEDIUMtests/unittests/cli/test_trigger_routes.py930# ===================================================================
MEDIUMtests/unittests/cli/test_trigger_routes.py932# ===================================================================
MEDIUMtests/unittests/cli/test_trigger_routes.py45# ---------------------------------------------------------------------------
MEDIUMtests/unittests/cli/test_trigger_routes.py47# ---------------------------------------------------------------------------
MEDIUMtests/unittests/cli/test_trigger_routes.py143# ---------------------------------------------------------------------------
MEDIUMtests/unittests/cli/test_trigger_routes.py145# ---------------------------------------------------------------------------
MEDIUMtests/unittests/cli/test_trigger_routes.py289# ===================================================================
MEDIUMtests/unittests/cli/test_trigger_routes.py291# ===================================================================
MEDIUMtests/unittests/cli/test_trigger_routes.py485# ===================================================================
MEDIUMtests/unittests/cli/test_trigger_routes.py487# ===================================================================
MEDIUMtests/unittests/cli/test_trigger_routes.py821# ===================================================================
MEDIUMtests/unittests/cli/test_trigger_routes.py823# ===================================================================
MEDIUMtests/unittests/cli/test_trigger_routes.py843# ===================================================================
MEDIUMtests/unittests/cli/test_trigger_routes.py845# ===================================================================
MEDIUMtests/unittests/cli/test_trigger_routes.py870# ===================================================================
MEDIUMtests/unittests/cli/test_trigger_routes.py872# ===================================================================
MEDIUMtests/unittests/cli/test_trigger_routes.py955# ===================================================================
MEDIUMtests/unittests/cli/test_trigger_routes.py957# ===================================================================
MEDIUM…nittests/integrations/bigquery/test_bigquery_client.py239# ------------------------------------------------------------------------------
MEDIUM…/integrations/agent_identity/test_gcp_auth_provider.py114# ==============================================================================
MEDIUM…/integrations/agent_identity/test_gcp_auth_provider.py116# ==============================================================================
204 more matches not shown…
Cross-File Repetition172 hits · 860 pts
SeverityFileLineSnippet
HIGH…ntributing/samples/multi_agent/hello_world_ma/agent.py0you are responsible for rolling dice based on the user's request. when asked to roll a die, you must call the roll_die t
HIGHcontributing/samples/a2a/a2a_basic/agent.py0you are responsible for rolling dice based on the user's request. when asked to roll a die, you must call the roll_die t
HIGH…ples/legacy_workflows/simple_sequential_agent/agent.py0you are responsible for rolling dice based on the user's request. when asked to roll a die, you must call the roll_die t
HIGH…/samples/live/live_bidi_streaming_multi_agent/agent.py0you are responsible for rolling dice based on the user's request. when asked to roll a die, you must call the roll_die t
HIGH…ntributing/samples/multi_agent/hello_world_ma/agent.py0you are responsible for checking whether numbers are prime. when asked to check primes, you must call the check_prime to
HIGH…ples/legacy_workflows/simple_sequential_agent/agent.py0you are responsible for checking whether numbers are prime. when asked to check primes, you must call the check_prime to
HIGH…/samples/live/live_bidi_streaming_multi_agent/agent.py0you are responsible for checking whether numbers are prime. when asked to check primes, you must call the check_prime to
HIGH…ntributing/samples/tools/built_in_multi_tools/agent.py0roll a die and return the rolled result. args: sides: the integer number of sides the die has. returns: an integer of th
HIGH…ples/tools/agent_tool_with_grounding_metadata/agent.py0roll a die and return the rolled result. args: sides: the integer number of sides the die has. returns: an integer of th
HIGH…tributing/samples/tools/tool_functions_config/tools.py0roll a die and return the rolled result. args: sides: the integer number of sides the die has. returns: an integer of th
HIGHcontributing/samples/core/hello_world/agent.py0roll a die and return the rolled result. args: sides: the integer number of sides the die has. returns: an integer of th
HIGHcontributing/samples/patterns/fields_planner/agent.py0roll a die and return the rolled result. args: sides: the integer number of sides the die has. returns: an integer of th
HIGH…tributing/samples/config/core_callback_config/tools.py0roll a die and return the rolled result. args: sides: the integer number of sides the die has. returns: an integer of th
HIGH…in_reflect_tool_retry/hallucinating_func_name/agent.py0roll a die and return the rolled result. args: sides: the integer number of sides the die has. returns: an integer of th
HIGHcontributing/samples/models/hello_world_ollama/agent.py0roll a die and return the rolled result. args: sides: the integer number of sides the die has. returns: an integer of th
HIGH…ls/hello_world_litellm_add_function_to_prompt/agent.py0roll a die and return the rolled result. args: sides: the integer number of sides the die has. returns: an integer of th
HIGHcontributing/samples/models/hello_world_gemma/agent.py0roll a die and return the rolled result. args: sides: the integer number of sides the die has. returns: an integer of th
HIGH…ributing/samples/models/hello_world_anthropic/agent.py0roll a die and return the rolled result. args: sides: the integer number of sides the die has. returns: an integer of th
HIGH…ributing/samples/models/hello_world_apigeellm/agent.py0roll a die and return the rolled result. args: sides: the integer number of sides the die has. returns: an integer of th
HIGH…ting/samples/models/hello_world_gemma3_ollama/agent.py0roll a die and return the rolled result. args: sides: the integer number of sides the die has. returns: an integer of th
HIGH…ntributing/samples/models/hello_world_litellm/agent.py0roll a die and return the rolled result. args: sides: the integer number of sides the die has. returns: an integer of th
HIGH…samples/live/live_bidi_streaming_single_agent/agent.py0roll a die and return the rolled result. args: sides: the integer number of sides the die has. returns: an integer of th
HIGH…samples/context_management/history_management/agent.py0roll a die and return the rolled result. args: sides: the integer number of sides the die has. returns: an integer of th
HIGH…samples/context_management/migrate_session_db/agent.py0roll a die and return the rolled result. args: sides: the integer number of sides the die has. returns: an integer of th
HIGH…s/integration/fixture/hello_world_agent_async/agent.py0roll a die and return the rolled result. args: sides: the integer number of sides the die has. returns: an integer of th
HIGHtests/integration/fixture/hello_world_agent/agent.py0roll a die and return the rolled result. args: sides: the integer number of sides the die has. returns: an integer of th
HIGH…tributing/samples/tools/tool_functions_config/tools.py0check if a given list of numbers are prime. args: nums: the list of numbers to check. returns: a str indicating which nu
HIGHcontributing/samples/core/hello_world/agent.py0check if a given list of numbers are prime. args: nums: the list of numbers to check. returns: a str indicating which nu
HIGHcontributing/samples/patterns/fields_planner/agent.py0check if a given list of numbers are prime. args: nums: the list of numbers to check. returns: a str indicating which nu
HIGH…tributing/samples/config/core_callback_config/tools.py0check if a given list of numbers are prime. args: nums: the list of numbers to check. returns: a str indicating which nu
HIGH…es/a2a/a2a_basic/remote_a2a/check_prime_agent/agent.py0check if a given list of numbers are prime. args: nums: the list of numbers to check. returns: a str indicating which nu
HIGH…g/samples/a2a/a2a_root/remote_a2a/hello_world/agent.py0check if a given list of numbers are prime. args: nums: the list of numbers to check. returns: a str indicating which nu
HIGHcontributing/samples/models/hello_world_gemma/agent.py0check if a given list of numbers are prime. args: nums: the list of numbers to check. returns: a str indicating which nu
HIGH…ributing/samples/models/hello_world_anthropic/agent.py0check if a given list of numbers are prime. args: nums: the list of numbers to check. returns: a str indicating which nu
HIGH…ributing/samples/models/hello_world_apigeellm/agent.py0check if a given list of numbers are prime. args: nums: the list of numbers to check. returns: a str indicating which nu
HIGH…ting/samples/models/hello_world_gemma3_ollama/agent.py0check if a given list of numbers are prime. args: nums: the list of numbers to check. returns: a str indicating which nu
HIGH…ntributing/samples/models/hello_world_litellm/agent.py0check if a given list of numbers are prime. args: nums: the list of numbers to check. returns: a str indicating which nu
HIGH…samples/live/live_bidi_streaming_single_agent/agent.py0check if a given list of numbers are prime. args: nums: the list of numbers to check. returns: a str indicating which nu
HIGH…samples/context_management/history_management/agent.py0check if a given list of numbers are prime. args: nums: the list of numbers to check. returns: a str indicating which nu
HIGH…samples/context_management/migrate_session_db/agent.py0check if a given list of numbers are prime. args: nums: the list of numbers to check. returns: a str indicating which nu
HIGH…s/integration/fixture/hello_world_agent_async/agent.py0check if a given list of numbers are prime. args: nums: the list of numbers to check. returns: a str indicating which nu
HIGHtests/integration/fixture/hello_world_agent/agent.py0check if a given list of numbers are prime. args: nums: the list of numbers to check. returns: a str indicating which nu
HIGHcontributing/samples/core/hello_world/agent.py0you roll dice and answer questions about the outcome of the dice rolls. you can roll dice of different sizes. you can us
HIGHcontributing/samples/patterns/fields_planner/agent.py0you roll dice and answer questions about the outcome of the dice rolls. you can roll dice of different sizes. you can us
HIGH…g/samples/a2a/a2a_root/remote_a2a/hello_world/agent.py0you roll dice and answer questions about the outcome of the dice rolls. you can roll dice of different sizes. you can us
HIGHcontributing/samples/models/hello_world_ollama/agent.py0you roll dice and answer questions about the outcome of the dice rolls. you can roll dice of different sizes. you can us
HIGH…ributing/samples/models/hello_world_anthropic/agent.py0you roll dice and answer questions about the outcome of the dice rolls. you can roll dice of different sizes. you can us
HIGH…ributing/samples/models/hello_world_apigeellm/agent.py0you roll dice and answer questions about the outcome of the dice rolls. you can roll dice of different sizes. you can us
HIGH…ntributing/samples/models/hello_world_litellm/agent.py0you roll dice and answer questions about the outcome of the dice rolls. you can roll dice of different sizes. you can us
HIGH…samples/context_management/history_management/agent.py0you roll dice and answer questions about the outcome of the dice rolls. you can roll dice of different sizes. you can us
HIGH…samples/context_management/migrate_session_db/agent.py0you roll dice and answer questions about the outcome of the dice rolls. you can roll dice of different sizes. you can us
HIGH…buting/samples/adk_team/adk_pr_triaging_agent/utils.py0call the agent asynchronously with the user's prompt.
HIGH…ributing/samples/adk_team/adk_answering_agent/utils.py0call the agent asynchronously with the user's prompt.
HIGH…ntributing/samples/adk_team/adk_documentation/utils.py0call the agent asynchronously with the user's prompt.
HIGH…ntributing/samples/adk_team/adk_triaging_agent/main.py0call the agent asynchronously with the user's prompt.
HIGH…g/samples/environment_and_skills/skills_agent/agent.py0returns the current wind speed for a given location.
HIGH…ibuting/samples/environment_and_skills/skills/agent.py0returns the current wind speed for a given location.
HIGH…nvironment_and_skills/local_environment_skill/agent.py0returns the current wind speed for a given location.
HIGH…lls_agent/skills/weather-skill/scripts/get_humidity.py0fetch live humidity for a given location. (simulated)
HIGH…ls/skills/skills/weather-skill/scripts/get_humidity.py0fetch live humidity for a given location. (simulated)
112 more matches not shown…
Self-Referential Comments275 hits · 846 pts
SeverityFileLineSnippet
MEDIUM…buting/samples/tools/output_schema_with_tools/agent.py83# Create the knowledge agent that uses google_search tool.
MEDIUM…buting/samples/tools/output_schema_with_tools/agent.py98# Create the agent with both output_schema and tools
MEDIUMcontributing/samples/tools/pydantic_argument/agent.py161# Create the agent with all Pydantic tools
MEDIUMcontributing/samples/tools/pydantic_argument/main.py61 # Create a session
MEDIUMcontributing/samples/core/logprobs/agent.py97# Create a simple agent that demonstrates logprobs usage
MEDIUM…tributing/samples/adk_team/adk_answering_agent/main.py203 # Create a new session for each discussion to avoid interference.
MEDIUM…es/adk_team/adk_documentation/adk_docs_updater/main.py96 # Create a new session for each suggestion to avoid context interference
MEDIUMcontributing/samples/adk_team/adk_stale_agent/utils.py88# Create a single, reusable Session object for connection pooling
MEDIUM…mples/environment_and_skills/skills_agent_gcs/agent.py36# Define the GCS bucket and skills prefix
MEDIUM…mples/environment_and_skills/skills_agent_gcs/agent.py60# Create the SkillToolset
MEDIUM…mples/environment_and_skills/skills_agent_gcs/agent.py63# Create the Agent
MEDIUM…mples/environment_and_skills/skills_agent_gcs/agent.py84 # Create a Runner
MEDIUM…tributing/samples/plugin/plugin_debug_logging/agent.py106# Create the app with DebugLoggingPlugin
MEDIUM…ributing/samples/mcp/mcp_server_side_sampling/agent.py37# Create the ADK MCPToolset, which connects to the FastMCP server.
MEDIUM…ributing/samples/mcp/mcp_server_side_sampling/agent.py47# Define the ADK agent that uses the MCP toolset.
MEDIUM…ing/samples/mcp/mcp_server_side_sampling/mcp_server.py36# Create the FastMCP Server instance.
MEDIUM…tributing/samples/mcp/mcp_in_agent_tool_stdio/agent.py61# Create main agent
MEDIUM…ples/mcp/mcp_streamablehttp_agent/filesystem_server.py23# Create an MCP server with a name
MEDIUM…ibuting/samples/mcp/mcp_sse_agent/filesystem_server.py22# Create an MCP server with a name
MEDIUMcontributing/samples/mcp/mcp_toolset_auth/agent.py55# Create the MCP toolset with OAuth authentication
MEDIUMcontributing/samples/mcp/mcp_toolset_auth/agent.py64# Define the agent that uses the OAuth-protected MCP toolset
MEDIUMcontributing/samples/mcp/mcp_toolset_auth/main.py64 # Create a session
MEDIUM…ributing/samples/mcp/mcp_in_agent_tool_remote/agent.py54# Create main agent
MEDIUMcontributing/samples/models/interactions_api/main.py331 # Create a new session
MEDIUM…buting/samples/integrations/spanner_rag_agent/agent.py26# Define an appropriate credential type
MEDIUMcontributing/samples/integrations/bigtable/agent.py27# Define an appropriate credential type.
MEDIUMcontributing/samples/integrations/data_agent/agent.py32# Define the desired credential type.
MEDIUMcontributing/samples/integrations/bigquery/agent.py26# Define the desired credential type.
MEDIUMcontributing/samples/integrations/bigquery/agent.py32# Define an appropriate application name
MEDIUM…amples/integrations/oauth2_client_credentials/agent.py112# Create the weather assistant agent
MEDIUMcontributing/samples/integrations/pubsub/agent.py25# Define the desired credential type.
MEDIUMcontributing/samples/integrations/pubsub/agent.py31# Define an appropriate application name
MEDIUMcontributing/samples/integrations/spanner/agent.py31# Define an appropriate credential type
MEDIUM…ing/samples/integrations/sandbox_computer_use/agent.py62# Create the sandbox computer
MEDIUM…ntributing/samples/integrations/spanner_admin/agent.py23# Define an appropriate credential type
MEDIUM…ng/samples/multimodal/static_non_text_content/agent.py127 # Create a temporary file with the sample document
MEDIUM…ng/samples/multimodal/static_non_text_content/agent.py213# Create the root agent with Files API integration
MEDIUM…ributing/samples/multimodal/computer_use/playwright.py26# Define a mapping from the user-friendly key names to Playwright's expected key names.
MEDIUM…/samples/live/live_bidi_streaming_tools_agent/agent.py81 # Create an image part using the blob's data and mime type
MEDIUM…buting/samples/live/live_tool_callbacks_agent/agent.py218# Create the agent with tool callbacks
MEDIUM…ing/samples/context_management/cache_analysis/agent.py640# Create the cache analysis research assistant agent
MEDIUM…ing/samples/context_management/cache_analysis/agent.py837# Create the app with context caching configuration
MEDIUM…ing/samples/context_management/rewind_session/agent.py52# Create the agent
MEDIUM…ting/samples/context_management/rewind_session/main.py100 # Create a session
MEDIUM…ontext_management/postgres_session_service/compose.yml3# This file defines a PostgreSQL service used to demonstrate ADK's
MEDIUMtests/integration/fixture/bigquery_agent/agent.py32# Define an appropriate application name
MEDIUMtests/unittests/test_runners.py496 # Create a function call from sub_agent1
MEDIUMtests/unittests/test_runners.py639 # Create a function call from sub_agent2
MEDIUMtests/unittests/test_runners.py1070 # Create a mock session
MEDIUMtests/unittests/artifacts/test_artifact_service.py42# Define a fixed datetime object to be returned by datetime.now()
MEDIUM…nittests/tools/test_base_google_credentials_manager.py363 # Create a mock credentials instance that will represent our created credentials
MEDIUM…nittests/tools/test_base_google_credentials_manager.py439 # Create the mock credentials instance that will be returned by the constructor
MEDIUM…ts/unittests/tools/test_authenticated_function_tool.py99 # Create a mock auth_type that returns the expected value
MEDIUM…ts/unittests/tools/test_authenticated_function_tool.py522 # Create a spy function to check what arguments are passed
MEDIUMtests/unittests/tools/test_skill_toolset.py1893 # Create a mock registry skill that declares local additional tools
MEDIUMtests/unittests/tools/test_transfer_to_agent_tool.py139 # Create a mock FunctionDeclaration with parameters_json_schema
MEDIUMtests/unittests/tools/test_agent_tool.py626 # Create a test plugin that tracks callbacks
MEDIUMtests/unittests/tools/test_function_tool_pydantic.py124 # Create an existing Pydantic model
MEDIUM…ittests/tools/google_api_tool/test_docs_batchupdate.py404 # Create a mock for the build function
MEDIUM…google_api_tool/test_googleapi_to_openapi_converter.py227 # Create a mock for the build function
215 more matches not shown…
Docstring Block Structure128 hits · 640 pts
SeverityFileLineSnippet
HIGHcontributing/samples/adk_team/adk_stale_agent/utils.py100 Sends a GET request to the GitHub API with automatic retries. Args: url (str): The URL endpoint. param
HIGHcontributing/samples/adk_team/adk_stale_agent/agent.py125 Executes the GraphQL query to fetch raw issue data, including comments, edits, and timeline events. Args:
HIGHcontributing/samples/adk_team/adk_stale_agent/main.py41 Processes a single GitHub issue using the AI agent and logs execution metrics. Args: issue_number (int): The
HIGHcontributing/samples/integrations/gepa/adk_agent.py219Defines and runs an ADK LLM Agent in the provided simulation environment. Args: instruction: The instruction for
HIGH…tributing/samples/integrations/gepa/tau_bench_agent.py99Solves the task using ADK agent. Args: env: The environment to solve the task in. task_index: The index
HIGH…sts/unittests/tools/spanner/test_spanner_query_tool.py59\ Run a Spanner Read-Only query in the spanner database and return the result. Args: project_id (str):
HIGH…sts/unittests/tools/spanner/test_spanner_query_tool.py110\ Run a Spanner Read-Only query in the spanner database and return the result. Args: project_id (str):
HIGH…ests/integrations/bigquery/test_bigquery_query_tool.py90\ Run a BigQuery or BigQuery ML SQL query in the project and return the result. Args: project_id (str):
HIGH…ests/integrations/bigquery/test_bigquery_query_tool.py189\ Run a BigQuery or BigQuery ML SQL query in the project and return the result. Args: project_id (str):
HIGH…ests/integrations/bigquery/test_bigquery_query_tool.py426\ Run a BigQuery or BigQuery ML SQL query in the project and return the result. Args: project_id (str):
HIGHsrc/google/adk/runners.py845Gets the session or creates it if auto-creation is enabled. This helper first attempts to retrieve the session. If
HIGHsrc/google/adk/runners.py956Main entry method to run the agent in this runner. If event compaction is enabled in the App configuration, it will
HIGHsrc/google/adk/runners.py1785Debug helper for quick agent experimentation and testing. This convenience method is designed for developers gettin
HIGHsrc/google/adk/runners.py1933Sets up the context for a resumed invocation. Args: session: The session to set up the invocation context for
HIGHsrc/google/adk/artifacts/file_artifact_service.py91Returns the absolute artifact directory and its relative path. The caller is expected to pass the scope root director
HIGHsrc/google/adk/tools/_gemini_schema_util.py36Converts a string into snake_case. Handles lowerCamelCase, UpperCamelCase, or space-separated case, acronyms (e.g.,
HIGHsrc/google/adk/tools/bigtable/query_tool.py46Execute a GoogleSQL query from a Bigtable table. Args: project_id (str): The GCP project id in which the query
HIGHsrc/google/adk/tools/data_agent/data_agent_tool.py54Lists accessible data agents in a project. Args: project_id: The project to list agents in. credentials:
HIGHsrc/google/adk/tools/data_agent/data_agent_tool.py141Gets a data agent by name. Args: data_agent_name: The name of the agent to get, in format projects/{pro
HIGHsrc/google/adk/tools/data_agent/data_agent_tool.py212Asks a question to a data agent. Args: data_agent_name: The resource name of an existing data agent to ask, in
HIGH…/google/adk/tools/apihub_tool/clients/apihub_client.py205Extracts the resource names of an API, API Version, and API Spec from a given URL or path. Args: url_or_pat
HIGHsrc/google/adk/tools/spanner/search_tool.py248Similarity search in Spanner using a text query. The function will use embedding service (provided from options) to e
HIGHsrc/google/adk/tools/spanner/search_tool.py540Performs a semantic similarity search to retrieve relevant context from the Spanner vector store. This function perfo
HIGHsrc/google/adk/tools/spanner/metadata_tool.py33List tables within the database. Args: project_id (str): The Google Cloud project id. instance_id (str):
HIGHsrc/google/adk/tools/spanner/metadata_tool.py84Get schema and metadata information about a Spanner table. Args: project_id (str): The Google Cloud project id.
HIGHsrc/google/adk/tools/spanner/metadata_tool.py298Get index information about a Spanner table. Args: project_id (str): The Google Cloud project id. instanc
HIGHsrc/google/adk/tools/spanner/metadata_tool.py398Get the columns in each index of a Spanner table. Args: project_id (str): The Google Cloud project id. in
HIGHsrc/google/adk/tools/spanner/metadata_tool.py501Get the named schemas in the Spanner database. Args: project_id (str): The Google Cloud project id. insta
HIGHsrc/google/adk/tools/spanner/query_tool.py39Run a Spanner Read-Only query in the spanner database and return the result. Args: project_id (str): The GCP pr
HIGHsrc/google/adk/tools/spanner/query_tool.py97\ Run a Spanner Read-Only query in the spanner database and return the result. Args: project_id (str): The GCP proj
HIGHsrc/google/adk/tools/spanner/admin_tool.py31List Spanner instances within a project. Args: project_id: The Google Cloud project id. credentials: The
HIGHsrc/google/adk/tools/spanner/admin_tool.py72Get details of a Spanner instance. Args: project_id: The Google Cloud project id. instance_id: The Spanne
HIGHsrc/google/adk/tools/spanner/admin_tool.py124List Spanner instance configs available for a project. Args: project_id: The Google Cloud project id. cre
HIGHsrc/google/adk/tools/spanner/admin_tool.py164Get details of a Spanner instance config. Args: project_id: The Google Cloud project id. config_id: The S
HIGHsrc/google/adk/tools/spanner/admin_tool.py233Create a Spanner instance. Args: project_id: The Google Cloud project id. instance_id: The Spanner instan
HIGHsrc/google/adk/tools/spanner/admin_tool.py290List Spanner databases within an instance. Args: project_id: The Google Cloud project id. instance_id: Th
HIGHsrc/google/adk/tools/spanner/admin_tool.py335Create a Spanner database. Args: project_id: The Google Cloud project id. instance_id: The Spanner instan
HIGH…ication_integration_tool/clients/connections_client.py93Retrieves the JSON schema for a given entity in a connection. Args: entity (str): The entity name. Ret
HIGH…ication_integration_tool/clients/connections_client.py123Retrieves the input and output JSON schema for a given action in a connection. Args: action (str): The acti
HIGH…ication_integration_tool/clients/connections_client.py848Executes an API call to the given URL. Args: url (str): The URL to call. Returns: requests.Res
HIGH…ication_integration_tool/clients/connections_client.py892Polls an operation until it is done. Args: operation_id: The ID of the operation to poll. Returns:
HIGHsrc/google/adk/tools/mcp_tool/session_context.py163Run a coroutine while monitoring the background session task. Races the given coroutine against the background task
HIGHsrc/google/adk/tools/mcp_tool/mcp_session_manager.py416Creates an MCP client based on the connection parameters. Args: merged_headers: Optional headers to include
HIGHsrc/google/adk/tools/mcp_tool/conversion_utils.py28Convert a Tool in ADK into MCP tool type. This function transforms an ADK tool definition into its equivalent repre
HIGHsrc/google/adk/tools/mcp_tool/conversion_utils.py64Converts a Gemini Schema object into a JSON Schema dictionary. Args: gemini_schema: An instance of the Gemini S
HIGHsrc/google/adk/tools/mcp_tool/mcp_tool.py507Extracts authentication headers from credentials. Args: tool_context: The tool context of the current invoc
HIGH…ools/openapi_tool/openapi_spec_parser/rest_api_tool.py317Prepares the request parameters for the API call. Args: parameters: A list of ApiParameter objects represen
HIGHsrc/google/adk/tools/openapi_tool/auth/auth_helpers.py80Creates a AuthScheme and AuthCredential for API key or bearer token. Examples: ``` # API Key in header auth_sch
HIGHsrc/google/adk/tools/openapi_tool/auth/auth_helpers.py211Constructs OpenID scheme and credential from configuration and credential dictionaries. Args: config_dict: Dict
HIGHsrc/google/adk/tools/openapi_tool/auth/auth_helpers.py275Constructs OpenID scheme and credential from OpenID URL, scopes, and credential dictionary. Fetches OpenID configurat
HIGHsrc/google/adk/tools/openapi_tool/auth/auth_helpers.py430Converts a dictionary to a FastAPI AuthScheme object. Args: data: The dictionary representing the security sche
HIGH…uth/credential_exchangers/service_account_exchanger.py87Exchanges the service account credential for an ID token. Args: sa_config: The service account configuratio
HIGH…uth/credential_exchangers/service_account_exchanger.py137Exchanges the service account credential for an access token. Args: sa_config: The service account configur
HIGH…uth/credential_exchangers/base_credential_exchanger.py41Exchanges the provided authentication credential for a usable token/credential. Args: auth_scheme: The secu
HIGH…pi_tool/auth/credential_exchangers/oauth2_exchanger.py94Exchanges the OpenID Connect auth credential for an access token or an auth URI. Args: auth_scheme: The aut
HIGH…google/adk/auth/exchanger/base_credential_exchanger.py51Exchange credential if needed. Args: auth_credential: The credential to exchange. auth_scheme: The
HIGH…ogle/adk/auth/exchanger/oauth2_credential_exchanger.py56Exchange OAuth2 credential from authorization response. if credential exchange failed, the original credential will
HIGH…google/adk/auth/refresher/base_credential_refresher.py62Refreshes a credential if needed. Args: auth_credential: The credential to refresh. auth_scheme: Th
HIGHsrc/google/adk/plugins/plugin_manager.py278Executes a specific callback for all registered plugins. This private method iterates through the plugins and calls
HIGHsrc/google/adk/a2a/converters/event_converter.py111Gets the context metadata for the event. Args: event: The ADK event to extract metadata from. invocation_cont
68 more matches not shown…
Excessive Try-Catch Wrapping390 hits · 398 pts
SeverityFileLineSnippet
LOW…buting/samples/tools/output_schema_with_tools/agent.py68 except Exception as e:
LOWcontributing/samples/tools/pydantic_argument/main.py98 except Exception as e:
MEDIUM…buting/samples/adk_team/adk_pr_triaging_agent/utils.py80 print(f"Error: File not found: {file_path}.")
LOW…ng/samples/adk_team/adk_issue_monitoring_agent/main.py148 except Exception as e:
LOW…ng/samples/adk_team/adk_issue_monitoring_agent/main.py165 except Exception as e:
LOW…ng/samples/adk_team/adk_issue_monitoring_agent/main.py172 except Exception as e:
MEDIUM…ributing/samples/adk_team/adk_answering_agent/utils.py97 print(f"Error: Invalid GCS link format: {gcs_uri}")
MEDIUM…ributing/samples/adk_team/adk_answering_agent/utils.py111 print(f"Error: Failed to parse GCS link '{gcs_uri}': {e}")
MEDIUM…tributing/samples/adk_team/adk_answering_agent/main.py82 print(f"Error from GitHub API: {response['errors']}", file=sys.stderr)
MEDIUM…tributing/samples/adk_team/adk_answering_agent/main.py179 print("Error: Discussion JSON missing 'number' field.", file=sys.stderr)
MEDIUM…tributing/samples/adk_team/adk_answering_agent/main.py186 print(f"Error: File not found: {args.discussion_file}", file=sys.stderr)
MEDIUM…tributing/samples/adk_team/adk_answering_agent/main.py189 print(f"Error: Invalid JSON in {source_desc}: {e}", file=sys.stderr)
MEDIUM…g/samples/adk_team/adk_issue_formatting_agent/utils.py53 print(f"Error: File not found: {file_path}.")
LOW…es/adk_team/adk_documentation/adk_docs_updater/main.py126 except Exception as e:
LOWcontributing/samples/adk_team/adk_stale_agent/agent.py97 except Exception as e:
LOWcontributing/samples/adk_team/adk_stale_agent/agent.py452 except Exception as e:
LOWcontributing/samples/adk_team/adk_stale_agent/main.py88 except Exception as e:
LOWcontributing/samples/adk_team/adk_stale_agent/main.py121 except Exception as e:
LOWcontributing/samples/adk_team/adk_stale_agent/main.py191 except Exception as e:
MEDIUM…ntributing/samples/adk_team/adk_triaging_agent/main.py86 print(f"Error fetching issue #{issue_number}: {e}")
MEDIUM…ntributing/samples/adk_team/adk_triaging_agent/main.py134 print(f"Error: Invalid issue number received: {ISSUE_NUMBER}.")
LOWcontributing/samples/adk_team/adk_pr_agent/agent.py66 except Exception as e: # pylint: disable=broad-except
LOW…mples/environment_and_skills/skills_agent_gcs/agent.py57except Exception as e: # pylint: disable=broad-exception-caught
LOW…tributing/samples/plugin/plugin_debug_logging/agent.py84 except Exception as e:
LOWcontributing/samples/workflows/auth_oauth/agent.py111 except Exception as e:
LOW…ing/samples/mcp/mcp_server_side_sampling/mcp_server.py61 except Exception as e:
LOW…ples/mcp/mcp_streamablehttp_agent/filesystem_server.py96 except Exception as e:
LOW…ibuting/samples/mcp/mcp_sse_agent/filesystem_server.py84 except Exception as e:
LOWcontributing/samples/mcp/mcp_toolset_auth/main.py105 except Exception as e:
LOWcontributing/samples/models/interactions_api/main.py306 except Exception:
LOWcontributing/samples/models/interactions_api/main.py355 except Exception as e:
LOW…g/samples/integrations/authn-adk-all-in-one/idp/app.py498 except Exception as e:
LOW…g/samples/integrations/authn-adk-all-in-one/idp/app.py528 except Exception as e:
LOW…g/samples/integrations/authn-adk-all-in-one/idp/app.py562 except Exception as e:
MEDIUM…g/samples/integrations/authn-adk-all-in-one/idp/app.py484def admin_update_config():
MEDIUM…g/samples/integrations/authn-adk-all-in-one/idp/app.py503def admin_add_user():
MEDIUM…g/samples/integrations/authn-adk-all-in-one/idp/app.py533def admin_add_client():
LOW…grations/authn-adk-all-in-one/hotel_booker_app/main.py145 except Exception as e:
LOWcontributing/samples/integrations/data_agent/agent.py120 except Exception as e: # pylint: disable=broad-exception-caught
LOWcontributing/samples/integrations/gepa/experiment.py181 except Exception as e:
LOW…ibuting/samples/integrations/gepa/voter_agent/tools.py221 except Exception as e:
LOW…ibuting/samples/integrations/gepa/voter_agent/tools.py303 except Exception as e:
LOW…ations/oauth2_client_credentials/oauth2_test_server.py155 except Exception:
LOW…amples/integrations/oauth2_client_credentials/agent.py108 except Exception as e:
LOW…samples/integrations/oauth2_client_credentials/main.py123 except Exception as e:
MEDIUM…ing/samples/multimodal/static_non_text_content/main.py155 print(f"Error: {e}")
LOW…ing/samples/multimodal/static_non_text_content/main.py218 except Exception as e:
LOW…ributing/samples/multimodal/computer_use/playwright.py154 except Exception as e:
MEDIUM…ve/live_agent_api_server_example/live_agent_example.py682 print(f"Error sending file: {e_sendfile}")
LOW…ve/live_agent_api_server_example/live_agent_example.py302 except Exception as e:
LOW…ve/live_agent_api_server_example/live_agent_example.py310 except Exception as e:
LOW…ve/live_agent_api_server_example/live_agent_example.py559 except Exception as e:
LOW…ve/live_agent_api_server_example/live_agent_example.py567 except Exception as e:
LOW…ve/live_agent_api_server_example/live_agent_example.py574 except Exception as e:
LOW…ve/live_agent_api_server_example/live_agent_example.py157 except Exception as e:
LOW…ve/live_agent_api_server_example/live_agent_example.py263 except Exception as e:
LOW…ve/live_agent_api_server_example/live_agent_example.py269 except Exception as e:
LOW…ve/live_agent_api_server_example/live_agent_example.py282 except Exception as e_sd_close:
LOW…ve/live_agent_api_server_example/live_agent_example.py379 except Exception as e:
LOW…ve/live_agent_api_server_example/live_agent_example.py432 except Exception as e:
330 more matches not shown…
Deep Nesting367 hits · 320 pts
SeverityFileLineSnippet
LOWcontributing/samples/core/artifacts/agent.py159
LOWcontributing/samples/core/runner_debug_example/main.py132
LOW…g/samples/adk_team/adk_issue_monitoring_agent/utils.py114
LOW…g/samples/adk_team/adk_issue_monitoring_agent/agent.py46
LOW…adk_answering_agent/upload_docs_to_vertex_ai_search.py54
LOW…tributing/samples/adk_team/adk_answering_agent/main.py145
LOW…adk_team/adk_answering_agent/gemini_assistant/agent.py29
LOW…ntributing/samples/adk_team/adk_documentation/tools.py118
LOW…ntributing/samples/adk_team/adk_documentation/tools.py254
LOW…ntributing/samples/adk_team/adk_documentation/tools.py696
LOWcontributing/samples/adk_team/adk_stale_agent/utils.py200
LOWcontributing/samples/adk_team/adk_pr_agent/agent.py30
LOW…les/patterns/context_offloading_with_artifact/agent.py53
LOW…les/patterns/context_offloading_with_artifact/agent.py192
LOWcontributing/samples/hitl/human_in_loop/main.py42
LOWcontributing/samples/hitl/human_in_loop/main.py52
LOW…cp/mcp_progress_callback_agent/mock_progress_server.py84
LOWcontributing/samples/mcp/mcp_toolset_auth/main.py48
LOW…uting/samples/models/litellm_inline_tool_call/agent.py96
LOWcontributing/samples/models/interactions_api/main.py57
LOW…g/samples/integrations/authn-adk-all-in-one/idp/app.py319
LOWcontributing/samples/integrations/gepa/experiment.py49
LOWcontributing/samples/integrations/gepa/rater_lib.py30
LOWcontributing/samples/integrations/gepa/rater_lib.py90
LOW…ting/samples/integrations/sandbox_computer_use/main.py51
LOW…ng/samples/multimodal/static_non_text_content/agent.py55
LOW…ributing/samples/multimodal/computer_use/playwright.py232
LOW…/samples/live/live_bidi_streaming_tools_agent/agent.py51
LOW…ve/live_agent_api_server_example/live_agent_example.py397
LOW…ve/live_agent_api_server_example/live_agent_example.py437
LOW…ve/live_agent_api_server_example/live_agent_example.py209
LOW…ve/live_agent_api_server_example/live_agent_example.py319
LOW…ve/live_agent_api_server_example/live_agent_example.py493
LOW…ve/live_agent_api_server_example/live_agent_example.py579
LOW…ext_management/cache_analysis/run_cache_experiments.py541
LOW…ting/samples/context_management/rewind_session/main.py56
LOW…samples/context_management/static_instruction/agent.py142
LOWcontributing/dev/utils/build_llms_txt.py105
LOWcontributing/dev/utils/build_llms_txt.py269
LOWcontributing/dev/utils/build_llms_txt.py111
LOWtests/integration/conftest.py95
LOW…tion/fixture/ecommerce_customer_service_agent/agent.py250
LOW…tegration/integrations/agent_identity/test_3lo_flow.py141
LOWtests/unittests/testing_utils.py139
LOW…sts/unittests/tools/test_function_tool_declarations.py108
LOW…s/unittests/tools/bigtable/test_bigtable_query_tool.py133
LOW…s/unittests/tools/mcp_tool/test_mcp_session_manager.py587
LOW…s/unittests/tools/mcp_tool/test_mcp_session_manager.py913
LOW…s/unittests/tools/mcp_tool/test_mcp_session_manager.py1055
LOW…sts/unittests/plugins/test_context_filtering_plugin.py222
LOW…sts/unittests/plugins/test_context_filtering_plugin.py270
LOW…sts/unittests/plugins/test_context_filtering_plugin.py318
LOW…ttests/plugins/test_bigquery_agent_analytics_plugin.py2011
LOW…ttests/plugins/test_bigquery_agent_analytics_plugin.py5152
LOWtests/unittests/agents/test_llm_agent_interruptions.py67
LOWtests/unittests/agents/test_base_agent.py440
LOWtests/unittests/agents/test_base_agent.py501
LOWtests/unittests/agents/test_model_callback_chain.py134
LOWtests/unittests/agents/test_model_callback_chain.py196
LOWtests/unittests/agents/test_remote_a2a_agent.py2035
307 more matches not shown…
Verbosity Indicators90 hits · 162 pts
SeverityFileLineSnippet
LOW…ng/samples/adk_team/adk_issue_monitoring_agent/main.py161 # Step 1: Fetch Maintainers
LOW…ng/samples/adk_team/adk_issue_monitoring_agent/main.py169 # Step 2: Fetch target issues
LOW…ng/samples/adk_team/adk_issue_monitoring_agent/main.py186 # Step 3: Iterate through issues async 'CONCURRENCY_LIMIT' at a time
LOW…g/samples/adk_team/adk_issue_formatting_agent/agent.py163 ## Step 1: Identify Issue Type & Applicability
LOW…g/samples/adk_team/adk_issue_formatting_agent/agent.py173 ## Step 2: Analyze the Issue Content
LOW…g/samples/adk_team/adk_issue_formatting_agent/agent.py192 ## Step 3: Formulate and Post a Comment (If Necessary)
LOW…ntributing/samples/adk_team/adk_documentation/tools.py339 # Step 0: Ensure we are on the base branch and it's up to date.
LOW…ntributing/samples/adk_team/adk_documentation/tools.py343 # Step 1: Create a new, unique branch from the base branch.
LOW…ntributing/samples/adk_team/adk_documentation/tools.py349 # Step 2: Apply the file changes.
LOW…ntributing/samples/adk_team/adk_documentation/tools.py360 # Step 3: Stage the changes.
LOW…ntributing/samples/adk_team/adk_documentation/tools.py364 # Step 4: Commit the changes.
LOW…ntributing/samples/adk_team/adk_documentation/tools.py368 # Step 5: Push the new branch to the remote repository.
LOW…ntributing/samples/adk_team/adk_documentation/tools.py372 # Step 6: Create the pull request via GitHub API.
LOWtests/unittests/models/test_litellm.py2658 # Step 2: Convert to ADK internal format (types.Content)
LOWtests/unittests/models/test_litellm.py2663 # Step 3: Convert back to litellm format
LOWtests/unittests/models/test_litellm.py4919 # Step 1: Extract reasoning value
LOWtests/unittests/models/test_litellm.py4923 # Step 2: Convert to parts (preserves signature)
LOWtests/unittests/models/test_litellm.py4928 # Step 3: Build Content for history
LOWtests/unittests/models/test_litellm.py4932 # Step 4: Convert back to message param for Anthropic
LOWtests/unittests/models/test_litellm.py2641 # Step 1: Incoming litellm message with thought_signature
LOWtests/unittests/workflow/test_dynamic_node_scheduler.py1021 # Step 1: root delegates to child
LOWtests/unittests/workflow/test_dynamic_node_scheduler.py1032 # Step 2: child delegates to grandchild
LOWtests/unittests/workflow/test_dynamic_node_scheduler.py1043 # Step 3: grandchild transfers back to child
LOWtests/unittests/workflow/test_dynamic_node_scheduler.py1054 # Step 4: child transfers back to root
LOWtests/unittests/runners/test_resume_invocation.py60 # Step 1: Setup
LOWtests/unittests/runners/test_resume_invocation.py88 # Step 2: Run the first invocation
LOWtests/unittests/runners/test_resume_invocation.py121 # Step 3: Run the second invocation
LOWtests/unittests/runners/test_resume_invocation.py152 # Step 4: Resume the second invocation with function response.
LOWtests/unittests/runners/test_resume_invocation.py200 # Step 1: Setup
LOWtests/unittests/runners/test_resume_invocation.py224 # Step 2: Run the first invocation, which pauses on the long running function.
LOWtests/unittests/runners/test_resume_invocation.py253 # Step 3: Run the second invocation, expect it to finish normally.
LOWtests/unittests/runners/test_resume_invocation.py272 # Step 4: Run the third invocation, which also pauses on the long running
LOWtests/unittests/runners/test_resume_invocation.py291 # Step 5: Resume the first invocation with long running function response.
LOWtests/unittests/runners/test_run_tool_confirmation.py660 # Step 1:
LOWtests/unittests/runners/test_run_tool_confirmation.py715 # Step 2:
LOW.agents/skills/adk-pr-triage/scripts/triage_pr.py237 # Step 0: Fetch PR data in one-shot
LOW.agents/skills/adk-pr-triage/scripts/triage_pr.py242 # Step 1: Verify CLA using cached PR data
LOW.agents/skills/adk-pr-triage/scripts/triage_pr.py246 # Step 2: Output the PR metadata JSON directly to standard output
LOW.agents/skills/adk-pr-triage/scripts/triage_pr.py251 # Step 3: Verify PR Assignment using cached PR data
LOW.agents/skills/adk-pr-triage/scripts/triage_pr.py255 # Step 4: Update branch
LOW.github/workflows/release-cut.yml1# Step 1: Starts the release process by creating a release/candidate branch.
LOW.github/workflows/release-finalize.yml1# Step 4: Triggers when the changelog PR is merged to release/candidate.
LOW.github/workflows/release-publish.yml1# Step 6: Builds and publishes the package to PyPI from a release/v{version} branch.
LOWsrc/google/adk/runners.py1903 # Step 1: Create invocation context in memory.
LOWsrc/google/adk/runners.py1909 # Step 2: Handle new message, by running callbacks and appending to
LOWsrc/google/adk/runners.py1918 # Step 3: Set agent to run for the invocation.
LOWsrc/google/adk/runners.py1952 # Step 1: Maybe retrieve a previous user message for the invocation.
LOWsrc/google/adk/runners.py1960 # Step 2: Create invocation context.
LOWsrc/google/adk/runners.py1967 # Step 3: Maybe handle new message.
LOWsrc/google/adk/runners.py1976 # Step 4: Populate agent states for the current invocation.
LOWsrc/google/adk/runners.py1978 # Step 5: Set agent to run for the invocation.
LOWsrc/google/adk/runners.py1367 # Step 1: Run the before_run callbacks to see if we should early exit.
LOWsrc/google/adk/runners.py1387 # Step 2: Otherwise continue with normal execution
LOWsrc/google/adk/runners.py1409 # Step 3: Run the on_event callbacks before persisting so callback
LOWsrc/google/adk/runners.py1473 # Step 4: Run the after_run callbacks to perform global cleanup tasks or
LOWsrc/google/adk/auth/credential_manager.py186 # Step 0: Handle CustomAuthScheme if present
LOWsrc/google/adk/auth/credential_manager.py231 # Step 1: Validate credential configuration
LOWsrc/google/adk/auth/credential_manager.py234 # Step 2: Check if credential is already ready (no processing needed)
LOWsrc/google/adk/auth/credential_manager.py240 # Step 3: Try to load existing processed credential
LOWsrc/google/adk/auth/credential_manager.py243 # Step 4: If no existing credential, load from auth response
30 more matches not shown…
Redundant / Tautological Comments92 hits · 136 pts
SeverityFileLineSnippet
LOW…ributing/samples/adk_team/adk_answering_agent/utils.py142 # Check if the generated link exists
LOW…ributing/samples/hitl/human_tool_confirmation/agent.py81 # Set require_confirmation to True or a callable to require user
LOW…uting/samples/mcp/mcp_toolset_auth/oauth_mcp_server.py105 # Check if this is an MCP request
LOWcontributing/samples/models/interactions_api/main.py304 # Check if interactions attribute exists
LOWcontributing/samples/models/interactions_api/main.py316 # Check if interactions API is available
LOWcontributing/samples/models/interactions_api/main.py365 # Check if interactions API is available
LOW…ng/samples/multimodal/static_non_text_content/agent.py113 # Check if file already exists
LOW…ve/live_agent_api_server_example/live_agent_example.py298 if pya_output_stream_instance.is_active(): # Check if stream is active
LOWtests/unittests/test_optional_dependencies.py33# Check if we should run integration tests that require network/install
LOW…i_tool/openapi_spec_parser/test_openapi_spec_parser.py74 # Check if operationId is auto generated based on path and method.
LOW…ntial_service/test_session_state_credential_service.py234 # Set exchanged_auth_credential to None
LOW…ntial_service/test_session_state_credential_service.py251 # Set credential_key to empty string
LOWtests/unittests/a2a/converters/test_event_converter.py165 # Check if error_code is in the result - it should be there since we set it
LOWtests/unittests/cli/utils/test_agent_loader.py531 # Check if it's an LlmAgent before accessing model and instruction
LOWtests/unittests/cli/utils/test_agent_loader.py834 # Check if it's an LlmAgent before accessing model and instruction
LOW…ts/unittests/streaming/test_streaming_audio_storage.py90# # Check if artifacts were created
LOWtests/unittests/workflow/test_function_node.py552 # Check if received_input contains Section objects
LOWtests/unittests/workflow/test_function_node.py591 # Check if received_input contains Section objects
LOWtests/unittests/evaluation/test_local_eval_service.py720 # Check if this is the specific cancel scope error we're testing for
LOW…ests/flows/llm_flows/test_progressive_sse_streaming.py773 # Check if this is a follow-up call (after function response)
LOW…sts/unittests/flows/llm_flows/test_functions_simple.py558 # Check if the response has the expected structure
LOWscripts/check_new_py_files.sh8 # Check if file is not empty (happens if no new files)
LOWscripts/db_migration.sh132 # Check if the first line is already the import statement
LOW.github/workflows/check-file-contents.yml64 # Check if the list of non-compliant files is empty
LOWsrc/google/adk/tools/function_tool.py171 # Check if the target type is a Pydantic model
LOWsrc/google/adk/tools/_google_credentials.py203 # Check if we have valid credentials
LOWsrc/google/adk/tools/_google_credentials.py259 # Check if OAuth response is available
LOW…/google/adk/tools/computer_use/computer_use_toolset.py137 # Check if it's a method defined in BaseComputer class
LOW…/google/adk/tools/computer_use/computer_use_toolset.py215 # Check if it's a method defined in Computer class
LOW…/google/adk/tools/computer_use/computer_use_toolset.py257 # Check if computer use is already configured
LOWsrc/google/adk/tools/mcp_tool/mcp_session_manager.py485 # Check if we have an existing session
LOWsrc/google/adk/tools/mcp_tool/mcp_session_manager.py489 # Check if the existing session is still connected and bound to
LOWsrc/google/adk/tools/mcp_tool/mcp_tool.py183 # Set GOOGLE_API_PREVENT_AGENT_TOKEN_SHARING_FOR_GCP_SERVICES to false
LOWsrc/google/adk/tools/mcp_tool/mcp_toolset.py165 # Set GOOGLE_API_PREVENT_AGENT_TOKEN_SHARING_FOR_GCP_SERVICES to false
LOW…penapi_tool/openapi_spec_parser/openapi_spec_parser.py311 # Check if we have a cached resolved value
LOWsrc/google/adk/auth/auth_handler.py97 # Check if raw_auth_credential exists
LOWsrc/google/adk/auth/auth_handler.py104 # Check if oauth2 exists in raw_auth_credential
LOW…/google/adk/plugins/bigquery_agent_analytics_plugin.py1046 # Check if it's already a valid JSON object or array to avoid double-encoding
LOWsrc/google/adk/a2a/executor/a2a_agent_executor_impl.py135 # Check if the user input is responding to the agent's
LOWsrc/google/adk/agents/run_config.py117 # Check if it's text (not function call)
LOWsrc/google/adk/agents/run_config.py151 # Check if this is text (not a function call)
LOWsrc/google/adk/utils/context_utils.py62 # Check if it's exactly the Context type (or an alias like ToolContext)
LOWsrc/google/adk/utils/streaming_utils.py206 # Check if function call is complete
LOWsrc/google/adk/utils/streaming_utils.py222 # Check if this is a streaming FC (has partialArgs or will_continue=True)
LOWsrc/google/adk/utils/streaming_utils.py285 # Check if we need to flush the current buffer first
LOWsrc/google/adk/utils/cache_performance_analyzer.py66 # Check if event has cache metadata and optionally filter by agent
LOWsrc/google/adk/utils/feature_decorator.py76 # Check if usage should be bypassed via environment variable at call time
LOWsrc/google/adk/utils/feature_decorator.py98 # Check if usage should be bypassed via environment variable at call time
LOWsrc/google/adk/models/lite_llm.py769 # Check if thought signature is embedded in the tool call ID
LOWsrc/google/adk/models/lite_llm.py2123 # Check if warning should be suppressed via environment variable
LOWsrc/google/adk/models/registry.py163 # Check if it matches known patterns that require optional dependencies
LOWsrc/google/adk/models/gemini_context_cache_manager.py75 # Check if we have existing cache metadata and if it's valid
LOWsrc/google/adk/models/gemini_context_cache_manager.py217 # Check if cache has expired
LOWsrc/google/adk/models/gemini_context_cache_manager.py222 # Check if cache has been used for too many invocations
LOWsrc/google/adk/models/gemini_context_cache_manager.py235 # Check if fingerprint matches using cached contents count
LOWsrc/google/adk/models/gemini_context_cache_manager.py304 # Check if we have token count from previous response for cache size validation
LOWsrc/google/adk/models/google_llm.py504 # Check if computer use is configured
LOWsrc/google/adk/models/apigee_llm.py219 # Check if computer use is configured
LOWsrc/google/adk/cli/cli_eval.py281 # Check if all elements in the column are NOT None
LOWsrc/google/adk/cli/cli_tools_click.py1015 # Check if the first entry is a file that exists, if it does then we assume
32 more matches not shown…
Hallucination Indicators12 hits · 120 pts
SeverityFileLineSnippet
CRITICAL…on_integration_tool/clients/test_connections_client.py593 google.oauth2.service_account.Credentials.from_service_account_info.assert_called_once_with(
CRITICAL…/unittests/agents/test_gemini_context_cache_manager.py130 self.manager.genai_client.aio.caches.create.assert_not_called()
CRITICAL…/unittests/agents/test_gemini_context_cache_manager.py162 self.manager.genai_client.aio.caches.create.assert_not_called()
CRITICAL…/unittests/agents/test_gemini_context_cache_manager.py203 self.manager.genai_client.aio.caches.create.assert_called_once()
CRITICAL…/unittests/agents/test_gemini_context_cache_manager.py238 self.manager.genai_client.aio.caches.create.assert_not_called()
CRITICAL…/unittests/agents/test_gemini_context_cache_manager.py321 self.manager.genai_client.aio.caches.delete.assert_called_once_with(
CRITICAL…/unittests/agents/test_gemini_context_cache_manager.py588 self.manager.genai_client.aio.caches.create.assert_not_called()
CRITICAL…/unittests/agents/test_gemini_context_cache_manager.py612 self.manager.genai_client.aio.caches.create.assert_not_called()
CRITICAL…/unittests/agents/test_gemini_context_cache_manager.py628 self.manager.genai_client.aio.caches.create.assert_not_called()
CRITICAL…/unittests/agents/test_gemini_context_cache_manager.py953 self.manager.genai_client.aio.caches.create.assert_called_once()
CRITICALsrc/google/adk/cli/browser/chunk-T2UY75BD.js10}`,c=Qe(h,{schema:Je})}r=c?.type??r,c?.alias&&(!a||a.text===t)&&(a={text:c.alias,wrap:a?.wrap,type:r});let l=this.state.
CRITICALsrc/google/adk/cli/browser/chunk-WXI2IBAH.js40`+t.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=i.text):r.push(t);continue}if(e){let i="Infinite loop on byt
Cross-Language Confusion12 hits · 78 pts
SeverityFileLineSnippet
HIGH…ttests/plugins/test_bigquery_agent_analytics_plugin.py301 assert table.schema.equals(
HIGHtests/unittests/utils/test_schema_utils.py123 json_text = '{"name": "test", "optional_field": null}'
HIGHtests/unittests/models/test_completions_http_client.py693 ' "Hello"}, "finish_reason": null}]}\n'
HIGHtests/unittests/models/test_completions_http_client.py702 ' "Hello"}, "finish_reason": null}]}\n'
HIGHtests/unittests/models/test_completions_http_client.py716 ' "Hello"}, "finish_reason": null}]}\n'
HIGHtests/unittests/models/test_completions_http_client.py730 ' "Hello"}, "finish_reason": null}]}\n'
HIGHtests/unittests/telemetry/test_spans.py1235 ' tool.","parameters":null,"type":"function"},{"name":"mock_tool","description":"Description'
HIGHtests/unittests/telemetry/test_spans.py1237 ' tool.","parameters":null,"type":"function"},{"name":"google_maps","type":"google_maps"},{"name":"mcp_tool","desc
HIGHtests/unittests/telemetry/test_spans.py1246 ' tool.","parameters":null,"type":"function"},{"name":"mock_tool","description":"Description'
HIGHtests/unittests/telemetry/test_spans.py1248 ' tool.","parameters":null,"type":"function"},{"name":"google_maps","type":"google_maps"},{"name":"mcp_tool","desc
HIGHtests/unittests/telemetry/test_spans.py1250 ' session","parameters":null,"type":"function"},{"name":"mcp_tool","description":"A'
HIGHtests/unittests/telemetry/test_spans.py1251 ' standalone mcp tool","parameters":null,"type":"function"}]'
Dead Code36 hits · 71 pts
SeverityFileLineSnippet
MEDIUMtests/unittests/cli/test_fast_api.py1538
MEDIUMtests/unittests/cli/test_fast_api.py2522
MEDIUMtests/unittests/cli/test_trigger_routes.py101
MEDIUMtests/unittests/cli/test_trigger_routes.py140
MEDIUMtests/unittests/cli/test_trigger_routes.py915
MEDIUMtests/unittests/streaming/test_multi_agent_streaming.py172
MEDIUMtests/unittests/integrations/slack/test_slack_runner.py135
MEDIUMtests/unittests/workflow/test_workflow_failures.py1043
MEDIUMtests/unittests/workflow/test_node_runner_ctx.py119
MEDIUMtests/unittests/workflow/test_node_runner_ctx.py412
MEDIUMtests/unittests/workflow/test_node_runner_ctx.py432
MEDIUM…sts/unittests/workflow/test_node_runner_integration.py55
MEDIUM…sts/unittests/workflow/test_node_runner_integration.py114
MEDIUMtests/unittests/workflow/test_workflow.py1402
MEDIUMtests/unittests/workflow/test_dynamic_use_as_output.py155
MEDIUMtests/unittests/evaluation/test_evaluation_generator.py710
MEDIUMtests/unittests/evaluation/test_evaluation_generator.py800
MEDIUMtests/unittests/runners/test_runner_node.py179
MEDIUMsrc/google/adk/agents/remote_a2a_agent.py816
MEDIUMsrc/google/adk/agents/base_agent.py376
MEDIUMsrc/google/adk/agents/base_agent.py392
MEDIUMsrc/google/adk/agents/parallel_agent.py229
MEDIUMsrc/google/adk/agents/loop_agent.py167
MEDIUMsrc/google/adk/models/base_llm.py150
MEDIUMsrc/google/adk/workflow/_node.py199
MEDIUMsrc/google/adk/workflow/_base_node.py246
MEDIUMsrc/google/adk/workflow/_workflow.py305
MEDIUMsrc/google/adk/flows/llm_flows/instructions.py133
MEDIUM…google/adk/flows/llm_flows/_output_schema_processor.py68
MEDIUMsrc/google/adk/flows/llm_flows/_base_llm_processor.py41
MEDIUMsrc/google/adk/flows/llm_flows/_base_llm_processor.py53
MEDIUM…c/google/adk/flows/llm_flows/interactions_processor.py73
MEDIUMsrc/google/adk/flows/llm_flows/basic.py113
MEDIUMsrc/google/adk/flows/llm_flows/compaction.py55
MEDIUM…/google/adk/flows/llm_flows/context_cache_processor.py92
MEDIUMsrc/google/adk/flows/llm_flows/agent_transfer.py69
Magic Placeholder Names11 hits · 58 pts
SeverityFileLineSnippet
HIGHcontributing/samples/tools/pydantic_argument/README.md83 export GOOGLE_GENAI_API_KEY="your-api-key"
HIGH…ntributing/samples/core/runner_debug_example/README.md28export GOOGLE_API_KEY="your-api-key"
HIGH…ntributing/samples/core/runner_debug_example/README.md212 export GOOGLE_API_KEY="your-api-key"
HIGHcontributing/samples/models/interactions_api/README.md46export GOOGLE_API_KEY=your-api-key
HIGH…tributing/samples/models/hello_world_apigeellm/main.py106 # GOOGLE_API_KEY="your-api-key"
HIGH…g/samples/integrations/files_retrieval_agent/README.md34export GOOGLE_API_KEY="your-api-key"
HIGH…ting/samples/integrations/crewai_tool_kwargs/README.md43export GOOGLE_API_KEY="your-api-key-here"
HIGH…ting/samples/integrations/crewai_tool_kwargs/README.md45export GOOGLE_GENAI_API_KEY="your-api-key-here"
HIGHtests/integration/fixture/bigquery_agent/README.md9 export GOOGLE_API_KEY=<your_api_key>
HIGHtests/integration/fixture/bigquery_agent/README.md38 export GOOGLE_API_KEY=<your_api_key>
HIGH…skills/adk-agent-builder/references/getting-started.md48GOOGLE_API_KEY=YOUR_API_KEY
AI Slop Vocabulary21 hits · 35 pts
SeverityFileLineSnippet
LOW…ributing/samples/tools/long_running_functions/agent.py29 # Here we just return a status.
MEDIUM…ing/samples/context_management/cache_analysis/agent.py178 """Generate comprehensive test scenarios for system validation.
MEDIUM…ing/samples/context_management/cache_analysis/agent.py339 # Simulate comprehensive performance optimization analysis
MEDIUM…ing/samples/context_management/cache_analysis/agent.py372 """Perform comprehensive security vulnerability analysis and risk assessment.
MEDIUM…ing/samples/context_management/cache_analysis/agent.py461 """Design comprehensive scalability architecture for anticipated growth.
MEDIUM…ing/samples/context_management/cache_analysis/agent.py565 """Perform comprehensive performance benchmarking and analysis.
LOWtests/integration/test_tools.py169 # For non relevant query, the agent should still be running fine, just return
MEDIUM…gration/fixture/flow_complex_spark/sample.session.json124 "text": "## Flooding in Florida: A Comprehensive Analysis of Causes, Impacts, and Mitigation Strategies\n\n*
MEDIUM…gration/fixture/flow_complex_spark/sample.session.json124 "text": "## Flooding in Florida: A Comprehensive Analysis of Causes, Impacts, and Mitigation Strategies\n\n*
MEDIUMtests/unittests/tools/test_google_tool.py298 # as the expected config. Comparing the __dict__ is a robust
LOWtests/unittests/a2a/executor/test_a2a_agent_executor.py332 # For testing, we'll just return the mock runner
MEDIUM…sts/unittests/utils/test_cache_performance_analyzer.py191 """Test comprehensive analysis with cache data and token metrics."""
MEDIUM.github/workflows/gemini-review.yml100 prompt: 'Please use the pull_request_read tool to read pull request #${{ github.event.pull_request.number || g
MEDIUMsrc/google/adk/utils/yaml_utils.py107 width=1000000, # Essentially disable text wraps
MEDIUM…le/adk/cli/built_in_agents/tools/write_config_files.py62 """Write multiple YAML configurations with comprehensive validation-before-write.
MEDIUMsrc/google/adk/cli/conformance/_replay_validators.py104 # Compare events using model dumps with comprehensive exclude dict
MEDIUMsrc/google/adk/cli/conformance/_replay_validators.py146 """Compare actual session with recorded session using comprehensive exclude list.
MEDIUMsrc/google/adk/cli/conformance/_replay_validators.py165 # Compare sessions using model dumps with comprehensive exclude dict
MEDIUMsrc/google/adk/workflow/_function_node.py98 """Cached version of typing.get_type_hints with robust unwrapping."""
LOWsrc/google/adk/evaluation/final_response_match_v2.py220 # If no results were successfully evaluated, just return the first sample.
LOWsrc/google/adk/evaluation/response_evaluator.py83 # If the metric is response_match_score, just use the RougeEvaluator.
Slop Phrases19 hits · 34 pts
SeverityFileLineSnippet
MEDIUM…ls/hello_world_litellm_add_function_to_prompt/agent.py61 # enable function calling, you can add functions to the models, and the
MEDIUM…g/samples/integrations/authn-adk-all-in-one/idp/app.py66# A simple user registry for demonstration purposes
LOW…buting/samples/integrations/spanner_rag_agent/agent.py46 # If this flow is enabled, make sure to replace the file path with your own
LOW…buting/samples/integrations/spanner_rag_agent/agent.py46 # If this flow is enabled, make sure to replace the file path with your own
LOWcontributing/samples/integrations/bigtable/agent.py48 # If this flow is enabled, make sure to replace the file path with your own
LOWcontributing/samples/integrations/bigtable/agent.py48 # If this flow is enabled, make sure to replace the file path with your own
LOWcontributing/samples/integrations/data_agent/agent.py48 # If this flow is enabled, make sure to replace the file path with your own
LOWcontributing/samples/integrations/data_agent/agent.py48 # If this flow is enabled, make sure to replace the file path with your own
LOWcontributing/samples/integrations/bigquery/agent.py57 # If this flow is enabled, make sure to replace the file path with your own
LOWcontributing/samples/integrations/bigquery/agent.py57 # If this flow is enabled, make sure to replace the file path with your own
LOWcontributing/samples/integrations/pubsub/agent.py49 # If this flow is enabled, make sure to replace the file path with your own
LOWcontributing/samples/integrations/pubsub/agent.py49 # If this flow is enabled, make sure to replace the file path with your own
LOWcontributing/samples/integrations/spanner/agent.py57 # If this flow is enabled, make sure to replace the file path with your own
LOWcontributing/samples/integrations/spanner/agent.py57 # If this flow is enabled, make sure to replace the file path with your own
LOW…ntributing/samples/integrations/spanner_admin/agent.py42 # If this flow is enabled, make sure to replace the file path with your own
LOW…ntributing/samples/integrations/spanner_admin/agent.py42 # If this flow is enabled, make sure to replace the file path with your own
MEDIUM…ing/samples/integrations/oauth_calendar_agent/agent.py45 # you can also replace below customized `list_calendar_events` with build-in
LOWsrc/google/adk/tools/__init__.py47# If you are adding a new tool to this file, please make sure you add it to the
LOWsrc/google/adk/cli/api_server.py540 # Currently the instrumentation lib is in extras dependencies, make sure to
Overly Generic Function Names30 hits · 28 pts
SeverityFileLineSnippet
LOW…sts/unittests/tools/test_function_tool_declarations.py317 def process_data(data: dict[str, Any]) -> str:
LOW…sts/unittests/tools/test_from_function_with_options.py29 def test_function(param: str):
LOW…sts/unittests/tools/test_from_function_with_options.py47 def test_function(param: str):
LOW…sts/unittests/tools/test_from_function_with_options.py67 def test_function(param: str) -> None:
LOW…sts/unittests/tools/test_from_function_with_options.py86 def test_function(param: str) -> None:
LOW…sts/unittests/tools/test_from_function_with_options.py104 def test_function(param: str) -> str:
LOW…sts/unittests/tools/test_from_function_with_options.py123 def test_function(param: str) -> Dict[str, str]:
LOW…sts/unittests/tools/test_from_function_with_options.py142 def test_function(param: str) -> int:
LOW…sts/unittests/tools/test_from_function_with_options.py161 def test_function(param: Any) -> Any:
LOW…sts/unittests/tools/test_from_function_with_options.py181 def test_function() -> None:
LOW…sts/unittests/tools/test_from_function_with_options.py203 def test_function(
LOW…sts/unittests/tools/test_from_function_with_options.py234 def test_function(
LOW…sts/unittests/tools/test_from_function_with_options.py252 async def test_function(param: str) -> AsyncGenerator[str, None]:
LOW…sts/unittests/tools/test_from_function_with_options.py271 async def test_function(param: str) -> AsyncGenerator[str, None]:
LOW…sts/unittests/tools/test_from_function_with_options.py289 def test_function(param: str) -> Generator[int, None, None]:
LOW…sts/unittests/tools/test_from_function_with_options.py308 async def test_function(param: str) -> AsyncGenerator[Dict[str, str], None]:
LOWtests/unittests/tools/test_base_toolset.py264 def test_function(param1: str, param2: int) -> str:
LOWtests/unittests/tools/test_base_toolset.py293 def test_function(param: str) -> str:
LOW…ts/tools/test_function_tool_with_import_annotations.py30 def test_function(_param: str) -> None:
LOW…ts/tools/test_function_tool_with_import_annotations.py49 def test_function(_param: str) -> None:
LOW…ts/tools/test_function_tool_with_import_annotations.py67 def test_function(_param: str) -> str:
LOW…ts/tools/test_function_tool_with_import_annotations.py86 def test_function(_param: str) -> int:
LOW…ts/tools/test_function_tool_with_import_annotations.py105 def test_function(_param: str) -> Dict[str, str]:
LOW…ts/tools/test_function_tool_with_import_annotations.py124 def test_function(_param: Any) -> Any:
LOW…ts/tools/test_function_tool_with_import_annotations.py144 def test_function(str_param: str, int_param: int, any_param: Any) -> str:
LOW…ts/tools/test_function_tool_with_import_annotations.py165 def test_function() -> str:
LOW…sts/unittests/tools/test_build_function_declaration.py563 def process_data(data: dict[str, str]) -> str:
LOWtests/unittests/tools/test_long_running_tool.py148 def test_function():
LOW…ests/code_executors/test_unsafe_local_code_executor.py111 def helper(name):
LOWsrc/google/adk/tools/tool_configs.py100 def my_function(args: ToolArgsConfig) -> BaseTool:
Fake / Example Data17 hits · 17 pts
SeverityFileLineSnippet
LOW…tools/pydantic_argument/tests/test_create_company.json27 "company_name": "Acme Corp",
LOW…tools/pydantic_argument/tests/test_create_company.json59 "company_name": "Acme Corp",
LOW…ons/authn-adk-all-in-one/hotel_booker_app/openapi.yaml131 example: "John Doe"
LOW…ons/authn-adk-all-in-one/hotel_booker_app/openapi.yaml212 example: "John Doe"
LOW…all-in-one/adk_agents/agent_openapi_tools/openapi.yaml131 example: "John Doe"
LOW…all-in-one/adk_agents/agent_openapi_tools/openapi.yaml212 example: "John Doe"
LOWtests/integration/test_system_instruction.py93 "customerJson": {"name": "John Doe", "age": 30, "count": 11.1},
LOWtests/unittests/tools/test_function_tool_pydantic.py408 "company_name": "Acme Corp",
LOWtests/unittests/tools/test_function_tool_pydantic.py415 assert processed_args["entity"].company_name == "Acme Corp"
LOWtests/unittests/tools/test_function_tool_pydantic.py516 "company_name": "Acme Corp",
LOWtests/unittests/tools/test_function_tool_pydantic.py523 assert company_result == {"entity_type": "company", "name": "Acme Corp"}
LOW…valuation/simulation/test_llm_backed_user_simulator.py50 response={"name": "John Doe"},
LOW…valuation/simulation/test_llm_backed_user_simulator.py130 "Tool 'get_user_name' returned: {'name': 'John Doe'}\n\n"
LOW…ttests/flows/llm_flows/test_output_schema_processor.py213 args={'name': 'John Doe', 'age': 30, 'city': 'New York'},
LOW…ttests/flows/llm_flows/test_output_schema_processor.py219 assert result['name'] == 'John Doe'
LOW…google/adk/integrations/bigquery/data_insights_tool.py108 "rows": [["Jane Doe", 1234.56]],
LOW…k/evaluation/rubric_based_final_response_quality_v1.py180Rationale: The final answer's claim ("John Doe") is inconsistent with the trusted evidence ("John Smith").
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippet
LOWscripts/db_migration.sh21# Usage: