MCPcopy Create free account

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

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

↓ 5 callersFunction_batched
Yield (start_index, batch) tuples for successive `size`-sized slices.
python/agents/multiformat-hybrid-rag/src/utils/vs_utils.py:32
↓ 5 callersFunction_fallback_phase_validation
Create fallback PhaseValidation when validation fails. v1.4.0: Now distinguishes between infrastructure errors (INCONCLUSIVE) and ot
python/agents/invoice-processing/invoice_processing/shared_libraries/investigation/investigate_agent_reconst.py:4617
↓ 5 callersMethod_filter_relevant_criteria
Uses an LLM to filter a list of criteria to only those relevant to the asset type.
python/agents/brand-aligner/brand_aligner_agent/services.py:529
↓ 5 callersMethod_get_case_summary
Extract decision and rejection reason from context.
python/agents/invoice-processing/invoice_processing/core/impact_assessor.py:79
↓ 5 callersFunction_get_shift_duration_hours
Calculate shift duration in hours.
python/agents/nexshift-agent/nexshift_agent/sub_agents/tools/solver_tool.py:285
↓ 5 callersFunction_is_weekend
Check if date is a weekend.
python/agents/nexshift-agent/nexshift_agent/sub_agents/tools/history_tools.py:78
↓ 5 callersFunction_load_preset_model_photos
Load model photos from preset folder.
python/agents/genmedia-for-commerce/genmedia4commerce/mcp_server/product_enrichment/product_fitting/product_fitting_mcp.py:55
↓ 5 callersFunction_load_records
Load a JSON or JSONL file. Returns the parsed Python value. For .jsonl, returns a list of one record per non-empty line.
python/agents/multiformat-hybrid-rag/src/document_preprocessing/parser/json_parser.py:142
↓ 5 callersMethod_make_agent
(self, contexts)
python/agents/invoice-processing/tests/test_impact_assessor.py:246
↓ 5 callersFunction_make_contexts
Generate n fake case contexts. case_target is always the target.
python/agents/invoice-processing/tests/test_impact_assessor.py:230
↓ 5 callersFunction_render_array
Render a JSON array as markdown. Array of objects → each item is a `## {heading}` section separated by `---` so the ch
python/agents/multiformat-hybrid-rag/src/document_preprocessing/parser/json_parser.py:118
↓ 5 callersMethodattr_names
(self)
python/agents/camel/camel/camel_library/interpreter/camel_value.py:352
↓ 5 callersFunctionbytes_to_numpy
Convert image bytes to numpy array. Args: image_bytes: Image as bytes Returns: Numpy array (BGR format)
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/spinning/r2v/shoes/product_consistency_validation.py:42
↓ 5 callersMethodcheck_conflicts
Check if proposed rule conflicts with existing rules. Returns list of warning messages.
python/agents/invoice-processing/invoice_processing/core/rule_writer.py:119
↓ 5 callersMethodcollect
Phase 1: Evaluate all rules and collect matches. Enforces scope-based mutual exclusion (at most one match per scope). Do
python/agents/invoice-processing/invoice_processing/shared_libraries/alf_engine.py:1318
↓ 5 callersFunctioncompute_file_id
Derive a deterministic file identifier from a GCS URI. Uses MD5 hex digest so the same file always gets the same ID regardless of content cha
python/agents/multiformat-hybrid-rag/src/document_preprocessing/preprocess.py:82
↓ 5 callersFunctionconvert_image_to_video_frame
Resizes and center-crops an image to match the dimensions of a video frame. Args: video_frame_bytes: Reference video frame as bytes
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/shared/video_utils.py:378
↓ 5 callersFunctioncreate_frame_bytes_with_product
Create a frame with a product (colored rectangle) on a background. Args: width, height: Frame dimensions product_rect: (x, y, w,
python/agents/genmedia-for-commerce/tests/workflows/spinning/r2v/shoes/test_images_utils.py:165
↓ 5 callersFunctioncreate_mock_response
(json_data)
python/agents/brand-aligned-presentations/tests/test_model_armor.py:47
↓ 5 callersFunctioncreate_sample_presentation
Helper to create a simple presentation for testing.
python/agents/brand-aligned-presentations/tests/test_pptx_editor.py:29
↓ 5 callersFunctiondataUrlToBase64
(dataUrl: string)
python/agents/genmedia-for-commerce/frontend/src/image_vto/services/imageVtoApi.ts:69
↓ 5 callersFunctiondescribe_garment_for_vto
Describe a single garment image for VTO purposes. Extracts brand, type, color, material, and all visible logos/text/marks with EXTERIOR/INTER
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/image_vto/clothes/garment_description.py:32
↓ 5 callersFunctiondetect_color_background
Detect the percentage of a target color in an image using HSV color space. Args: image_bytes: Image data as bytes. target_rgb: Th
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/video_vto/glasses/glasses_eval.py:120
↓ 5 callersMethoddone
Render and return HTML for done page
python/agents/personalized-shopping/personalized_shopping/shared_libraries/web_agent_site/envs/web_agent_text_env.py:539
↓ 5 callersFunctionensure_image_artifact
Ensures the image artifact exists, creating it if necessary from GCS. If an `image_filename` is provided that starts with "gs://", it will be
python/agents/product-catalog-ad-generation/content_gen_agent/utils/images.py:55
↓ 5 callersMethodevaluate_single
Evaluate a single condition against data. Args: data: The full case context (provisional output + intermediate artif
python/agents/invoice-processing/invoice_processing/shared_libraries/alf_engine.py:271
↓ 5 callersFunctionevaluate_wearing_quality
Evaluate the wearing quality of a generated VTO image. No reference garment needed — only assesses how naturally the outfit is worn. Args:
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/image_vto/clothes/garment_eval.py:103
↓ 5 callersMethodextract_section
Extract a numbered section (e.g., "0", "4.2", "3.8"). Handles formats: - ## 0. Data Source Priorities - ### 4.2
python/agents/invoice-processing/invoice_processing/shared_libraries/investigation/investigate_agent_reconst.py:616
↓ 5 callersFunctionfetch_regional_macro_stats
Fetches regional economic metrics directly from St. Louis Fed (FRED) API. Replaces legacy BigQuery labor tables. Support MSAs like Austin, Ra
python/agents/economic-research-agent/economic_research/tools/fred_skill.py:27
↓ 5 callersFunctionfetch_state_tax_rates
Scrapes Tax Foundation for the latest state corporate income tax rates. This bypasses legacy BigQuery dependencies and provides real-time dat
python/agents/economic-research-agent/economic_research/tools/tax_foundation_skill.py:18
↓ 5 callersFunctionfind_changed_with_dedup
Return (to_extract, dup_stubs). to_extract: files that need a Cloud Run call. dup_stubs: files whose content_hash already maps to a previousl
python/agents/multiformat-hybrid-rag/src/document_preprocessing/preprocess.py:134
↓ 5 callersMethodformat_rule_display
Format a rule dict for terminal display.
python/agents/invoice-processing/invoice_processing/core/rule_writer.py:341
↓ 5 callersMethodfreeze
(self)
python/agents/camel/camel/camel_library/interpreter/camel_value.py:179
↓ 5 callersMethodgenerate_next_message
Generate the next message from the agent based on the input message. Args: message: The input message from the user or tool.
python/agents/tau2-benchmark-agent/tau2_agent/adk_agent.py:266
↓ 5 callersMethodgetTools
Loads tools from the MCP server. @return The list of tools.
java/agents/time-series-forecasting/src/main/java/com/google/adk/samples/agents/timeseriesforecasting/ForecastingAgent.java:44
↓ 5 callersMethodget_app
Lazily instantiates the ADK App and Agent only when needed.
python/agents/economic-research-agent/economic_research/agent.py:115
↓ 5 callersFunctionget_batch_client
Creates a Dataproc BatchControllerClient for a specific region. Args: region: The GCP region for the client. Returns: A
python/agents/plumber-data-engineering-assistant/plumber_agent/sub_agents/dataproc_agent/tools/dataproc_batches.py:24
↓ 5 callersFunctionget_bigquery_client
Get a configured BigQuery client.
python/agents/data-engineering/data_engineering_agent/tools/bigquery_tools.py:31
↓ 5 callersFunctionget_gcs_client
Initializes and returns a GCS client with robust project detection.
python/agents/brand-aligned-presentations/presentation_agent/shared_libraries/config.py:90
↓ 5 callersFunctionget_next_unscheduled_date
Finds the next date that doesn't have a finalized roster. Returns: Date string in YYYY-MM-DD format for the next unscheduled date.
python/agents/nexshift-agent/nexshift_agent/sub_agents/tools/schedule_utils.py:65
↓ 5 callersFunctionget_non_white_pixel_count
Count non-white pixels in an image as a quality metric. More non-white pixels = more complete shoe (less background). This helps select the m
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/spinning/r2v/shoes/shoe_images_selection.py:35
↓ 5 callersMethodget_rule_group
Get a specific rule group by ID.
python/agents/invoice-processing/invoice_processing/shared_libraries/investigation/investigate_agent_reconst.py:867
↓ 5 callersMethodget_validation_step
Get a specific validation step from a phase's output. Args: phase: Phase key (e.g., "phase1", "phase4")
python/agents/invoice-processing/invoice_processing/shared_libraries/investigation/investigate_agent_reconst.py:1864
↓ 5 callersFunctionget_workspace_path
Get the workspace path using configuration.
python/agents/data-engineering/data_engineering_agent/tools/dataform_tools.py:32
↓ 5 callersFunctionis_valid_path_lessstrict
Check if a sequence of nodes represents a valid path through the allowed graph. Allows tolerance for temporary misclassifications and oscillation
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/spinning/r2v/shoes/video_validation_r2v.py:63
↓ 5 callersFunctionloadPhoto
(index)
go/agents/navallist/web/js/app.js:120
↓ 5 callersFunctionmap_action_to_html
(action, **kwargs)
python/agents/personalized-shopping/personalized_shopping/shared_libraries/web_agent_site/engine/engine.py:61
↓ 5 callersFunctionmatch_frames_to_references
Match generated frame labels to reference image labels. Args: frame_labels: List of predicted labels for generated frames frame_i
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/spinning/r2v/shoes/product_consistency_validation.py:299
↓ 5 callersFunctionopenFeedbackForm
(params: FeedbackParams = {})
python/agents/genmedia-for-commerce/frontend/src/components/FeedbackButton.tsx:35
↓ 5 callersFunctionparse
Extract markdown tables from a .xlsx file.
python/agents/multiformat-hybrid-rag/src/document_preprocessing/parser/xlsx_parser.py:30
↓ 5 callersFunctionpost_process_single_video
Post-process a generated video by trimming to the most similar end frame. Finds the frame most similar to the target end image and trims the vide
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/spinning/interpolation/other/interpolation_utils.py:141
↓ 5 callersFunctionquick_raw_text
Cheap raw-text extraction without invoking any LLM. Used by the preprocess service to run the relevance classifier on raw text BEFORE the exp
python/agents/multiformat-hybrid-rag/src/document_preprocessing/parser/__init__.py:96
↓ 5 callersFunctionread_html_template
(path)
python/agents/personalized-shopping/personalized_shopping/shared_libraries/web_agent_site/engine/engine.py:128
↓ 5 callersFunctionsafeFetch
(url: string)
python/agents/genmedia-for-commerce/frontend/src/pages/GenMediaTV/index.tsx:158
↓ 5 callersFunctionsubmit_evaluation
Submit an evaluation task to the shared thread pool. Args: reference_face_bytes: Reference face image as bytes. generated_vto_byt
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/shared/person_eval.py:370
↓ 5 callersFunctionsubtract_masks
Perform a set subtraction operation on two binary masks. Returns a mask containing only the regions present in mask_a that are NOT in mask_b.
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/spinning/r2v/shoes/split_multiple_shoes.py:135
↓ 5 callersFunctionupdateMessageBubble
(element, text, isPartial = false)
python/agents/bidi-demo/app/static/js/app.js:258
↓ 5 callersFunctionupdate_order_status_in_bigquery
Generate SQL to update order status in BigQuery using ADK tools. This function now returns SQL for execution by the ADK toolset instead of ex
python/agents/hierarchical-workflow-automation/cookie_scheduler_agent/bigquery_utils/bigquery_tools.py:91
↓ 5 callersFunctionupload_file_to_gcs
Upload a single file to Google Cloud Storage.
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/shared/gcs_utils.py:145
↓ 4 callersMethodAuthMiddleware
AuthMiddleware wraps handlers to enforce authentication.
go/agents/navallist/internal/server/middleware.go:10
↓ 4 callersMethodGetTides
(ctx tool.Context, args TideArgs)
go/agents/sail-researcher/tools/tides.go:68
↓ 4 callersMethodGetUser
User operations
go/agents/navallist/internal/data/store.go:15
↓ 4 callersMethodLoad
Load retrieves the data given the reference path.
go/agents/navallist/internal/data/storage.go:15
↓ 4 callersFunction_append_chunks_batch
Append a batch of chunk rows to the staging table.
python/agents/multiformat-hybrid-rag/src/chunking/chunk_and_index.py:108
↓ 4 callersFunction_apply_confidence_gating
Apply confidence-based gating to violation determination. v1.4.0: New function to minimize false positives by requiring high confide
python/agents/invoice-processing/invoice_processing/shared_libraries/investigation/investigate_agent_reconst.py:4673
↓ 4 callersFunction_apply_font
Safely applies font style (name, size, color) to a given text run.
python/agents/brand-aligned-presentations/presentation_agent/shared_libraries/utils.py:32
↓ 4 callersMethod_build_summary
Build a human-readable case summary for the SME.
python/agents/invoice-processing/invoice_processing/core/case_loader.py:316
↓ 4 callersFunction_create_github_headers
Creates a standard set of headers for GitHub API requests. Includes the 'Accept' and 'User-Agent' headers. If a token is provided, it al
python/agents/plumber-data-engineering-assistant/plumber_agent/sub_agents/github_agent/utils.py:13
↓ 4 callersFunction_create_multimodal_json_string
Creates a JSON string conforming to the ContentMap.Contents protobuf structure that the EvalTask expects.
python/agents/brand-aligner/brand_aligner_agent/services.py:961
↓ 4 callersFunction_decode_base64_to_bytes
Decodes a base64 string to bytes, returning None if invalid.
python/agents/brand-aligned-presentations/presentation_agent/shared_libraries/utils.py:59
↓ 4 callersFunction_eval_iterable
Evaluates an iterable of expressions. Args: elts: The AST nodes representing the iterable elements. namespace: The current namesp
python/agents/camel/camel/camel_library/interpreter/interpreter.py:310
↓ 4 callersFunction_eval_stmt_list
Evaluates a list of statements. Args: stmts: The AST nodes representing the statements. namespace: The current namespace.
python/agents/camel/camel/camel_library/interpreter/interpreter.py:2932
↓ 4 callersFunction_find_libreoffice
Find the LibreOffice binary (handles macOS vs Linux paths).
python/agents/multiformat-hybrid-rag/src/document_preprocessing/parser/convert.py:28
↓ 4 callersFunction_get_auth_token
Retrieves a GitHub authentication token from various sources. The function prioritizes sources in the following order: 1. A token passed
python/agents/plumber-data-engineering-assistant/plumber_agent/sub_agents/github_agent/utils.py:35
↓ 4 callersFunction_get_llm_call_delay
()
python/agents/invoice-processing/invoice_processing/shared_libraries/alf_engine.py:198
↓ 4 callersFunction_get_user_id
Retrieves the user's id to use in the agent's operations, along with whether to continue processing or not.
python/agents/brand-aligner/brand_aligner_agent/tools.py:630
↓ 4 callersFunction_has_content
Check if extracted text has meaningful content.
python/agents/multiformat-hybrid-rag/src/document_preprocessing/parser/html_parser.py:92
↓ 4 callersMethod_is_unsafe
Runs the LLM as a judge on the given message.
python/agents/safety-plugins/safety_plugins/plugins/agent_as_a_judge.py:108
↓ 4 callersFunction_make_pubsub_payload
Build a Pub/Sub trigger request body from an expense dict.
python/agents/ambient-expense-agent/tests/test_integration.py:73
↓ 4 callersFunction_mint_id_token
Mint an ID token using the default credentials.
python/agents/multiformat-hybrid-rag/src/utils/auth.py:55
↓ 4 callersFunction_now
Return current time as HH:MM:SS.mmm.
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/shared/person_eval.py:45
↓ 4 callersMethod_parse_html
Returns web request result wrapped in BeautifulSoup object Arguments: url (`str`): If no url or html is provided, use the current
python/agents/personalized-shopping/personalized_shopping/shared_libraries/web_agent_site/envs/web_agent_text_env.py:196
↓ 4 callersFunction_policy_to_dict
Helper to convert a Firestore document to a dictionary.
python/agents/policy-as-code/policy_as_code_agent/memory.py:56
↓ 4 callersFunction_retry_call
Run fn(*args) with exponential backoff on transient API errors.
python/agents/multiformat-hybrid-rag/data_ingestion_pipeline/chunk_index_service/main.py:229
↓ 4 callersMethod_run_agent
Helper method to run an agent and get the final response.
python/agents/data-science/tests/test_agents.py:57
↓ 4 callersMethod_run_prompt_async
Run the prompt asynchronously and return the assistant message. Args: new_message: The new message from the user. functio
python/agents/tau2-benchmark-agent/tau2_agent/adk_agent.py:198
↓ 4 callersMethodadd_rule
Add a new rule to the engine (Phase 1: expert-defined). Args: rule_dict: Rule definition dict matching the schema
python/agents/invoice-processing/invoice_processing/shared_libraries/alf_engine.py:2032
↓ 4 callersFunctionall_classes_present
Check if all required classes are present in the frames. Args: product_position_frames: List of classified positions. Returns:
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/spinning/r2v/shoes/video_validation_r2v.py:384
↓ 4 callersFunctionamounts_match
Check if two amount strings match within tolerance.
python/agents/invoice-processing/eval/eval.py:122
↓ 4 callersFunctionbq_rows_to_json
Converts a list of BigQuery Row objects to a JSON string, handling datetime objects by converting them to ISO 8601 strings.
python/agents/cyber-guardian-agent/cyber_guardian/tools.py:18
↓ 4 callersFunctioncalculate_evaluation_score
Calculates a score based on the evaluation result. Args: evaluation_result: The result of the media evaluation. Returns: An
python/agents/product-catalog-ad-generation/content_gen_agent/utils/evaluate_media.py:112
↓ 4 callersMethodcheck_availability
Check if a time slot is available (no conflicting events).
python/agents/hierarchical-workflow-automation/cookie_scheduler_agent/mcp_servers/calendar/calendar_mcp_server.py:244
↓ 4 callersFunctioncheck_multiple_people
Return True if more than one person is detected in the response.
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/video_vto/glasses/glasses_eval.py:230
↓ 4 callersFunctionconstructAgent
(ctx context.Context, cfg *config.Config, monitor *ToolMonitor, acfg *agentConfig)
go/agents/sail-researcher/agent_setup.go:40
↓ 4 callersFunctionconstruct_image
Create a new image where the masked area is visible and the rest is white. The image is cropped to the mask's bounding box to center the extracte
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/spinning/r2v/shoes/split_multiple_shoes.py:216
↓ 4 callersFunctioncount_people
Count the number of faces detected in a Vision API response.
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/video_vto/glasses/glasses_eval.py:223
↓ 4 callersFunctioncreateMessageBubble
(text, isUser, isPartial = false)
python/agents/bidi-demo/app/static/js/app.js:214
↓ 4 callersFunctiondataUrlToBase64
(dataUrl: string)
python/agents/genmedia-for-commerce/frontend/src/spinning/services/shoesSpinningApi.ts:96
↓ 4 callersFunctiondataUrlToBlob
(dataUrl: string)
python/agents/genmedia-for-commerce/frontend/src/video_vto/services/videoVtoApi.ts:124
↓ 4 callersFunctiondetect_background_color
Detect the background color by sampling pixels from the borders of the frame. Returns the median color value (BGR format). Args: fra
python/agents/genmedia-for-commerce/genmedia4commerce/workflows/spinning/r2v/shoes/images_utils.py:33
← previousnext →201–300 of 4,953, ranked by callers