MCPcopy Create free account

hub / github.com/google/adk-samples / functions

Functions4,953 in github.com/google/adk-samples

↓ 4 callersFunctiondetect_product_bounds_from_frames
Analyze a sample of frames to detect the actual product boundaries. Returns the bounding box that encompasses the product across all sampled fram
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/spinning/r2v/shoes/images_utils.py:72
↓ 4 callersFunctionexecute_bq_query_to_df
Mocked execution of BigQuery queries to bypass GCP Dataset NotFound errors. Args: project: The Google Cloud project ID. query: Th
python/agents/economic-research-agent/economic_research/shared_libraries/helper.py:20
↓ 4 callersFunctionfiler_top_four_views
Filter and return up to 4 images in order: right, left, front, back. Selection priority: - 1st (right): right, front_right, back_right -
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/spinning/r2v/shoes/shoe_images_selection.py:123
↓ 4 callersFunctionfind_color_drop_frame
Detect the frame where a target color's ratio drops significantly and stabilizes. This is useful for finding the first frame after a greenscreen
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/video_vto/glasses/glasses_eval.py:164
↓ 4 callersFunctionfind_files
Recursively finds files in a given directory that match a specified regex pattern. This function uses the Unix `find` command to search for
python/agents/plumber-data-engineering-assistant/plumber_agent/sub_agents/dataproc_template_agent/utils.py:42
↓ 4 callersFunctiongenerate_product_description
Generate a description of the product from images using Gemini. Generalized version for any product (not just footwear). Args: clien
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/spinning/r2v/other/r2v_utils.py:31
↓ 4 callersFunctiongenerate_sample_values_str
Generates a string of sample values from metadata.
python/agents/policy-as-code/policy_as_code_agent/utils/llm.py:19
↓ 4 callersFunctiongetProductImage
(template: Template)
python/agents/genmedia-for-commerce/frontend/src/pages/GenMediaTV/index.tsx:193
↓ 4 callersFunctiongetUserColor
(name)
go/agents/navallist/web/js/ui.js:10
↓ 4 callersFunctionget_date_range
Calculates the date for the start of a time span relative to now. Args: time_span: The time span to calculate. Options: 'week', 'mon
python/agents/youtube-analyst/youtube_analyst/tools.py:512
↓ 4 callersFunctionget_gcs_client
Get a configured GCS client.
python/agents/data-engineering/data_engineering_agent/tools/gcs_tools.py:29
↓ 4 callersFunctionget_hud_api_key
()
python/agents/economic-research-agent/economic_research/tools/hud_skill.py:14
↓ 4 callersFunctionget_llm_model
Return GEMINI_PRO_MODEL from env (deferred for Agent Engine compatibility).
python/agents/invoice-processing/invoice_processing/core/config.py:86
↓ 4 callersMethodget_page_name
Determine which page (i.e. item_page, search_results) the given URL is pointing at.
python/agents/personalized-shopping/personalized_shopping/shared_libraries/web_agent_site/envs/web_agent_text_env.py:681
↓ 4 callersFunctionget_part
Convert input to appropriate Gemini Part type. Handles text, image/video bytes, and GCS paths. Auto-detects MIME type.
python/agents/multiformat-hybrid-rag/src/utils/llm_utils.py:107
↓ 4 callersMethodget_process_status
Get the current status of a process.
python/agents/small-business-loan-agent/small_business_loan_agent/shared_libraries/firestore_utils/state_service.py:219
↓ 4 callersFunctionget_safe_layout
Safely retrieves a layout using keyword-based mapping.
python/agents/brand-aligned-presentations/presentation_agent/tools/pptx_editor.py:446
↓ 4 callersFunctionget_scheduled_periods
Returns a list of all scheduled periods from finalized and draft rosters. Only includes rosters that still have their roster file. Retur
python/agents/nexshift-agent/nexshift_agent/sub_agents/tools/schedule_utils.py:28
↓ 4 callersFunctionhandleCapabilityChange
(newCapability: Capability)
python/agents/genmedia-for-commerce/frontend/src/pages/AssetCreation/index.tsx:143
↓ 4 callersMethodis_infrastructure_error
Check if an error message indicates an infrastructure failure.
python/agents/invoice-processing/invoice_processing/shared_libraries/investigation/investigate_agent_reconst.py:231
↓ 4 callersFunctionis_valid
Check if the video path is valid. Args: video_path: List of class labels for each frame. strict: Whether to use strict path valid
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/spinning/r2v/shoes/video_validation_r2v.py:218
↓ 4 callersFunctionload_master_data
Load master data from a YAML or JSON file. Args: path: Path to master_data.yaml (or .json). If None, looks for the defa
python/agents/invoice-processing/invoice_processing/shared_libraries/master_data_loader.py:272
↓ 4 callersFunctionloggingMiddleware
(next http.Handler)
go/agents/boat-agent/main.go:178
↓ 4 callersFunctionparse_line_items
Parse the Line Items field (stored as JSON string in the schema).
python/agents/invoice-processing/eval/eval.py:149
↓ 4 callersFunctionpick_images_by_ordered_best_side
Select the images for each available ordered side. In case of duplication, it selects the most complete image (highest non-white pixel count).
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/spinning/r2v/shoes/shoe_images_selection.py:163
↓ 4 callersFunctionprepare_live_request
(text: str)
python/agents/bidi-demo/agent_engine/test.py:43
↓ 4 callersFunctionpreprocess_face_image
Preprocess face image: crop face, upscale, then remove background. Args: client: Gemini client instance img_bytes (bytes): The in
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/image_vto/clothes/vto_generation.py:42
↓ 4 callersFunctionprint_json_response
Helper function to print the JSON representation of a response.
python/agents/currency-agent/currency_agent/test_client.py:43
↓ 4 callersFunctionrender_deck_from_spec
Renders a presentation from a spec, using a template if provided or falling back to a default style. Saves to a temp file and returns the pat
python/agents/brand-aligned-presentations/presentation_agent/tools/presentation_orchestrator.py:141
↓ 4 callersFunctionsample_frames
Sample frames from the video at a target rate. Args: frame_list: List of frames. target_samples_per_sec: Target number of samples
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/spinning/r2v/shoes/video_validation_r2v.py:364
↓ 4 callersFunctionselect_best_images
Select the best 4 images for R2V spinning from any number of inputs. Classifies product type and views in one call, then selects based on type:
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/spinning/r2v/other/image_selection.py:149
↓ 4 callersFunctionsendMessage
(message)
python/agents/bidi-demo/app/static/js/app.js:770
↓ 4 callersFunctionto_format
Convert a document to a target format using LibreOffice headless. Args: file_path: Path to the source file (.ppt, .pptx, .doc, .docx, .rt
python/agents/multiformat-hybrid-rag/src/document_preprocessing/parser/convert.py:39
↓ 4 callersFunctionto_pdf
Convenience wrapper: convert any document to PDF.
python/agents/multiformat-hybrid-rag/src/document_preprocessing/parser/convert.py:73
↓ 4 callersMethodtruth
(self)
python/agents/camel/camel/camel_library/interpreter/camel_value.py:143
↓ 4 callersFunctionvalidate_code_safety
Analyzes the code using AST to detect potentially unsafe operations. Returns a list of error messages if unsafe patterns are found.
python/agents/policy-as-code/policy_as_code_agent/simulation.py:7
↓ 3 callersMethodFunctionCallID
()
go/agents/sail-researcher/tools/setup_test.go:20
↓ 3 callersMethodGetOrCreateTrip
GetOrCreateTrip ensures a trip exists for the given ADK session ID and user.
go/agents/navallist/internal/data/trips.go:264
↓ 3 callersMethodGetTripReport
(ctx context.Context, tripID string)
go/agents/navallist/internal/data/store.go:30
↓ 3 callersMethodGetWeatherForecast
(ctx tool.Context, args WeatherArgs)
go/agents/sail-researcher/tools/weather.go:67
↓ 3 callersFunctionNewSQLStore
NewSQLStore creates a new SQLStore with the given database connection.
go/agents/navallist/internal/data/db.go:19
↓ 3 callersFunctionNewTripsHandler
NewTripsHandler initializes a new TripsHandler with the given dependencies.
go/agents/navallist/internal/server/handlers/trips.go:27
↓ 3 callersMethodUpdateItem
UpdateItem updates a specific item's status and details, using an UPSERT to prevent duplicates.
go/agents/navallist/internal/data/checklist.go:15
↓ 3 callersMethodUserContent
()
go/agents/sail-researcher/tools/setup_test.go:60
↓ 3 callersMethod__init__
( self, name: str, model: str | BaseLlm = "gemini-2.5-pro", description: str =
python/agents/camel/camel/camel_agent/camel_agent.py:526
↓ 3 callersFunction_analyze_infeasibility
Analyzes why the roster cannot be generated and provides solutions. Returns a detailed report with: - Capacity analysis (total shifts vs
python/agents/nexshift-agent/nexshift_agent/sub_agents/tools/solver_tool.py:294
↓ 3 callersFunction_apply_bullets
(tf, bullets)
python/agents/brand-aligned-presentations/presentation_agent/tools/presentation_orchestrator.py:172
↓ 3 callersFunction_best_score
()
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/product_enrichment/product_fitting/pipeline.py:287
↓ 3 callersFunction_calculate_fatigue_score
Calculate fatigue score based on nurse stats. 0.0 = Fresh, 1.0 = Burnout risk
python/agents/nexshift-agent/nexshift_agent/sub_agents/tools/history_tools.py:87
↓ 3 callersMethod_call_group_llm
Call LLM for group validation.
python/agents/invoice-processing/invoice_processing/shared_libraries/investigation/investigate_agent_reconst.py:1541
↓ 3 callersFunction_collect_field_mismatches
Collect mismatch strings for a list of field labels from a comparison section.
python/agents/invoice-processing/eval/eval.py:780
↓ 3 callersFunction_decode_image
Decode base64 to bytes, or pass through gs:// URIs as-is.
python/agents/genmedia-for-commerce/genmedia4commerce/mcp_server/image_vto/clothes/clothes_mcp.py:60
↓ 3 callersFunction_deep_research_sync_impl
Internal synchronous implementation of Deep Research with retry logic. Follows Vertex AI Deep Research API SDK best practices.
python/agents/brand-aligned-presentations/presentation_agent/sub_agents/deep_research/tools/deep_research_tool.py:113
↓ 3 callersFunction_emit_sse
( index, image, garments_eval, is_discarded, score, fix=False, final_fix=False )
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/product_enrichment/product_fitting/pipeline.py:292
↓ 3 callersFunction_eval_comprehensions
Evaluates a list, set, or dict comprehension. Args: generators: The AST nodes representing the comprehension generators. elts: Th
python/agents/camel/camel/camel_library/interpreter/interpreter.py:1641
↓ 3 callersMethod_field_referenced_in_output
Check if a field was referenced from a specific source in agent output.
python/agents/invoice-processing/invoice_processing/shared_libraries/investigation/investigate_agent_reconst.py:1774
↓ 3 callersFunction_generate_view
Generate images sequentially with fix attempts, up to max_retries. Flow per attempt: 1. Generate 1 image -> evaluate 2. If score == 1
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/product_enrichment/product_fitting/pipeline.py:203
↓ 3 callersFunction_get_llm_project_id
()
python/agents/invoice-processing/invoice_processing/shared_libraries/alf_engine.py:171
↓ 3 callersMethod_get_model_armor_response
Gets the Model Armor response for the given text and method.
python/agents/safety-plugins/safety_plugins/plugins/model_armor.py:102
↓ 3 callersFunction_get_type_string
Returns the string representation of a type. Args: type_: The type to convert to a string. Returns: The string representatio
python/agents/camel/camel/camel_library/system_prompt.py:272
↓ 3 callersFunction_get_type_string
Returns the string representation of a type. Args: type_: The type to convert to a string. Returns: The string representatio
python/agents/camel/camel/camel_agent/prompts.py:297
↓ 3 callersFunction_handle_phase_rejection
Handle rejection at a specific validation phase.
python/agents/invoice-processing/invoice_processing/shared_libraries/acting/general_invoice_agent.py:1745
↓ 3 callersFunction_handle_policy_results
Helper to process simulation results, log execution, and format the report.
python/agents/policy-as-code/policy_as_code_agent/agent.py:91
↓ 3 callersFunction_is_better
Check if a new result is better than current best. Non-discarded always beats discarded.
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/product_enrichment/product_fitting/pipeline.py:248
↓ 3 callersFunction_is_night_shift
Check if a shift is a night shift (starts at 20:00+ or before 06:00).
python/agents/nexshift-agent/nexshift_agent/sub_agents/tools/solver_tool.py:113
↓ 3 callersMethod_load_field_list
Load a list of field dicts into the given instance attribute.
python/agents/invoice-processing/invoice_processing/shared_libraries/investigation/investigate_agent_reconst.py:1690
↓ 3 callersFunction_load_hris
Load HRIS data.
python/agents/nexshift-agent/nexshift_agent/sub_agents/tools/compliance_tools.py:32
↓ 3 callersFunction_make_error
( op: ast.BinOp | ast.AugAssign, left: camel_value.Value[Any], right: camel_value.Value[Any], )
python/agents/camel/camel/camel_library/interpreter/interpreter.py:2188
↓ 3 callersFunction_parse_deep_research_stream
Helper to parse the Deep Research SSE stream. Returns: (report_text, citations_list, interaction_id)
python/agents/brand-aligned-presentations/presentation_agent/sub_agents/deep_research/tools/deep_research_tool.py:55
↓ 3 callersFunction_prepare_chunks_staging
Create/truncate the chunks staging table for this run.
python/agents/multiformat-hybrid-rag/src/chunking/chunk_and_index.py:94
↓ 3 callersFunction_prepare_mask
Standardize a mask into a binary 8-bit, single-channel image (values 0 or 255). Crucial for ensuring OpenCV functions work predictably.
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/spinning/r2v/shoes/split_multiple_shoes.py:153
↓ 3 callersFunction_preprocessed_staging_name
Per-run staging name so concurrent pipeline runs don't clobber each other. If a run crashes the table is left behind under its run_id — easier
python/agents/multiformat-hybrid-rag/src/utils/bq_utils.py:167
↓ 3 callersMethod_process_large_attributes
(self, span_dict: dict, span_id: str)
python/agents/economic-research-agent/economic_research/shared_libraries/tracing.py:87
↓ 3 callersFunction_process_log_iterator
Helper function to process a log iterator and collect log entries.
python/agents/plumber-data-engineering-assistant/plumber_agent/sub_agents/monitoring_agent/tools/utils.py:120
↓ 3 callersFunction_resolve_service_url
Look up the Cloud Run service endpoint via the Run admin API. We prefer this over hard-coding because the Cloud Run hash component in the URL
python/agents/multiformat-hybrid-rag/src/document_preprocessing/preprocess.py:93
↓ 3 callersFunction_session_prefix
(global_session_id: str)
python/agents/genmedia-for-commerce/genmedia4commerce/agent_utils.py:42
↓ 3 callersFunction_split_pdf_pages
Split a PDF into individual page bytes and extract raw text per page.
python/agents/multiformat-hybrid-rag/src/document_preprocessing/parser/pdf_parser.py:85
↓ 3 callersFunction_to_png
(pil_img: Image.Image)
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/video_vto/clothes/generate_video_util.py:86
↓ 3 callersFunction_update_best
( image, garments_eval, wearing_eval, score, is_discarded, att
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/product_enrichment/product_fitting/pipeline.py:263
↓ 3 callersFunctionafter_model_callback
Appends a progress bar to the agent's response.
python/agents/brand-aligner/brand_aligner_agent/utils.py:74
↓ 3 callersFunctionanalyze_political_stability
Fetches Campaign Finance (FEC) contribution data for a specific state. Provides site selection agents with a metric for political stability a
python/agents/economic-research-agent/economic_research/tools/fec_skill.py:17
↓ 3 callersFunctionappend_to_history
Append a Content or LlmResponse to the GCS-backed conversation history. Args: global_session_id: The stable session UUID. data: A
python/agents/genmedia-for-commerce/genmedia4commerce/agent_utils.py:79
↓ 3 callersMethodattr
(self, name: str)
python/agents/camel/camel/camel_library/interpreter/camel_value.py:350
↓ 3 callersMethodattr_names
(self)
python/agents/camel/camel/camel_library/interpreter/camel_value.py:1713
↓ 3 callersFunctionbase64ToImageUrl
(base64: string)
python/agents/genmedia-for-commerce/frontend/src/image_vto/services/imageVtoApi.ts:101
↓ 3 callersFunctioncall_gemini
Call Gemini API with optional structured output
python/agents/invoice-processing/invoice_processing/shared_libraries/acting/general_invoice_agent.py:464
↓ 3 callersFunctioncheckAuth
()
go/agents/navallist/web/js/auth.js:5
↓ 3 callersFunctionclassify_relevance
Classify whether a document is relevant for the knowledge base. Args: content: The extracted text content of the document. genai_
python/agents/multiformat-hybrid-rag/src/document_preprocessing/document_relevance_classifier.py:53
↓ 3 callersFunctionclassify_rotation
Classify the rotation direction of a spinning product video. Args: video_path: Path to the video file (mp4, etc.) config: Optiona
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/spinning/rotation_classifier.py:85
↓ 3 callersFunctionclassify_video_gen_status
Classify the video generation status based on available views. Args: labels: List of class labels. Returns: list or str: Lis
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/spinning/r2v/shoes/shoe_images_selection.py:104
↓ 3 callersFunctioncleanCJKSpaces
(text)
python/agents/bidi-demo/app/static/js/app.js:77
↓ 3 callersFunctionclean_json_response
Clean LLM JSON response - remove markdown, fix trailing commas
python/agents/invoice-processing/invoice_processing/shared_libraries/acting/general_invoice_agent.py:414
↓ 3 callersFunctionconvert_proto_to_dict
Recursively converts protobuf objects (including Structs and RepeatedComposites) into standard Python dictionaries and lists.
python/agents/policy-as-code/policy_as_code_agent/utils/dataplex.py:25
↓ 3 callersMethodcopy_to
Copy a file from the host to a destination in the container.
python/agents/swe-benchmark-agent/swe_benchmark_agent/swebench_environment.py:117
↓ 3 callersMethodcreate_event
Create a new event in the calendar.
python/agents/hierarchical-workflow-automation/cookie_scheduler_agent/mcp_servers/calendar/calendar_mcp_server.py:181
↓ 3 callersMethodcreate_file
Create a new file. If the directory does not exist, it will be created. Args: file_path: The path of the new file (relative to the
python/agents/swe-benchmark-agent/swe_benchmark_agent/orchestrator.py:145
↓ 3 callersFunctioncreate_send_message_payload
Helper function to create the payload for sending a message.
python/agents/currency-agent/currency_agent/test_client.py:23
↓ 3 callersFunctiondescribe_glasses
Use Gemini vision to generate a short product description of the glasses. Captures brand name, frame shape, frame color, lens type, and any visib
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/image_vto/glasses/image_generation.py:137
↓ 3 callersMethoddiscover_rules
Discover rules from rules book. Uses cache if available and valid. Args: force_refresh: If True, bypass cache and re
python/agents/invoice-processing/invoice_processing/shared_libraries/investigation/investigate_agent_reconst.py:830
↓ 3 callersFunctiondownload_file_from_gcs
Download a file from Google Cloud Storage.
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/shared/gcs_utils.py:190
← previousnext →301–400 of 4,953, ranked by callers